go_router_modular 5.0.2+2 copy "go_router_modular: ^5.0.2+2" to clipboard
go_router_modular: ^5.0.2+2 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
95
downloads

Publisher

verified publisherartizansoftwares.com

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, flutter_web_plugins, go_router, go_transitions, web

More

Packages that depend on go_router_modular