{"id":24809671,"url":"https://github.com/mohanedzekry/go-router-authentication","last_synced_at":"2026-03-03T06:32:13.262Z","repository":{"id":186918764,"uuid":"609993738","full_name":"MohanedZekry/go-router-authentication","owner":"MohanedZekry","description":"Flutter Authentication using go_router \u0026 BLoC ","archived":false,"fork":false,"pushed_at":"2023-03-16T13:09:22.000Z","size":258,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-08T08:39:20.471Z","etag":null,"topics":["bloc","clean-architecture","dart","flutter","go-router","gorouter"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MohanedZekry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-05T20:47:30.000Z","updated_at":"2023-08-08T08:39:22.653Z","dependencies_parsed_at":"2023-08-08T08:49:30.007Z","dependency_job_id":null,"html_url":"https://github.com/MohanedZekry/go-router-authentication","commit_stats":null,"previous_names":["mohanedzekry/go-router-authentication"],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fgo-router-authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fgo-router-authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fgo-router-authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohanedZekry%2Fgo-router-authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohanedZekry","download_url":"https://codeload.github.com/MohanedZekry/go-router-authentication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236337769,"owners_count":19132985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bloc","clean-architecture","dart","flutter","go-router","gorouter"],"created_at":"2025-01-30T11:15:04.982Z","updated_at":"2025-09-24T01:11:04.919Z","avatar_url":"https://github.com/MohanedZekry.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go_router Authentication\n\nThis 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.\n\n[go_router](https://pub.dev/packages/go_router) and [BLoC](https://pub.dev/packages/flutter_bloc)\n\n\n## Table of Contents\n- [Requirements](#requirements)\n- [Intro](#intro)\n- [Screenshots](#screenshots)\n- [Implementation](#implementation)\n- [Conclusion?](#conclusion)\n\n## Requirements\n- [bloc](https://pub.dev/packages/flutter_bloc) for state management\n- [go_router](https://pub.dev/packages/go_router) for navigation\n- [hive](https://pub.dev/packages/hive) as local storage\n- [freezed](https://pub.dev/packages/freezed) using as code generation for immutable classes\n- [dartz](https://pub.dev/packages/dartz) for functional programming\n\n## Intro\nThis example is built using go_router 6.2.0.\nBuild authentication example with go_router.\nInstead of using buildBody and currentIndex for routing, we’ll be using go router to navigate between screens.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohanedzekry%2Fgo-router-authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohanedzekry%2Fgo-router-authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohanedzekry%2Fgo-router-authentication/lists"}