flutter
flutter copied to clipboard
[go_router] configuration.matches.last when matches.length == 0
The same code is ok on 5.2.1 ,but it failed on 5.2.2. It shows some things error
/// for use by the Router architecture as part of the RouteInformationParser @override RouteInformation restoreRouteInformation(RouteMatchList configuration) { if (configuration.matches.last is ImperativeRouteMatch) { configuration = (configuration.matches.last as ImperativeRouteMatch).matches; } return RouteInformation( location: configuration.uri.toString(), state: configuration.extra, ); }
Hello @changweihua. Thank you for filing this issue. Can you please provide the following information?
- A complete and minimal, reproducible example. Ideally, a single
main.dartfile that can be run directly. - The output of
flutter doctor -v - The output of
flutter run -v
Please provide the information in the form of text. See how to make collapsible sections with Markdown here.
I'm sorry to reply so late, but I haven't read the news these two days. I have tried the lastest version 5.2.4, it works fine.
Okay thank you for the clarification. Closing this issue it's working as expected
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.