go_router_sugar 1.2.1  go_router_sugar: ^1.2.1 copied to clipboard
go_router_sugar: ^1.2.1 copied to clipboard
The Simplest Flutter Routing Ever! Revolutionary CLI with interactive wizard, auto-magic watch mode, beautiful route visualization, and unified architecture.
import 'package:flutter/material.dart';
import 'app_router.g.dart';
/// The main entry point of the go_router_sugar example application.
void main() {
  runApp(const MyApp());
}
/// The root widget of the example application demonstrating go_router_sugar.
class MyApp extends StatelessWidget {
  /// Creates the main app widget.
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: 'Go Router Sugar Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      routerConfig: AppRouter.router,
    );
  }
}