laams_push 0.0.2
laams_push: ^0.0.2 copied to clipboard
A declarative URI-based router for advanced navigation in Flutter, tailored for deep linking, user auth-based navigation, custom transition animations, ease of use, and many more.
Overview of laams_push #
The goal of laams_push is to make all the advanced functionalities of navigation in Flutter easy to use. We have developed a declarative URI-based router for advanced navigtion in Flutter. laams_push functionalities include but are not limited to deep linking, authentication based navigation, custom route transition animation and many more.
Features #
- Deep linking
- Navigation based on user authentication state
- Custom animations for navigation transition
Getting started #
add the laams_push to your pubspec.yaml and you are good to go.
Usage #
Here is an example of how to use laams_push in your project.
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const LaamsApp.router(
pages: {
MyHomePage.path: MyHomePage(),
MyAboutPage.path: MyAboutPage(),
},
);
}
}
class MyHomePage extends StatelessWidget {
static const String path = '/';
const MyHomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Laams Push')),
body: const Center(child: Text('Hello World!')),
);
}
}
class MyAboutPage extends StatelessWidget {
static const String path = '/about';
const MyAboutPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Laams Push')),
body: const Center(child: Text('My about page!')),
);
}
}