zeba_academy_navigation 1.0.0 copy "zeba_academy_navigation: ^1.0.0" to clipboard
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.

Flutter Version Pub Version

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.

0
likes
150
points
100
downloads
screenshot

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

Advanced Flutter navigation package with type-safe routing, guards, deep linking and nested navigation.

Homepage

License

GPL-3.0 (license)

Dependencies

collection, flutter

More

Packages that depend on zeba_academy_navigation