How to resolve utf16 route error in Flutter web
Sometimes we need set a utf16 route name for Flutter web app, for better browser experience.
Like above photo, when we type “时间戳” which means timestamp,the brower will show route history about it. In this way, our web app will be more accessable.
But I found it weird Flutter just do not support plain utf16 route name. If so, you’ll get Unexpected null value.
It is definitely a route name issue, bug or feature? I don’t know.
How to resolve it? Just replace it with Uri.encodeComponent.