• This repository has been archived on 25/Feb/2022
  • Stars
    star
    442
  • Rank 95,313 (Top 2 %)
  • Language
    Dart
  • Created almost 3 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The purpose of the go_router for Flutter is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handling deep linking from Android, iOS and the web while still allowing an easy-to-use developer experience.

go_router is now published and maintained by the Flutter team

As of the 3.0.2 release, the go_router package is published by the Flutter team and maintained by Flutter engineering in the flutter/packages repository.

Existing go_router issues have been moved to the flutter issues list and new go_router-related issues should be filed there.

The docs on gorouter.dev will also be moving to docs.flutter.dev over time.

This repo has been archived and is read-only.

Pub Version Test codecov License

Welcome to go_router!

The purpose of the go_router package is to use declarative routes to reduce complexity, regardless of the platform you're targeting (mobile, web, desktop), handle deep and dynamic linking from Android, iOS and the web, along with a number of other navigation-related scenarios, while still (hopefully) providing an easy-to-use developer experience.

You can get started with go_router with code as simple as this:

class App extends StatelessWidget {
  App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) => MaterialApp.router(
        routeInformationParser: _router.routeInformationParser,
        routerDelegate: _router.routerDelegate,
        title: 'GoRouter Example',
      );

  final _router = GoRouter(
    routes: [
      GoRoute(
        path: '/',
        builder: (context, state) => const Page1Screen(),
      ),
      GoRoute(
        path: '/page2',
        builder: (context, state) => const Page2Screen(),
      ),
    ],
  );
}

class Page1Screen extends StatelessWidget {...}

class Page2Screen extends StatelessWidget {...}

But go_router can do oh so much more!

See gorouter.dev for go_router docs & samples

More Repositories

1

flutter_cropping

A demonstration of dynamic cropping in Flutter.
C++
34
star
2

flutter_mplat_ttt

Flutter Multi-Platform Sample Game of Tic-Tac-Toe
JavaScript
30
star
3

flutter_mazegen

Moving some old C++ over to generate a maze in Flutter
Dart
29
star
4

flutter_texteditor_linenums

C++
28
star
5

flutter_image_search

An image search app using Google's Custom Search Engine, caching and debouncing.
Dart
26
star
6

flutter_color_filter

A demo of the new ColorFilter widget.
Dart
20
star
7

flutter_toggle_buttons

A demo of the new ToggleButtons segmented button bar widget.
Dart
17
star
8

xkcd_clock

A Flutter implementation of the xkcd clock.
Dart
16
star
9

flutter_deep_linking

Flutter web deep linking sample
Dart
14
star
10

fibscli

FIBS client built in Flutter
Dart
9
star
11

assets_builder

A Dart builder for translating asset files into code for primitive resource bundling
Dart
9
star
12

min-kotlin-android

Minimal Kotlin app for Android.
Kotlin
7
star
13

assets_codegen

A Dart program for translating asset files into code for primitive resource bundling
Dart
6
star
14

MintScraper

A C# tool to automatically download balance and transaction data from your http://mint.com account.
C#
5
star
15

flutter_click_image

sample app for showing a clicked image at full screen size and to dismiss it w/ ESC key
Dart
4
star
16

WahooMobile

My Xamarin.Forms implementation of Tetris for iOS, Android and WP8
C#
4
star
17

fibscli_lib

Dart
3
star
18

tic_tac_toe

Flutter Tic-Tac-Toe
Dart
3
star
19

MeetMeet4Xamarin

C#
3
star
20

fibsboard

utilities for going back and forth between board model data structure and text rep for board
Dart
3
star
21

MiddleMeeter

Xamarin course example app
C#
3
star
22

flutter_text_editor

an attempt to replace the TextField on the web with a <textarea>
Dart
2
star
23

min-pwa

Minimal Progressive Web App (PWA) that passes a Google Lighthouse audit
HTML
2
star
24

flutter_exemplar

Dart
2
star
25

just_books

Dart
2
star
26

sb_sgen

sellsbrothers.com static site generation tool
Dart
2
star
27

curl_testing

some tests for client-side Dart code to generate in https://github.com/NickCarneiro/curlconverter
Dart
2
star
28

tom_foolery

Flutter foolery with Tom
Dart
1
star
29

sb-blot

Blot port of sellsbrothers.com
HTML
1
star
30

snakebyte

Dart
1
star
31

uvtt

Dart
1
star
32

FormatDesigner

FormatDesigner is an application to experiment with the format strings used to format data in String.Format and various type's ToString functions.
C#
1
star
33

shared_prefs_proto

shared_prefs_proto for Windows (precursor to shared_prefs Flutter plugin)
C++
1
star
34

mobx_fun

Playing around with the DevX of MobX for FunX.
Dart
1
star
35

flutter_family_fun

experimenting with json serialization and provider in flutter
Dart
1
star
36

dart_json_fun

Fun with non-trivial JSON serialization/deserialization in Dart
Dart
1
star
37

Fibs.Net

.NET Core library, proxy and tests as well as web client for First Internet Backgammon Server (FIBS)
Java
1
star
38

tinysells

tinysells.com redirect implementation
HTML
1
star
39

sb4

sellsbrothers.com implementation
HTML
1
star
40

spacetraders_dart

Dart
1
star
41

har_clientgen

Dart network client code generator from HTTP Archive (HAR) file
Dart
1
star