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

crystal_navigation_bar のカバー
パッケージ詳細v2.0.0

crystal_navigation_bar

滑らかなクリスタルクリアなぼかし下部ナビゲーションバーと動的なインジケーターで、アプリのナビゲーションをスムーズに。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
2520
いいね数
137
Pub ポイント
160

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

flutter pub add crystal_navigation_bar

パッケージ概要

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

Crystal Navigation Bar は、Flutter アプリ向けの視覚的に印象的な下部ナビゲーションバーで、洗練されたクリスタルのような明確なブラー効果と、ユーザー体験を向上させるダイナミックなインジケーターを備えています。複数のプラットフォーム間でのスムーズなアプリナビゲーションを目的としており、滑らかなアニメーションとモダンな美学を提供します。このパッケージは Android、iOS、Web、macOS、Windows、Linux をサポートしており、クロスプラットフォーム開発に最適です。`flutter pub add` を通じた最小限のセットアップにより、既存プロジェクトへの容易な統合が可能です。視覚的な明瞭性と滑らかな遷移に注力しているため、デザインと使いやすさを重視するアプリにぴったりです。

用途

  • クロスプラットフォームのモバイルおよびウェブアプリ
  • ブラー効果を備えたモダンなUIデザイン
  • 直感的な下部ナビゲーションを必要とするアプリ
  • ハイエンドユーザーインターフェース
  • 動的インジケータベースのナビゲーション

主な機能

  • クリスタルクリアなブラー効果
  • ダイナミックインジケータアニメーション
  • クロスプラットフォーム互換性
  • Minimal setup with pub add
  • スムーズなトランジションアニメーション
  • カスタマイズ可能な外観

適している対象

  • デザイン重視のFlutter開発者
  • プレミアムUI/UX要件を備えたアプリ
  • 複数のプラットフォームをターゲットにする開発者
  • 視覚的な仕上げに重点を置くプロジェクト
  • 現代のナビゲーションパターンを探しているユーザー

注意事項

  • 低スペックデバイスでのパフォーマンスに影響を与える可能性があります
  • ぼかし効果にはGPUのアクセラレーションが必要です
  • コア機能を超えるカスタマイズは限定的
  • 明るいテーマのインターフェースに最適
  • 古いOSバージョンでのレンダリングの不一致の可能性

元の README

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

Crystal Bottom Navigation Bar


undefined undefined
undefined undefined undefined undefined undefined
undefined undefined

A highly flexible bottom navigation bar that allows you to tailor it to your specific needs without any constraints. Elevate your UI/UX with seamless animations, customizable appearance—including the option to incorporate blur effects—and the ability to fully personalize the interface.

Styles

Screenshot 1

Simple BottomBar

With Border

Screenshot 2

Simple BottomBar

With Badge


CRYSTAL BOTTOM NAVIGATION BAR


  • Blur navigation bar
  • Frosted navigation bar
  • Floating navigation bar
  • Rounded navigation bar
  • Modern navigation bar

Getting Started

To install, add it to your pubspec.yaml file:

dependencies:
    crystal_navigation_bar:

import 'package:crystal_navigation_bar/crystal_navigation_bar.dart';

How to use it

Use CrystalNavigationBar constructor in Your app with in Scaffold's bottomNavigationBar:

Make sure extendBody in Scaffold should be true to use Floating behavior

      extendBody: true,

if you do not want to make round navigation bar with show body behind the navbar you have to make that

      extendBody: false,
Widget build(BuildContext context) {
  return Scaffold(
    body: Center(),
    extendBody: true,//<------like this 
    bottomNavigationBar:  CrystalNavigationBar(
          currentIndex: _SelectedTab.values.indexOf(_selectedTab),
          onTap: _handleIndexChanged,
          indicatorColor: Colors.white,
          // enableFloatingNavBar: false
          items: [
            
            
          ],
        ),
  );
}

basic implementation

Widget build(BuildContext context) {
    return Scaffold(
      extendBody: true,
      body: SizedBox(
        height: MediaQuery.of(context).size.height,
        child: Image.network(
          "https://images.pexels.com/photos/1671325/pexels-photo-1671325.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2",
          fit: BoxFit.fitHeight,
        ),
      ),
      bottomNavigationBar: Padding(
        padding: const EdgeInsets.only(bottom: 10),
        child: CrystalNavigationBar(
          currentIndex: _SelectedTab.values.indexOf(_selectedTab),
          // indicatorColor: Colors.white,
          unselectedItemColor: Colors.white70,
          backgroundColor: Colors.black.withOpacity(0.1),
          // outlineBorderColor: Colors.black.withOpacity(0.1),
          borderWidth: 2,
          outlineBorderColor: Colors.white,
          onTap: _handleIndexChanged,
          items: [
            /// Home
            CrystalNavigationBarItem(
              icon: IconlyBold.home,
              unselectedIcon: IconlyLight.home,
              selectedColor: Colors.white,
              badge: Badge(
                label: Text(
                  "9+",
                  style: TextStyle(color: Colors.white),
                ),
              ),
            ),

            /// Favourite
            CrystalNavigationBarItem(
              icon: IconlyBold.heart,
              unselectedIcon: IconlyLight.heart,
              selectedColor: Colors.red,
            ),

            /// Add
            CrystalNavigationBarItem(
              icon: IconlyBold.plus,
              unselectedIcon: IconlyLight.plus,
              selectedColor: Colors.white,
            ),

            /// Search
            CrystalNavigationBarItem(
                icon: IconlyBold.search,
                unselectedIcon: IconlyLight.search,
                selectedColor: Colors.white),

            /// Profile
            CrystalNavigationBarItem(
              icon: IconlyBold.user_2,
              unselectedIcon: IconlyLight.user,
              selectedColor: Colors.white,
            ),
          ],
        ),
      ),
    );
  }

The constructor has 19 attributes related to the Widget:

  • items: A list of tabs to display, example Home, Profile,Search, etc
  • height: The height of CrystalNavigationBar, [Default] & [Minimum] height is 105,
  • currentIndex: The tab to display.
  • onTap:Returns the index of the tab that was tapped.
  • outlineBorderColor : Border Color of the Bottom bar.
  • borderWidth : Border Width of the Bottom bar.
  • badge : Badge to display. (to display notification count etc).
  • selectedItemColor:The color of the icon and text when the item is selected.
  • unselectedItemColor: The color of the icon and text when the item is not selected.
  • margin:A convenience field for the margin surrounding the entire widget.
  • itemPadding:The padding of each item.
  • duration: The transition duration.
  • curve: The transition curve.
  • indicatorColor:The color of the tab indicator.
  • marginR:margin for the bar to give some radius .
  • paddingR:padding for the bar to give some radius.
  • borderRadius:border radius for nav bar.
  • backgroundColor:background colors for the nav bar.
  • boxShadow: floating nav bar shadow ,it takes List of BoxShadow
  • enableFloatingNavBar: make Floating nav bar enabled.
  • enablePaddingAnimation: enable the animation on item during item change.
  • splashColor: Color of the item's Splash Color. To disable, use Colors.transparent.

iconly package is used for Icons in the demo/example

Adjust Colors of background, unselectedItemColor, selectedItemColor according to your UI for better Design.

Example Usage

See Example Code for more info.

Contributing

Every pull request is welcome.

Contributors

Imtiaz Ahmad

  • Twitter
  • GitHub
  • LinkedIn

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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