wuchuheng_route_parser

Creator: coderz1093

Last updated:

0 purchases

wuchuheng_route_parser Image
wuchuheng_route_parser Images

Languages

Categories

Add to Cart

Description:

wuchuheng route parser

wuchuheng_route_parser





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

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

2 Installing #
Go to the root of your flutter or dart project。 and then run the flowing command:
$ flutter pub add wuchuheng_route_parser
copied to clipboard
Or Install with dart
$ dart pub add wuchuheng_route_parser
copied to clipboard
3 Usage #
4.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');
copied to clipboard
4.2 To parse the information with route name #
final result = parseRouteInfo('/foods/:id/:name', '/foods/1/apple');
print(result); // {id: '1', name: 'apple'}
copied to clipboard
5 Contributing #
You can contribute in one of three ways:

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

6 License #
MIT

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.