gt_navigation 1.0.0 copy "gt_navigation: ^1.0.0" to clipboard
gt_navigation: ^1.0.0 copied to clipboard

A production-ready Flutter navigation package with middleware, deep linking, nested navigation, custom transitions, and type-safe routing.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

1.0.0 - 2025-12-27 #

Added #

Core Navigation

  • AppRouter singleton for context-free navigation throughout the app
  • AppRoute class with regex-based path matching for dynamic routes (e.g., /user/:id)
  • AppRouteArguments with type-safe getters (getString, getInt, getDouble, getBool)
  • Multiple navigation modes: push, pushReplacement, pushAndRemoveUntil, pushAndRemoveAll

Route Management

  • Routes class for centralized, type-safe route definitions
  • Path parameter extraction from dynamic routes
  • Query parameter support

Middleware System

  • AppMiddleware abstract class for navigation guards
  • AuthMiddleware example implementation for authentication checks
  • Automatic redirect on blocked navigation

Transitions

  • 7 built-in transition types: material, cupertino, fade, slide, scale, rotation, none
  • Configurable transition direction: leftToRight, rightToLeft, topToBottom, bottomToTop
  • Custom transition duration

Deep Linking

  • DeepLinkConfig for scheme and host configuration
  • Automatic deep link parsing and routing
  • handleDeepLink and handleNotificationRoute methods

UI Helpers

  • openDialog for context-free dialog display
  • openBottomSheet for context-free bottom sheet display
  • NestedNavigator widget for tabs and multi-pane layouts

Observability

  • AppRouterObserver for route lifecycle tracking
  • NavigationLogger for debug logging
  • Built-in navigation stack tracking

Memory Management

  • Stack size limiting to prevent unbounded growth
  • Proper dispose method for cleanup
0
likes
160
points
144
downloads

Publisher

unverified uploader

Weekly Downloads

A production-ready Flutter navigation package with middleware, deep linking, nested navigation, custom transitions, and type-safe routing.

Repository (GitHub)
View/report issues

Topics

#navigation #router #routing #deep-linking #middleware

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on gt_navigation