wuchuheng_route_parser 1.0.1 copy "wuchuheng_route_parser: ^1.0.1" to clipboard
wuchuheng_route_parser: ^1.0.1 copied to clipboard

outdated

Routing Resolution Library.

wuchuheng_route_parser

2 What is wuchuheng_route_parser? #

The wuchuheng_route_parser used to parse the information about route and to map route name to widget in flutter.

3 What is the features in wuchuheng_route_parser? #

  • To parse the information about route in dart/flutter
  • To get widget from map data that the route name map to widget.

4 How to use the library in dart or flutter? #

Go to the root of your flutter or dart project。 and then run the flowing command:

$ flutter pub add wuchuheng_route_parser

Or Install with dart

$ dart pub add wuchuheng_route_parser

5 How to use the library? #

5.1 To map the widget with route name. #

RoutesType routes = {
  '/': Text('/'),
  '/foods/:id/:name': Text('/foods/:id/:name'),
  '/foods/:id': Text('/foods/:id'),
};

// Then get the Text('/foods/:id');
Widget? resultWidget = parseRouteToWidget(routes, '/foods/1');

5.2 To parse the information with route name #

final result = parseRouteInfo('/foods/:id/:name', '/foods/1/apple');
print(result); // {id: '1', name: 'apple'} 

6 Contributing #

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

7 License #

MIT

0
likes
0
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

Routing Resolution Library.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on wuchuheng_route_parser