flutter icon indicating copy to clipboard operation
flutter copied to clipboard

[go_router] configuration.matches.last when matches.length == 0

Open changweihua opened this issue 2 years ago • 1 comments
trafficstars

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, ); }

changweihua avatar Dec 08 '22 06:12 changweihua

Hello @changweihua. Thank you for filing this issue. Can you please provide the following information?

Please provide the information in the form of text. See how to make collapsible sections with Markdown here.

exaby73 avatar Dec 08 '22 10:12 exaby73

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.

changweihua avatar Dec 12 '22 00:12 changweihua

Okay thank you for the clarification. Closing this issue it's working as expected

exaby73 avatar Dec 12 '22 08:12 exaby73

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.

github-actions[bot] avatar Mar 05 '23 01:03 github-actions[bot]