nav 0.0.8 nav: ^0.0.8 copied to clipboard
Provide easy way to navigate. Includes lots of routers. You can use this library on Android & iOS.
Welcome to Nav 👋 #
![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 #
- Add mixin "Nav" on your App State
import 'package:nav/nav.dart';
class _MyAppState extends State<MyApp> with Nav
- Use push methods
Nav.pushFromRight(Widget)
Nav.pushFromLeft(Widget)
Nav.pushFromTop(Widget)
Nav.pushFromBottom(Widget)
- 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})
- 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
- Website: https://github.com/bansooknam
- Github: @bansooknam
🤝 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