https://github.com/mohanedzekry/go-router-authentication
Flutter Authentication using go_router & BLoC
https://github.com/mohanedzekry/go-router-authentication
bloc clean-architecture dart flutter go-router gorouter
Last synced: 4 months ago
JSON representation
Flutter Authentication using go_router & BLoC
- Host: GitHub
- URL: https://github.com/mohanedzekry/go-router-authentication
- Owner: MohanedZekry
- Created: 2023-03-05T20:47:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T13:09:22.000Z (about 2 years ago)
- Last Synced: 2023-08-08T08:39:20.471Z (almost 2 years ago)
- Topics: bloc, clean-architecture, dart, flutter, go-router, gorouter
- Language: Dart
- Homepage:
- Size: 252 KB
- Stars: 19
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go_router Authentication
This is an example shows how to use go_router for authentication with BLoC as state management, The purpose of the go_router package is that it is A declarative routing package for Flutter that uses the Router API to provide a convenient, url-based API for navigating between different screens and reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), You can define URL patterns, navigate using a URL, handle deep links, and a number of other navigation-related scenarios.
[go_router](https://pub.dev/packages/go_router) and [BLoC](https://pub.dev/packages/flutter_bloc)
## Table of Contents
- [Requirements](#requirements)
- [Intro](#intro)
- [Screenshots](#screenshots)
- [Implementation](#implementation)
- [Conclusion?](#conclusion)## Requirements
- [bloc](https://pub.dev/packages/flutter_bloc) for state management
- [go_router](https://pub.dev/packages/go_router) for navigation
- [hive](https://pub.dev/packages/hive) as local storage
- [freezed](https://pub.dev/packages/freezed) using as code generation for immutable classes
- [dartz](https://pub.dev/packages/dartz) for functional programming## Intro
This example is built using go_router 6.2.0.
Build authentication example with go_router.
Instead of using buildBody and currentIndex for routing, we’ll be using go router to navigate between screens.