All Projects → ravipatel147 → navigate

ravipatel147 / navigate

Licence: other
A flutter plugin for byutifull navigation with advanced routing

Programming Languages

dart
5743 projects
objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to navigate

flutter facebook app events
Flutter Plugin for Facebook App Events
Stars: ✭ 88 (+120%)
Mutual labels:  flutter-plugin
flutter custom tabs
A Flutter plugin to use Chrome Custom Tabs.
Stars: ✭ 117 (+192.5%)
Mutual labels:  flutter-plugin
flutter-google-api-availability
Check the availability of Google Play services on the current device
Stars: ✭ 26 (-35%)
Mutual labels:  flutter-plugin
link text
Easy to use text widget for Flutter apps, which converts inlined urls into working, clickable links
Stars: ✭ 20 (-50%)
Mutual labels:  flutter-plugin
flutter statusbar manager
Flutter StatusBar Manager for iOS & Android
Stars: ✭ 189 (+372.5%)
Mutual labels:  flutter-plugin
pal-plugin
The Flutter onboarding editor
Stars: ✭ 16 (-60%)
Mutual labels:  flutter-plugin
simple gesture detector
Easy to use, reliable and lightweight gesture detector for Flutter apps, exposing simple API for basic gestures
Stars: ✭ 26 (-35%)
Mutual labels:  flutter-plugin
flutter wasm
WebAssembly interpreter for Flutter apps.
Stars: ✭ 22 (-45%)
Mutual labels:  flutter-plugin
aestheticDialogs
📱 Flutter Plugin for 💫fluid, 😍beautiful, 🎨custom Dialogs
Stars: ✭ 19 (-52.5%)
Mutual labels:  flutter-plugin
FlutterLoadingGIFs
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/
Stars: ✭ 28 (-30%)
Mutual labels:  flutter-plugin
flutter google maps
A Flutter plugin for integrating Google Maps in iOS, Android and Web applications. It is a wrapper of google_maps_flutter for Mobile and google_maps for Web.
Stars: ✭ 86 (+115%)
Mutual labels:  flutter-plugin
Motion-Tab-Bar
A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
Stars: ✭ 237 (+492.5%)
Mutual labels:  flutter-plugin
E-commerce
A Flutter E-commerce by implementing the Carousel and other flutter components
Stars: ✭ 36 (-10%)
Mutual labels:  flutter-plugin
acr cloud sdk
🎵 🎶 ACR Cloud SDK For flutter
Stars: ✭ 19 (-52.5%)
Mutual labels:  flutter-plugin
flutter chameleon
[UNMAINTAINED] Flutter package to show platform **dependent** widgets.
Stars: ✭ 30 (-25%)
Mutual labels:  flutter-plugin
flutter freshchat
The unofficial flutter plugin for Freshchat
Stars: ✭ 31 (-22.5%)
Mutual labels:  flutter-plugin
plugins
Flutter plugins for Tizen
Stars: ✭ 40 (+0%)
Mutual labels:  flutter-plugin
flutter isolate
Launch an isolate that can use flutter plugins.
Stars: ✭ 157 (+292.5%)
Mutual labels:  flutter-plugin
davinci
A flutter package to convert any widget to an Image.
Stars: ✭ 33 (-17.5%)
Mutual labels:  flutter-plugin
liquid button
Liquify your buttons, web demo at website
Stars: ✭ 18 (-55%)
Mutual labels:  flutter-plugin

demo


Example source code is here

navigate

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 {

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

Navigation Helper

Now you navigate from anywhere in app

Navigate.navigate(context,
                  "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 https://github.com/ravipatel147/navigate/tree/master/example_with_threepage

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].