go_router_modular 2.0.0 copy "go_router_modular: ^2.0.0" to clipboard
go_router_modular: ^2.0.0 copied to clipboard

go_router wrapper with a modular twist dependency injections and automatic dispose

example/lib/main.dart

import 'package:example/src/app_module.dart';
import 'package:example/src/app_widget.dart';
import 'package:example/src/core/routes.dart';
import 'package:flutter/material.dart';

import 'package:flutter_web_plugins/url_strategy.dart';
import 'package:go_router_modular/go_router_modular.dart';

void main() {
  // ignore: prefer_const_constructors
  setUrlStrategy(PathUrlStrategy());

  Modular.configure(
    appModule: AppModule(),
    initialRoute: Routes.slpash.route,
    debugLogDiagnosticsGoRouter: true,
  );
  runApp(const AppWidget());
}
31
likes
0
points
372
downloads

Publisher

unverified uploader

Weekly Downloads

go_router wrapper with a modular twist dependency injections and automatic dispose

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, go_router

More

Packages that depend on go_router_modular