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

パッケージ詳細v0.1.5

ff_navigation_bar

浮き上がりのハイライトと影付きのカスタマイズ可能な下部ナビゲーションバー

30日間ダウンロード
116
いいね数
159
Pub ポイント
40

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

flutter pub add ff_navigation_bar

パッケージ概要

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

Flutter用のカスタマイズ可能な下部ナビゲーションバーで、浮き上がったハイライトと繊細な影により視覚的な奥行きを強化しています。柔軟性があり、簡単に統合できるように設計されており、開発者がナビゲーション項目の外観や動作をカスタマイズできます。スムーズなトランジションをサポートし、直感的な下部ナビゲーションを必要とするモバイルアプリに適したモダンな美学を提供します。ユーザー体験と視覚的明確さを重視する、複数のセクションまたはタブを持つアプリに最適です。

用途

  • モバイルアプリの下部ナビゲーション
  • タブインターフェースデザイン
  • カスタマイズ可能なナビゲーションバー
  • 影付きの強化されたUI
  • モダンなアプリの美学

主な機能

  • 浮き上がったハイライト効果
  • 繊細な影のスタイル
  • 非常に設定可能
  • スムーズな遷移
  • 簡単な統合

適している対象

  • 現代のナビゲーションを求めるFlutter開発者
  • 複数のコンテンツセクションを持つアプリ
  • デザインを重視したモバイルアプリケーション
  • カスタムUIの実装
  • 視覚的な奥行きを必要とするプロジェクト

注意事項

  • 制限されたプラットフォーム固有のカスタマイズ
  • トランジション以外に組み込みアニメーションは存在しない
  • ステート管理を手動で処理する必要があります
  • 複雑なネストされたナビゲーションに最適化されていません
  • 完全なカスタマイズには外部スタイルに依存します

元の README

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

ff_navigation_bar

A highly configurable navigation bar with emphasis for the selected item.

Add dependency

dependencies:
  ff_navigation_bar: ^0.1.5

Basic use

import 'package:flutter/material.dart';
import 'package:ff_navigation_bar/ff_navigation_bar.dart';
...
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'Demonstration',
            ),
          ],
        ),
      ),
      bottomNavigationBar: FFNavigationBar(
        theme: FFNavigationBarTheme(
          barBackgroundColor: Colors.white,
          selectedItemBorderColor: Colors.yellow,
          selectedItemBackgroundColor: Colors.green,
          selectedItemIconColor: Colors.white,
          selectedItemLabelColor: Colors.black,
        ),
        selectedIndex: selectedIndex,
        onSelectTab: (index) {
          setState(() {
            selectedIndex = index;
          });
        },
        items: [
          FFNavigationBarItem(
            iconData: Icons.calendar_today,
            label: 'Schedule',
          ),
          FFNavigationBarItem(
            iconData: Icons.people,
            label: 'Contacts',
          ),
          FFNavigationBarItem(
            iconData: Icons.attach_money,
            label: 'Bills',
          ),
          FFNavigationBarItem(
            iconData: Icons.note,
            label: 'Notes',
          ),
          FFNavigationBarItem(
            iconData: Icons.settings,
            label: 'Settings',
          ),
        ],
      ),
    );

Theme

The navbar has a Theme class which can be used to define the majority of appearance settings for the navbar and its items.

  • barBackgroundColor: The background color for the entire bar (default = white)
  • selectedItemBackgroundColor: The background color for the CircleAvatar widget used to display the selected item's icon (default = blueAccent)
  • selectedItemIconColor: The color for the selected item's icon (default = white)
  • selectedItemLabelColor: The color for the selected item's label (default = black)
  • selectedItemBorderColor: The color for the selected item's border (default = white)
  • unselectedItemBackgroundColor: The background color for unselected items (default = transparent)
  • unselectedItemIconColor: The color for unselected items' icons (default = grey)
  • unselectedItemLabelColor: The color for unselected items' icons (default = grey)
  • selectedItemTextStyle: The text style to use for the selected item's label. The selectedItemLabelColor takes priority over any color attribute of the style (defaults to size = 13.0, weight = Bold)
  • unselectedItemTextStyle: The text style to use for the unselected items' labels (defaults to size = 12.0, weight = Normal)
  • barHeight: The height for the bar (which is automatically included within a SafeArea widget)
  • itemWidth: The width to use for the selected item CircleAvater (default = 48.0)
  • showSelectedItemShadow: Indicates if the drop shadow below the selected item should be displayed (default = true)

FFNavigationBar Attributes

  • selectedIndex: The item number (zero indexed) which should be marked as selected
  • onSelectTab: Callback function to receive tap notifications using the typedef Function(int selectedIndex)
  • items: List of FFNavigationBarItem objects to be displayed as the bar's items
  • theme: A FFNavigationBarTheme theme object

FFNavigationBarItem

  • label: The String to display as the item's label
  • iconData: The IconData to use in the item's Icon
  • animationDuration: A Duration object which can be used to tweak the AnimatedContainer behaviour of the navigation bar item.
  • selectedBackgroundColor: A Color value which can override the theme's selectedItemBackgroundColor value for a specific navigation bar item (used to create different colors for each item)
  • selectedForegroundColor: A Color value which can override the theme's selectedItemIconColor value
  • selectedLabelColor: A Color value which can override the theme's selectedItemLabelColor value

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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