navi 0.1.0 navi: ^0.1.0 copied to clipboard
A declarative navigation framework for Flutter, based on Navigator 2.0.
For more details, please check provided examples.
pubspec.xml
dependencies:
navi: any
main.dart
import 'package:flutter/material.dart';
import 'package:navi/navi.dart';
void main() {
runApp(App());
}
class App extends StatelessWidget {
final _informationParser = NaviInformationParser();
final _routerDelegate = NaviRouterDelegate(rootStack: BookStack());
@override
Widget build(BuildContext context) {
return MaterialApp.router(
title: 'Navi - Declarative navigation API for Flutter',
routeInformationParser: _informationParser,
routerDelegate: _routerDelegate,
);
}
}