An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Flutter Router and Navigator Example

[![Chinese](https://img.shields.io/badge/README-%E4%B8%AD%E6%96%87-blue)](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)