パッケージ、リポジトリ、アプリカテゴリを検索

fancy_bottom_navigation のカバー
パッケージ詳細v0.3.3

fancy_bottom_navigation

Flutterアプリ用のアニメーション付きボトムナビゲーションバー。アイコンがアニメーションで配置され、色はカスタマイズ可能。

30日間ダウンロード
356
いいね数
229
Pub ポイント
60

パッケージをインストール

flutter pub add fancy_bottom_navigation

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Fancy Bottom Navigation は、滑らかなアイコンの遷移とカスタマイズ可能な色を備えたアニメーション付きのボトムナビゲーションバーを提供するFlutterパッケージです。タブ間を切り替える際のダイナミックな視覚フィードバックにより、モバイルアプリのユーザーインターフェースを強化します。アニメーション効果により、アイコンが洗練された形で表示・非表示になり、全体的なユーザーエクスペリエンスを向上させます。開発者は、アプリのデザイン言語に合わせて外観や挙動を簡単にカスタマイズできます。現代的で魅力的なナビゲーションパターンを必要とするアプリに最適です。

用途

  • タブベースのナビゲーションを備えたモバイルアプリ
  • アニメーショントランジションによるUI/UXの向上
  • ボトムナビゲーションの外観をカスタマイズする
  • 視覚的に魅力的なダッシュボードの作成
  • インタラクティブなアプリインターフェースの設計

主な機能

  • アニメーションアイコンのトランジション
  • 完全にカスタマイズ可能な色
  • スムーズなタブ切り替え効果
  • 既存のFlutterプロジェクトとの簡単な統合
  • カスタムアイコンおよびラベルのスタイル設定をサポート

適している対象

  • 現代のナビゲーションを求めるFlutter開発者
  • 視覚的魅力に焦点を当てたアプリ
  • アニメーション付きUIコンポーネントを必要とするプロジェクト
  • デザイン主導のモバイルアプリケーション
  • 迅速なナビゲーションの向上を望む開発者

注意事項

  • 制限されたプラットフォーム固有のカスタマイズ
  • 複雑なレイアウトには追加のスタイリングが必要になる場合があります
  • 非常に多数のタブに対して最適化されていません
  • 古いデバイスではアニメーションのパフォーマンスが異なる場合があります
  • ステート管理を手動で処理する必要があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

FancyBottomNavigation

Fancy Gif

Getting Started

Add the plugin (pub coming soon):

dependencies:
  ...
  fancy_bottom_navigation: ^0.3.2

Limitations

For now this is limited to more than 1 tab, and less than 5. So 2-4 tabs.

Basic Usage

Adding the widget

bottomNavigationBar: FancyBottomNavigation(
    tabs: [
        TabData(iconData: Icons.home, title: "Home"),
        TabData(iconData: Icons.search, title: "Search"),
        TabData(iconData: Icons.shopping_cart, title: "Basket")
    ],
    onTabChangedListener: (position) {
        setState(() {
        currentPage = position;
        });
    },
)

TabData

iconData -> Icon to be used for the tab
title -> String to be used for the tab
onClick -> Optional function to be used when the circle itself is clicked, on an active tab

Attributes

required

tabs -> List of TabData objects
onTabChangedListener -> Function to handle a tap on a tab, receives int position

optional

initialSelection -> Defaults to 0
circleColor -> Defaults to null, derives from Theme
activeIconColor -> Defaults to null, derives from Theme
inactiveIconColor -> Defaults to null, derives from Theme
textColor -> Defaults to null, derives from Theme
barBackgroundColor -> Defaults to null, derives from Theme
key -> Defaults to null

Theming

The bar will attempt to use your current theme out of the box, however you may want to theme it. Here are the attributes:

Fancy Theming

Programmatic Selection

To select a tab programmatically you will need to assign a GlobalKey to the widget. When you want to change tabs you will need to access the State using this key, and then call setPage(position).
See example project, main.dart, line 75 for an example.

Showcase

Using this package in a live app, let me know and I'll add you app here.

Inspiration

This package was inspired by a design on dribbble by Manoj Rajput:
https://dribbble.com/shots/5419022-Tab

Contributing

Contributions are welcome, please submit a PR :)

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト