FLUTTER ECOSYSTEM

AbdallahAwd/sweet_nav_bar

このパッケージは、数行のコードでグラデーションおよび浮遊型ナビゲーションバーを構築するためのものです。

sweet_nav_bar のプロジェクト画像
Stars
3
Forks
1
最終プッシュ(UTC)
2024/03/09
プロジェクト状態
公開中
Abdallah Awad GitHub avatar
GITHUB User

Abdallah Awad ↗

I'm Abdullah, from Egypt, a Software Engineer full-stack mobile developer (Dart / Go)

言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 3 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}
  • flutter_lints開発用^2.0.0

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる
pub package This package is to build gradiant and floating Navigation Bar with a few lines of code.

Features

  • easy to use
  • gradiant icon easily
  • some beautiful animation

Getting started

To use this package, add sweet_nav_bar as a dependency in your pubspec.yaml file.


https://raw.githubusercontent.com/AbdallahAwd/sweet_nav_bar/HEAD/sweet_nav.gif

Usage

Here is How to use it, You can find Package API

bottomNavigationBar: SweetNavBar(
        paddingGradientColor: iconLinearGradiant,
        currentIndex: cIndex,
        paddingBackgroundColor: Colors.red,
        items: [
          SweetNavBarItem(
              sweetActive: const Icon(Icons.home),
              sweetIcon: const Icon(
                Icons.home_outlined,
              ),
              sweetLabel: 'Home',
              iconColors: iconLinearGradiant,
              sweetBackground: Colors.red),
          SweetNavBarItem(
              sweetIcon: const Icon(Icons.business), sweetLabel: 'Business'),
          SweetNavBarItem(
              sweetIcon: const Icon(Icons.school), sweetLabel: 'School'),
        ],
        onTap: (index) {
          setState(() {
            cIndex = index;
          });
        },
      ),