GoRouter Modular

Simplifying Flutter development with modular architecture 🧩
GoRouter Modular is a powerful package that extends the capabilities of GoRouter by adding modular architecture patterns, dependency injection, event system, and much more to your Flutter applications.
✨ Features
- 🧩 Modular Architecture - Organize your app into independent, reusable modules
- 💉 Dependency Injection - Built-in DI system for better testability and maintainability
- 📡 Event System - Decoupled communication between modules
- 🛣️ Advanced Routing - Enhanced routing capabilities with module support
- 🔄 State Management - Integrated state management solutions
- 🎯 Type Safety - Full TypeScript/Dart type safety throughout
🚀 Quick Start
flutter pub add go_router_modular
import 'package:go_router_modular/go_router_modular.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp.router(
routerConfig: GoRouterModular.router,
);
}
}
📚 Documentation
Explore our comprehensive documentation to get started:
- Getting Started - Learn the basics
- Installation - Setup instructions
- Quick Start - Get up and running quickly
- Dependency Injection - Master the DI system
- Event System - Understand module communication
- Routes - Advanced routing patterns
🌟 Why GoRouter Modular?
Traditional Flutter apps can become complex and hard to maintain as they grow. GoRouter Modular solves this by:
- Breaking down complexity into manageable, independent modules
- Improving testability through dependency injection
- Enhancing maintainability with clear separation of concerns
- Boosting developer productivity with powerful abstractions
- Ensuring scalability as your app grows
🛠️ Built With
- Flutter (opens in a new tab) - UI toolkit
- GoRouter (opens in a new tab) - Declarative routing
- GetIt (opens in a new tab) - Service locator
- Riverpod (opens in a new tab) - State management
📄 License
This project is licensed under the MIT License - see the LICENSE (opens in a new tab) file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📞 Support
- 📧 Email: your-email@example.com
- 🐛 Issues: GitHub Issues (opens in a new tab)
- 💬 Discussions: GitHub Discussions (opens in a new tab)