lukepighetti / fluro

Fluro is a Flutter routing library that adds flexible routing options like wildcards, named parameters and clear route definitions.
https://pub.dev/packages/fluro
MIT License
3.66k stars 416 forks source link

settingsToUse = settingsToUse.copyWith(name: path); #275

Closed Wissperwind closed 1 year ago

Wissperwind commented 1 year ago

Hi,

Please check the compatibility with the most recent flutter version on the master branch:

/C:/Users/user/AppData/Local/Pub/Cache/hosted/pub.dev/fluro-2.0.3/lib/src/fluro_router.dart:134:37: Error: The method 'copyWith' isn't defined for the class 'RouteSettings'.
 - 'RouteSettings' is from 'package:flutter/src/widgets/navigator.dart' ('/C:/Users/user/Flutter%20SDK/flutter/packages/flutter/lib/src/widgets/navigator.dart').
Try correcting the name to the name of an existing method, or defining a method named 'copyWith'.
      settingsToUse = settingsToUse.copyWith(name: path);
                                    ^^^^^^^^
Failed to compile application.
lukepighetti commented 1 year ago

Resolved in https://github.com/lukepighetti/fluro/commit/8b472f75bee59dd71b98b5d29be957d7eff812e7 and 2.0.4 on pub

Wissperwind commented 1 year ago

Tanks for the fast fix!