https://github.com/chyiiiiiiiiiiii/flutter_router_and_navigator_example
Some navigation techniques in Flutter.
https://github.com/chyiiiiiiiiiiii/flutter_router_and_navigator_example
cross-platform dart flutter mobile navigation router tutorial
Last synced: 7 months ago
JSON representation
Some navigation techniques in Flutter.
- Host: GitHub
- URL: https://github.com/chyiiiiiiiiiiii/flutter_router_and_navigator_example
- Owner: chyiiiiiiiiiiii
- Created: 2024-10-03T16:16:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-02T08:21:45.000Z (11 months ago)
- Last Synced: 2025-01-17T08:25:43.596Z (9 months ago)
- Topics: cross-platform, dart, flutter, mobile, navigation, router, tutorial
- Language: C++
- Homepage:
- Size: 261 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flutter Router and Navigator Example
[](README_zh.md)
This example is for Flutter book.
## Description
This project is a comprehensive exploration of navigation techniques in Flutter applications. It demonstrates various navigation strategies, including custom navigation, named routes, and the use of the `go_router` package for more advanced routing scenarios. The project aims to provide developers with a robust understanding of how to manage navigation in Flutter apps effectively.## Table of Contents
- [Flutter Router and Navigator Example](#flutter-router-and-navigator-example)
- [Description](#description)
- [Table of Contents](#table-of-contents)
- [Usage](#usage)
- [Features](#features)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)## Usage
The project is divided into different navigation strategies:1. **Custom Navigator**: Demonstrates a custom navigation setup using the `Navigator` widget.
- Code Reference: `lib/custom_navigator/main.dart`2. **Named Routes**: Utilizes named routes for navigation, allowing for parameter passing and route management.
- Code Reference: `lib/navigator/main.dart`3. **Go Router**: Implements the `go_router` package for declarative routing, including nested routes and redirection.
- Code Reference: `lib/go_router/main.dart`
- Code Reference: `lib/go_router/app_router.dart`
- Code Reference: `lib/go_router/router_refresh_stream.dart`## Features
- **Custom Navigation**: Learn how to implement custom navigation logic with animated transitions.
- **Named Routes**: Understand how to use named routes for cleaner and more manageable navigation.
- **Go Router**: Explore advanced routing capabilities with the `go_router` package, including route guards and state management.## Contributing
Contributions are welcome! If you have suggestions or improvements, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.## Contact
For questions or feedback, please reach out:- Email: ab20803@gmail.com
- Twitter: [@yiichenhi](https://twitter.com/yiichenhi)