yyy_route_annotation 0.0.2 copy "yyy_route_annotation: ^0.0.2" to clipboard
yyy_route_annotation: ^0.0.2 copied to clipboard

outdated

Provide a route generator to create route map quickly by annotations.

Usage #

Add packages to dependencies #

Add the package to dependencies in your project/packages's pubspec.yaml

  • null-safety
environment:
  sdk: '>=2.12.0 <3.0.0'
dependencies:
  yyy_route_annottion: ^0.0.1

Download with flutter packages get

Add annotation #

import 'package:yyy_route_annotation/route_serializable.dart';
@RoutePage()
class TestPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container();
  }
}

@RouteMain()
void main() {
  runApp(MyApp());
}

flutter packages pub run build_runner build
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      routes: allRoutes,
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

Push #

RouteManager.push(context,"yyy://page/xxx?xx=xx&xx=xx");
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Provide a route generator to create route map quickly by annotations.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analyzer, build, flutter, source_gen

More

Packages that depend on yyy_route_annotation