edoardocostantinidev / circle_nav_bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Circle Nav Bar

Example style:

no padding black padding with gradient

How to use

dependencies:
  circle_nav_bar: ^latest_version
import 'package:circle_nav_bar/circle_nav_bar.dart';

Scaffold(
      bottomNavigationBar: CircleNavBar(
        activeIcons: const [
          Icon(Icons.person, color: Colors.deepPurple),
          Icon(Icons.home, color: Colors.deepPurple),
          Icon(Icons.favorite, color: Colors.deepPurple),
        ],
        inactiveIcons: const [
          Text("My"),
          Text("Home"),
          Text("Like"),
        ],
        color: Colors.white,
        height: 60,
        circleWidth: 60,
        initIndex: 1,
        onChanged: (v) {
          // TODO
        },
        // tabCurve: ,
        padding: const EdgeInsets.only(left: 16, right: 16, bottom: 20),
        cornerRadius: const BorderRadius.only(
          topLeft: Radius.circular(8),
          topRight: Radius.circular(8),
          bottomRight: Radius.circular(24),
          bottomLeft: Radius.circular(24),
        ),
        shadowColor: Colors.deepPurple,
        elevation: 10,
      ),
      ...

About

License:Apache License 2.0


Languages

Language:Dart 77.2%Language:HTML 19.9%Language:Swift 2.0%Language:Kotlin 0.6%Language:Objective-C 0.2%