quick_navbar 1.0.1 copy "quick_navbar: ^1.0.1" to clipboard
quick_navbar: ^1.0.1 copied to clipboard

quick_navbar is a quick, easy-to-use package to allow you to create simple but stylish bottom navigation bars.

example/example.dart

import 'package:flutter/material.dart';
import 'package:quick_navbar/quick_navbar.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: QuickNavBar(items: [
        {
          "label": "Home",
          "icon": Icons.home_outlined,
          "selectedIcon": Icons.home,
          "widget": HomePage(),
        },
        {
          "label": "Search",
          "icon": Icons.search_outlined,
          "selectedIcon": Icons.search,
          "widget": SettingsPage(),
        },
        {
          "label": "Settings",
          "icon": Icons.settings_outlined,
          "selectedIcon": Icons.settings,
          "widget": SettingsPage(),
        },
      ], showLabels: false, type: QuickNavBarType.animate, hoverEffect: false),
    );
  }
}

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Text("Home page");
  }
}

class SearchPage extends StatefulWidget {
  const SearchPage({super.key});

  @override
  State<SearchPage> createState() => _SearchPageState();
}

class _SearchPageState extends State<SearchPage> {
  @override
  Widget build(BuildContext context) {
    return Text("Search page");
  }
}

class SettingsPage extends StatefulWidget {
  const SettingsPage({super.key});

  @override
  State<SettingsPage> createState() => _SettingsPageState();
}

class _SettingsPageState extends State<SettingsPage> {
  @override
  Widget build(BuildContext context) {
    return Text("Settings page");
  }
}
0
likes
0
points
552
downloads

Publisher

unverified uploader

Weekly Downloads

quick_navbar is a quick, easy-to-use package to allow you to create simple but stylish bottom navigation bars.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on quick_navbar