animated_bubble_navigation_bar 1.0.4 copy "animated_bubble_navigation_bar: ^1.0.4" to clipboard
animated_bubble_navigation_bar: ^1.0.4 copied to clipboard

A custom animated bottom navigation bar widget for Flutter apps.

example/lib/main.dart

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

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: HomeScreen(),
    );
  }
}

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

  @override
  State<HomeScreen> createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: AnimatedBubbleNavBottomBar(
        screens: [
          // Screen1(),
          // Screen2(),
          // Screen3(),
        ],
        menuItems: [
          // BubbleItem(lable: "Home"),
          // BubbleItem(lable: "Settings"),
          // BubbleItem(lable: "Profile"),
        ],
        initialIndex: 1,
        bubbleDecoration: BubbleDecoration(
          selectedBubbleBackgroundColor: Colors.white70,
          unSelectedBubbleBackgroundColor: Colors.deepPurple,
          selectedBubbleLabelColor: Colors.black87,
          unSelectedBubbleLabelColor: Colors.white70,
          selectedBubbleIconColor: Colors.black87,
          unSelectedBubbleIconColor: Colors.white70,
          labelStyle: const TextStyle(
              fontSize: 12,
              fontWeight: FontWeight.w400,
              fontStyle: FontStyle.normal),
          iconSize: 30,
          backgroundColor: Colors.deepPurpleAccent,
          innerIconLabelSpacing: 5,
          bubbleItemSize: 10,
          physics: const BouncingScrollPhysics(),
          duration: const Duration(milliseconds: 300),
          margin: const EdgeInsets.all(5),
          padding: const EdgeInsets.all(5),
          curve: Curves.easeIn,
          bubbleAlignment: BubbleAlignment.bottomCenter,
          shapes: BubbleShape.circular,
          squareBordersRadius: 50,
        ),
      ),
    );
  }
}
8
likes
0
points
43
downloads

Publisher

unverified uploader

Weekly Downloads

A custom animated bottom navigation bar widget for Flutter apps.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on animated_bubble_navigation_bar