go_router_sugar 1.2.1 copy "go_router_sugar: ^1.2.1" 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.

example/lib/main.dart

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,
    );
  }
}
5
likes
140
points
274
downloads

Publisher

verified publisherionicerrrrscode.com

Weekly Downloads

The Simplest Flutter Routing Ever! Revolutionary CLI with interactive wizard, auto-magic watch mode, beautiful route visualization, and unified architecture.

Repository (GitHub)
View/report issues
Contributing

Topics

#routing #go-router #navigation #code-generation #file-based-routing

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

analyzer, args, build, flutter, glob, go_router, io, meta, path, source_gen

More

Packages that depend on go_router_sugar