zeba_academy_navigation 1.0.0
zeba_academy_navigation: ^1.0.0 copied to clipboard
Advanced Flutter navigation package with type-safe routing, guards, deep linking and nested navigation.
Zeba Academy Navigation #
Advanced Flutter navigation package with type-safe routing, navigation guards, deep linking, animated page transitions, and nested navigation system.
Features #
- Type-safe routing system for Flutter
- Deep linking support for Android, iOS, and Flutter Web
- Navigation guards (auth checks, conditional routing)
- Animated page transitions
- Nested navigation support for complex layouts
- URL routing for Flutter Web
Installation #
Add this to your pubspec.yaml:
dependencies:
zeba_academy_navigation: ^1.0.0
Then run:
flutter pub get
Usage Example #
import 'package:flutter/material.dart';
import 'package:zeba_academy_navigation/zeba_academy_navigation.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
final router = ZebaRouter([
ZebaRoute(path: '/', builder: (_) => const HomePage()),
ZebaRoute(path: '/profile', builder: (_) => const ProfilePage()),
]);
MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Zeba Academy Navigation Demo',
theme: ThemeData(primarySwatch: Colors.deepPurple),
onGenerateRoute: router.generateRoute,
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Home')),
body: Center(
child: ElevatedButton(
onPressed: () => Navigator.pushNamed(context, '/profile'),
child: const Text('Go to Profile'),
),
),
);
}
}
class ProfilePage extends StatelessWidget {
const ProfilePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Profile')),
body: const Center(child: Text('Profile Page')),
);
}
}
Screenshots #
- Home Page: [Home Page]
- Profile Page: [Profile Page]
About Me #
⨠Iām Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on Linkedin
Your all-in-one no-bloat hub! #
š Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience. Level up your tech game today! š»āØ
Zeba Academy is a learning platform dedicated to coding, technology, and development. ā” Visit our main site: zeba.academy ā” Explore hands-on courses and resources at: code.zeba.academy ā” Check out our YouTube for more tutorials: zeba.academy ā” Follow us on Instagram: zeba.academy
Thank you for visiting!
License #
This package is licensed under the GPL-3.0 License.
