circle_navigation 1.0.2 copy "circle_navigation: ^1.0.2" to clipboard
circle_navigation: ^1.0.2 copied to clipboard

A circle navigation bar for Android and iOS with simple animation

A circle navigation bar with a simple animation

An animated image of the iOS circle navigation bar UI

Getting started #

To install, add it to your pubspec.yaml file:

dependencies:
    circle_navigation:
copied to clipboard

To import it:

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

Usage #

Use in bottomNavigationBar property of Scaffold widget:

@override
Widget build(BuildContext context) =>
    Scaffold(
      body: PageView(
        controller: pageController,
        physics: const NeverScrollableScrollPhysics(),
        children: const [
          Icon(Icons.home, color: Colors.green, size: 150),
          Icon(Icons.account_circle, color: Colors.green, size: 150),
          Icon(Icons.settings, color: Colors.green, size: 150),
        ],
      ),
      bottomNavigationBar: CircleNavigation(
        initIndex: initIndex,
        items: [
          Item(
              icon: const Icon(
                Icons.home,
                color: Colors.white,
                size: 30,
              ),
              label: 'Home'),
          Item(
              icon: const Icon(
                Icons.account_circle,
                color: Colors.white,
                size: 30,
              ),
              label: 'User'),
          Item(
              icon: const Icon(
                Icons.settings,
                color: Colors.white,
                size: 30,
              ),
              label: 'Settings'),
        ],
        textStyle: const TextStyle(
          color: Colors.white,
          fontSize: 16,
          fontWeight: FontWeight.bold,
        ),
        circleColor: Colors.green,
        navColor: Colors.blue,
        onChange: (index) =>
            pageController.animateToPage(
              index,
              duration: const Duration(milliseconds: 300),
              curve: Curves.ease,
            ),
      ),
    );
copied to clipboard
1
likes
160
points
40
downloads

Publisher

verified publisherhunghv.com

Weekly Downloads

2024.09.17 - 2025.04.01

A circle navigation bar for Android and iOS with simple animation

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on circle_navigation