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

Modular Routing and Dependency Injection for Flutter with GoRouter. Features event-driven architecture for seamless module communication and micro-frontend support.

example/lib/main.dart

import 'package:example/src/app_widget.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:go_router_modular/go_router_modular.dart';
import 'src/app_module.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await Modular.configure(
    appModule: AppModule(),
    initialRoute: '/',
    debugLogDiagnostics: true,
    debugLogDiagnosticsGoRouter: true,
    debugLogEventBus: kDebugMode,
    defaultTransition: GoTransitions.fadeUpwards, // Transição padrão
    defaultTransitionDuration: Duration(milliseconds: 600),
  );

  runApp(const AppWidget());
}
33
likes
140
points
43
downloads

Publisher

unverified uploader

Weekly Downloads

Modular Routing and Dependency Injection for Flutter with GoRouter. Features event-driven architecture for seamless module communication and micro-frontend support.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

event_bus, flutter, go_router, go_transitions

More

Packages that depend on go_router_modular