floating_navbar 3.0.0 copy "floating_navbar: ^3.0.0" to clipboard
floating_navbar: ^3.0.0 copied to clipboard

Customisable, clean looking bottom floating navbar. FloatingNavBar comes with multiple customization options - colors, page indicators, etc. This can be used as an alternative to the default BottomNa [...]

floating_navbar #

Simple customisable floating bottom navigation bar. #

Usage #

Add dependency #

  floating_navbar: ^3.0.0
copied to clipboard

Import package #

  import 'package:floating_navbar/floating_navbar.dart';
copied to clipboard

Use in code as follows #

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FloatingNavBar',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: FloatingNavBar(
        resizeToAvoidBottomInset: false,
        color: Colors.green,
        selectedIconColor: Colors.white,
        unselectedIconColor: Colors.white.withOpacity(0.6),
        items: [
          FloatingNavBarItem(iconData: Icons.home_outlined, page: Home(), title: 'Home'),
          FloatingNavBarItem(iconData: Icons.local_hospital_outlined, page: Doctors(), title: 'Doctors'),
          FloatingNavBarItem(iconData: Icons.alarm, page: Reminders(), title: 'Reminders'),
          FloatingNavBarItem(iconData: Icons.pending_actions_outlined, page: Records(), title: 'Records'),
        ],
        horizontalPadding: 10.0,
        hapticFeedback: true,
        showTitle: true,
      ),
    );
  }
}
copied to clipboard

Thanks to Darshan Aswath, Kuda K and Altay

Screenshot #

Floating Navbar

69
likes
150
points
198
downloads

Publisher

verified publisheriamngoni.co.zw

Weekly Downloads

2024.09.16 - 2025.03.31

Customisable, clean looking bottom floating navbar. FloatingNavBar comes with multiple customization options - colors, page indicators, etc. This can be used as an alternative to the default BottomNavigationBar

Homepage

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on floating_navbar