navigate 1.0.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 86

demo #

Example source code is here

A new Flutter package for Byutifull navigation

Why develop this package #

A flutter have a package name a fluro. Fluro is a nice package and easy to use but they have some limitation. If i need to pass a parameter in Map, List type variable that not allow me. Fluro allow only string but in real time that's not good.

App development its diff from web development in web development we need to pass only small amount of data like id, slug or etc but in App development we need to pass data between screen is object , array or etc.

Getting Started #

Step 1: install navigate

navigate: 1.0.1

Step 2: Create new folder lib\config
Step 3: Create file in folder lib\config\route.dart

import 'package:flutter/material.dart';
import 'package:navigate/navigate.dart';
import 'package:testpackage/main.dart';

// define your handler here or create new file for handler 

var homeHandler = Handler(
  transactionType: TransactionType.fromRight,
  pageBuilder: (BuildContext context,arg){

      //return your page from here 
      return HomePage(replaceRoute: arg["replaceRoute"],transactionType: arg["transactionType"],);

// define your route here 
Map<String,Handler> route = {
    "home" : homeHandler

Work of above code is create one route name home . Route have their own handler called homeHandler . You can define TransactionType of slide how come on screen. Its not required if it null then Defualt transaction is work.

Step 4: Register your route
It's a final step of intigration. Now you need to register your routes with package in first page of your class constructor my landing page of app is LandingPage()

import 'package:flutter/material.dart';
import 'package:navigate/navigate.dart';

/* your route file */ 
import 'package:testpackage/config/route.dart';

class LandingPage extends StatelessWidget {

   // start registration of routes 
      routes: route,
      defualtTransactionType: TransactionType.fromRight // if not provide in handler or manually in argument of navigation
    //end  registration of routes 
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Navigate Demo"),),
      body: Center(

Now you navigate from anywhere in app

                  "home", /* route name */
                  transactionType: transactionType, /* Override handler transaction type (optional) */
                  replaceRoute: replaceRoute, // replace route after navigate or not 
                  arg: {"transactionType":transactionType,"replaceRoute":replaceRoute} // argument data receiver in handler page builder function */

#example 2

<<<<<<< HEAD

  • TODO: Remove console log from the code.
  • TODO: Optimize code with support to previous version. #

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.



How to run #

Clone or download code. After go in to the project directopry and run flutter run

Result #

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  navigate: ^1.0.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get


3. Import it

Now in your Dart code, you can use:

import 'package:navigate/navigate.dart';
Code health derived from static analysis. [more]
Weighted score of the above. [more]
Learn more about scoring.


  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Format lib/navigate.dart.

Run flutter format to format lib/navigate.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.3 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies