curved_navigation_bar_pro 2.0.11 copy "curved_navigation_bar_pro: ^2.0.11" to clipboard
curved_navigation_bar_pro: ^2.0.11 copied to clipboard

A beautiful Flutter curved bottom navigation bar with an animated curved notch FAB, smooth elastic bubble animation, badge support, and fully customisable theming.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:curved_navigation_bar_pro/curved_navigation_bar_pro.dart';
import 'package:lottie/lottie.dart';

void main() => runApp(const ExampleApp());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'CurvedNavigationBarPro Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorSchemeSeed: Colors.indigo,
        fontFamily: 'sora',
        useMaterial3: true,
      ),
      home: const HomePage(),
    );
  }
}

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

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

class _HomePageState extends State<HomePage> {
  int _index = 0;


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.amberAccent,
      bottomNavigationBar: CurvedNavigationBarPro(
        barHeight: 90,
        fabSink: 20,
        fabGap: 8,
        cornerRadius: 17,
        notchShoulderRadius: 17,
        contentPadding: 19,
        navbarStyle: CNBPStyles.minimalMono,
        activeIconSize: 26,
        inactiveIconSize: 26,
        inactiveColor: Colors.grey,
        inactiveTextStyle: TextStyle(
          fontFamily: 'sora'
        ),
        shadowColor: Colors.black.withValues(alpha: 0.1),
        activeTextStyle:
            TextStyle(fontFamily: 'sora', fontWeight: FontWeight.w600
        ),
      
        items: [
          const CurvedNavigationItemPro(
            inactiveIcon: Icons.home_outlined,
            activeIcon: Icons.home_rounded,
            label: 'Home',
          ),
          const CurvedNavigationItemPro(
            inactiveIcon: Icons.search_outlined,
            activeIcon: Icons.search_rounded,
            label: 'Search',
            // badgeText: '•',
          ),
          CurvedNavigationItemPro(
              inactiveIcon: Icons.shopping_cart_outlined,
            activeWidget: Lottie.asset(
              'lotties/cart.json',
              repeat: false,
              width: 28,
            ),
            label: 'Cart',
              badgeText: '•'
          ),
          const CurvedNavigationItemPro(
            inactiveIcon: Icons.favorite_border_rounded,
            activeIcon: Icons.favorite_rounded,
            label: 'Favourites',
            badgeText: '7',
          ),
         
          
          CurvedNavigationItemPro(
            inactiveIcon: Icons.person_outline_rounded,
            activeIcon: Icons.person_rounded,
            
            label: 'Profile',
            
          ),
        ],
        currentIndex: _index,
        onTap: (i) => setState(() => _index = i),
      ),
    );
  }
}
38
likes
160
points
996
downloads
screenshot

Documentation

API reference

Publisher

verified publisheraslamambiloly.2bd.net

Weekly Downloads

A beautiful Flutter curved bottom navigation bar with an animated curved notch FAB, smooth elastic bubble animation, badge support, and fully customisable theming.

Repository (GitHub)
View/report issues

Topics

#navigation #ui #animation #widget #material-design

License

MIT (license)

Dependencies

flutter

More

Packages that depend on curved_navigation_bar_pro