shaped_bottom_bar 1.1.0 copy "shaped_bottom_bar: ^1.1.0" to clipboard
shaped_bottom_bar: ^1.1.0 copied to clipboard

Fully customizable bottom navigation bar with multiple built-in shapes and support custom shapes also with built-in transition animations

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:shaped_bottom_bar/models/shaped_item_object.dart';
import 'package:shaped_bottom_bar/utils/arrays.dart';
import 'package:shaped_bottom_bar/shaped_bottom_bar.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyScreen(),
    );
  }
}

class MyScreen extends StatefulWidget {
  @override
  _MyScreenState createState() => _MyScreenState();
}

class _MyScreenState extends State<MyScreen> {
  List<Widget> screens = [
    Container(color: Colors.white),
    Container(color: Colors.white),
    Container(color: Colors.white),
    Container(color: Colors.white)
  ];

  int selectedItem = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      bottomNavigationBar: ShapedBottomBar(
        backgroundColor: Colors.black12,
        iconsColor: Colors.black,
        listItems: [
          ShapedItemObject(iconData: Icons.alarm, title: "Alarm"),
          ShapedItemObject(iconData: Icons.menu_book, title: "Menu"),
          ShapedItemObject(
              iconData: Icons.verified_user_rounded, title: "User"),
          ShapedItemObject(iconData: Icons.login, title: "Logout"),
        ],
        onItemChanged: (position) {
          setState(() {
            this.selectedItem = position;
          });
        },
        shape: ShapeType.SQUARE,
        shapeColor: Colors.pink,
        selectedIconColor: Colors.white,
        with3dEffect: true,
        animationType: ANIMATION_TYPE.FADE,
      ),
      body: Container(),
    );
  }
}
24
likes
150
pub points
46%
popularity

Publisher

verified publisherbadrkouki.dev

Fully customizable bottom navigation bar with multiple built-in shapes and support custom shapes also with built-in transition animations

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on shaped_bottom_bar