Coder Social home page Coder Social logo

flutter_navigation_generator's People

Contributors

ikbendewilliam avatar luca-vz avatar vanlooverenkoen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

flutter_navigation_generator's Issues

Support restorable routes.

Currently the generator doesn't support restorable routes like 'restorablePushNamed' etc. Would be nice if this was added.

Analyzer mismatch with dart_style

When using dart_style & flutter_navigation_generator it is not possible to resolve.

Resolving dependencies...
Because no versions of flutter_navigation_generator match >1.0.3 <2.0.0 and flutter_navigation_generator 1.0.3 depends on analyzer ^5.0.0, flutter_navigation_generator ^1.0.3 requires analyzer ^5.0.0.
And because dart_style >=2.3.3 depends on analyzer ^6.2.0, flutter_navigation_generator ^1.0.3 is incompatible with dart_style >=2.3.3.
So, because my_app depends on both dart_style ^2.3.4 and flutter_navigation_generator ^1.0.3, version solving failed.

Restorable routes

When using restorable routes, your parameters need to be serialisable. Maybe show a warning to the user so they know they can only pass serializable parameters, or turn the objects into a map automatically.

Add path variables

It would be nice to have something like this

@FlutterRoute(
  routeName: 'my_route/{id}',
)

In the first place this would analytics make easier. But can maybe also be used to implement this

Extra dialog options

Currently you have to override the showCustomDialog function if you want change the default parameters of a dialog like 'barrierDismissible'. Would be nice if this was just generated as well so we can pass them in the showcustomDialog function.

2 type parameters, but 1 type arguments are given

This screen config:

@FlutterRoute(
  navigationType: NavigationType.popAndPush,
)

Generates this:

navigatorKey.currentState?.popAndPushNamed<dynamic>(...)

And gives this error:

The method 'Future<T?> Function<T extends Object?, TO extends Object?>(String, {Object? arguments, TO? result})' is declared with 2 type parameters, but 1 type arguments are given.
Try adjusting the number of type arguments.dart[wrong_number_of_type_arguments_method](https://dart.dev/diagnostics/wrong_number_of_type_arguments_method)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.