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

rolling_bottom_bar のカバー
パッケージ詳細v0.2.2

rolling_bottom_bar

ボールをインジケーターとして使用する動的な下部バーを表示するパッケージ。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
162
いいね数
38
Pub ポイント
140

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

flutter pub add rolling_bottom_bar

パッケージ概要

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

ロールイングボールインジケーターを備えた動的なボトムナビゲーションバーを実装するFlutterパッケージです。ボールはバーを滑らかにアニメーションして現在選択されたタブを示し、モダンでインタラクティブなユーザー体験を提供します。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしています。軽量でカスタマイズ可能で、開発者は色、サイズ、アニメーション速度を調整できます。流れるような遷移を持つ視覚的に魅力的なナビゲーションインターフェースを求めるアプリに最適です。

用途

  • モバイルアプリのナビゲーション
  • Webアプリケーションインターフェース
  • クロスプラットフォームUIデザイン
  • インタラクティブなタブ切り替え
  • モダンなアプリの美学

主な機能

  • ローリングボールインジケーター
  • スムーズなアニメーション
  • クロスプラットフォーム対応
  • カスタマイズ可能な外観
  • 軽量実装

適している対象

  • 現代のナビゲーションを求める開発者
  • 複数のタブを持つアプリ
  • デザインに注力したFlutterプロジェクト
  • インタラクティブUIコンポーネント
  • マルチプラットフォームアプリケーション

注意事項

  • 低スペックデバイスではパフォーマンスチューニングが必要になる場合があります
  • 複雑なアニメーションのカスタマイズが限られている
  • シンプルな静的ナビゲーションには適していない
  • Flutterアニメーションの原則を理解する必要があります
  • 3〜5つのタブを持つアプリに最適

元の README

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

Rolling Bottom Bar

This packages, based on this demo by Kabo showing a bottom bar with a dynamic ball indicator.

New Features 💥
  • Capability to avoid the bottom bar shadow by flat property on false
  • Setting active color by each item define on color property of RollingBottomBarItem widget

Demo

Instalation

Include rolling_bottom_bar in your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  rolling_bottom_bar: version

Usage

To use this package, just import it into your file, build your bottom bar together with a PageView and enjoy it.

import 'package:rolling_bottom_bar/rolling_bottom_bar.dart';
import 'package:rolling_bottom_bar/rolling_bottom_bar_item.dart';

...

@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Rolling Bottom Bar'),
      ),
      body: PageView(
        controller: _controller,
        children: <Widget>[
          ColoredBox(color: Colors.blueGrey.shade100),
          ColoredBox(color: Colors.redAccent),
          ColoredBox(color: Colors.greenAccent),
          ColoredBox(color: Colors.yellowAccent),
        ],
      ),
      extendBody: true,
      bottomNavigationBar: RollingBottomBar(
        controller: _controller,
        items: [
          RollingBottomBarItem(Icons.home, label: 'Page 1'),
          RollingBottomBarItem(Icons.star, label: 'Page 2'),
          RollingBottomBarItem(Icons.person, label: 'Page 3'),
          RollingBottomBarItem(Icons.access_alarm, label: 'Page 4'),
        ],
        activeItemColor: Colors.green.shade700,
        enableIconRotation: true,
        onTap: (index) {
          _controller.animateToPage(
            index,
            duration: const Duration(milliseconds: 400),
            curve: Curves.easeOut,
          );
        },
      ),
    );
  }
}

...

Options for Rolling Bottom Bar Item use

Name Description Required Default
iconData IconData to use as item icon True
label String to use as label item False
activeColor Color to use when icon is active. Only works with useActiveColorByDefault property of RollingBottomBarItem set on true False Colors.green

Options for Rolling Bottom Bar use

Name Description Required Default
controller PageView controller to use to move between pages True
items List of RollingBottomBarItem to render into bottom bar True
onTap Function triggered when an item is tapped True
color Color value to use as background False Colors.white
itemColor Color value to use with inactive items False Colors.grey[700]
activeItemColor Color value to use with active items False Colors.green
enableIconRotation Boolean value to indicate when rotation effect is triggered False false
flat Boolean value to indicate if the bottom bar has shadow or not False false
useActiveColorByDefault Boolean value to indicate when to use individual active color for each child False true

カテゴリー

ソースリポジトリ

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

データはまだありません。