floating_bottom_navigation_bar 1.2.0 copy "floating_bottom_navigation_bar: ^1.2.0" to clipboard
floating_bottom_navigation_bar: ^1.2.0 copied to clipboard

outdated

Highly customizable floating bottom navigation package for flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:floating_bottom_navigation_bar/floating_bottom_navigation_bar.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Example'),
        ),
        //If you want to show body behind the navbar, it should be true
        extendBody: true,
        bottomNavigationBar: FloatingNavbar(
          onTap: (int val) {
            //returns tab id which is user tapped
          },
          currentIndex: 0,
          items: [
            FloatingNavbarItem(icon: Icons.home, title: 'Home'),
            FloatingNavbarItem(icon: Icons.explore, title: 'Explore'),
            FloatingNavbarItem(icon: Icons.chat_bubble_outline, title: 'Chats'),
            FloatingNavbarItem(icon: Icons.settings, title: 'Settings'),
          ],
        ),
      ),
    );
  }
}
170
likes
0
pub points
97%
popularity

Publisher

unverified uploader

Highly customizable floating bottom navigation package for flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on floating_bottom_navigation_bar