dark_router 0.1.3
dark_router: ^0.1.3 copied to clipboard
A extension package for go_router to support query parameters generation and making life easy for you with other usefull features.
Changelog #
0.1.2 #
Added #
- Fluent callback API
setCallback()now returns the current instance, allowing:final qp = QueryParams(intl: list) .setCallback((value) => doSomething(value));
- Clearer documentation for callback usage patterns.
Changed #
- Updated generator output so that
setCallbackbecomes chain-friendly without breaking existing code. - Minor internal cleanups and documentation improvements.
0.1.1 #
New Features #
-
Added
DarkRouteextension- Provides
buildConfig()forSimpleRouteConfig→GoRouteconversion. - Provides
futureBuildConfig()forAsyncRouteConfig→ async-enabledGoRoutewith:- typed route data parsing
- async fetching (
fetch) - loading widget
- error widget
- Greatly reduces boilerplate when defining routes in GoRouter.
- Ensures consistent, type-safe routing across large applications.
- Provides
-
Added
DarkStatefulShellRoute- Provides
indexedStackConfig()to convert anyShellIndexedStackConfiginto a complete:StatefulShellRoute.indexedStack
- Centralizes all shell logic (tabs, bottom navigation, dashboard shells).
- Keeps route definitions clean and easy to maintain.
- Provides
Improvements #
- Reorganized package structure for clarity and maintainability:
config/→ route configuration abstractionsextension/→ GoRouter helpersquery_params_builder/→ annotations + builder + generator
- Created unified export file
dark_router.dartto simplify importing. - Updated inline documentation with detailed examples for all route configs.
- Removed outdated files and old builder implementations.
- Cleaned up comments, formatting, and internal code structure.
0.0.1 #
- Initial release.
- Added
@QueryParamsSerializableannotation. - Added
@CallbackIdFieldannotation. - Added source_gen builder (
query_params). - Query parameter serialization/deserialization.
- Callback registry support.
- Payload encoding via
ed. - Example project included.
- MIT License added.