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

stage_navigation_bar のカバー
パッケージ詳細v0.1.0

stage_navigation_bar

選択項目時にアニメーションを伴う美しいナビゲーションバーを提供するFlutterパッケージ。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
10
いいね数
9
Pub ポイント
150

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

flutter pub add stage_navigation_bar

パッケージ概要

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

アイテム間の切り替え時にスムーズなアニメーションを提供する、視覚的に魅力的な下部ナビゲーションバーを提供するFlutterパッケージです。ナビゲーション中に動的な視覚フィードバックを提供することで、ユーザー体験を向上させ、魅力的でモダンなインターフェース要素を必要とするアプリに最適です。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしており、デバイス間で一貫した動作を保証します。pub addによる最小限のセットアップで、開発者はプロジェクトに視覚的に豊かなナビゲーションソリューションを迅速に統合できます。

用途

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

主な機能

  • アニメーションアイテム選択
  • スムーズなトランジション効果
  • マルチプラットフォーム対応
  • pub との簡単な統合
  • カスタマイズ可能な外観
  • レスポンシブデザイン

適している対象

  • アニメーションナビゲーションバーを探している開発者
  • デザインを重視したFlutterアプリケーション
  • 複数のプラットフォームをターゲットにするアプリ
  • UI/UX向上プロジェクト
  • 初心者から中級者までのFlutterユーザー

注意事項

  • 古いデバイスでのパフォーマンステストが必要になる可能性があります
  • 基本的なスタイリングを超えるカスタマイズは限られている
  • 外部のアニメーションライブラリに依存しています
  • 単純な静的ナビゲーションのニーズには適していません
  • 他のナビゲーションパッケージとの潜在的な競合

元の README

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

Static Badge Static Badge Static Badge

A beautiful navigation bar with animation when select item.

Top To Bottom

Table of contents

  1. Installing
  2. How To Use
  3. Showcase
  4. Example Project
  5. Contributors

🖥 Installing

Add Dependency
dependencies:
  stage_navigation_bar: ^0.1.0 #latest version
Import Package
import 'package:stage_navigation_bar/stage_navigation_bar.dart';

ℹ️ How To Use

Place your StageNavigationBar to the bottomNavigationBar slot of a Scaffold. Or in the bottom of your main page view.

Code
class StageNavigationBarExample extends StatefulWidget {
  const StageNavigationBarExample({super.key});

  @override
  State<StageNavigationBarExample> createState() =>
      _StageNavigationBarExampleState();
}

class _StageNavigationBarExampleState extends State<StageNavigationBarExample> {
  /// Your initial page
  int _selectedIndex = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      bottomNavigationBar: StageNavigationBar(
        items: const [
          Icon(Icons.home_filled, color: Colors.white),
          Icon(Icons.favorite, color: Colors.white),
          Icon(Icons.search, color: Colors.white),
          Icon(Icons.person, color: Colors.white),
        ],
        selectedIndex: _selectedIndex,
        indicatorColor: Colors.amber,
        onTap: (int index) {
          setState(() {
            _selectedIndex = index;
          });
        },
      ),
    );
  }
}
Properties
  • animationDirection: Define the animation move shape when tap.
  • alignment: Alignment of the items.
  • barHeight: StageNavigationBar height.
  • barWidth: StageNavigationBar width.
  • indicatorHeight: Indicator line height.
  • itemPadding: Each item padding.
  • duration: Indicator animation Transition duration.
  • selectedIndex*: Current selected index.
  • indicatorColor*: Color of the indicator and the gradient.
  • onTap*: On item tap.
  • barPadding?: StageNavigationBar internal padding.
  • barMargin?: StageNavigationBar external padding.
  • decoration?: StageNavigationBar box decoration.
  • selectedIndicatorBorderRadius?: Selected item indicator border radius.
  • unselectedIndicatorBorderRadius?: Unselected item indicator border radius.
  • items!: StageNavigationBar items, List of widget.
  • itemsCount!: Items count for itemBuilder callback.
  • itemBuilder!: Callback will be called with indices greater than or equal to zero and less than itemsCount.
Default values
  • animationDirection = IndicatorAnimationDirection.topToBottom,
  • alignment = Alignment.center,
  • barHeight = 60,
  • barWidth = double.infinity
  • indicatorHeight = 5,
  • itemPadding = const EdgeInsets.all(0),
  • duration = const Duration(milliseconds: 200),
  • selectedIndicatorBorderRadius: default value depends on 'animationDirection' value,
  • unselectedIndicatorBorderRadius: default value depends on 'animationDirection' value,
IndicatorAnimationDirection Values
IndicatorAnimationDirection.top
IndicatorAnimationDirection.topToBottom
IndicatorAnimationDirection.centerToTop
IndicatorAnimationDirection.centerToBottom
IndicatorAnimationDirection.bottom
IndicatorAnimationDirection.bottomToTop
Event
onTap: (index){

}

🕹 Showcase

IndicatorAnimationDirection
animationDirection: IndicatorAnimationDirection.top

Top


animationDirection: IndicatorAnimationDirection.topToBottom

Top To Bottom


animationDirection: IndicatorAnimationDirection.centerToTop

Center To Top


animationDirection: IndicatorAnimationDirection.centerToBottom

Center To Bottom


animationDirection: IndicatorAnimationDirection.bottom

Bottom


animationDirection: IndicatorAnimationDirection.bottomToTop

Bottom To Top

📱 Example Project

Pub Example

Github Example Project

👨🏻‍💻 Contributors

Mohammad Alamoudi @mu7mmd

カテゴリー

ソースリポジトリ

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

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