nav 0.0.8 copy "nav: ^0.0.8" to clipboard
nav: ^0.0.8 copied to clipboard

outdated

Provide easy way to navigate. Includes lots of routers. You can use this library on Android & iOS.

Welcome to Nav 👋 #

Version ![License: Apache 2.0](https://img.shields.io/badge/License-Apache 2.0-yellow.svg)

Provide easy way to navigate. Includes lots of routers. You can use this library on Android & iOS.

![sample](/Users/nam/Projects/flutter-library/nav/img/sample.gif | width=100)

🏠 Homepage #

Install #

nav: ^{latest version}

Usage #

  1. Add mixin "Nav" on your App State
import 'package:nav/nav.dart';

class _MyAppState extends State<MyApp> with Nav 
  1. Use push methods
Nav.pushFromRight(Widget)
Nav.pushFromLeft(Widget)
Nav.pushFromTop(Widget)
Nav.pushFromBottom(Widget)
  1. All methods can return value
//from bottom screen
final result = await Nav.pushFromRight( TopScreen ) //you can get result from TopWidget

//from top screen
Nav.pop(context, result: {"key": "value", "key2": 2})
  1. If you want to use ripple push please initialize Nav before use.
 //This should be called inside layer of Material App Widget
@override
  void initState() {
    super.initState();
    WidgetsBinding.instance
        .addPostFrameCallback((_) => Nav.initInsideOfApp(context));
  }

Author #

👤 Bansook Nam

🤝 Contributing #

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the [contributing guide](Contributions, issues and feature requests are welcome.).

Show your support #

Give a ⭐️ if this project helped you!

📝 License #

Copyright © 2020 Bansook Nam.

This project is Apache 2.0 licensed.


This README was generated with ❤️ by readme-md-generator

11
likes
0
pub points
88%
popularity

Publisher

verified publisherbansook.xyz

Provide easy way to navigate. Includes lots of routers. You can use this library on Android & iOS.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

after_layout, flutter

More

Packages that depend on nav