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

bottom_bar_with_sheet のカバー
パッケージ詳細v2.4.0

bottom_bar_with_sheet

このパッケージは、各ページで BottomSheet ウィジェットを表示する FloatingActionButton を備えた下部バーを作成するのに役立ちます。

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

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

flutter pub add bottom_bar_with_sheet

パッケージ概要

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

bottom_bar_with_sheet パッケージは、任意のページで下部ナビゲーションバーと FloatingActionButton を作成するプロセスを簡素化します。このボタンは、BottomSheet をトリガーします。これにより、プラットフォーム間で一貫性があり、ユーザーに優しい方法でナビゲーションと追加コンテンツへのアクセスが容易になります。現在の画面から離れずに、迅速にアクションやメニューにアクセスしたいアプリに最適です。このパッケージは、Android、iOS、Web、macOS、Windows、Linux などの主要プラットフォームをすべてサポートしています。

用途

  • BottomSheet を通じたアクションへの迅速アクセス
  • 複数のページにわたる一貫したナビゲーション
  • フローティングアクションによるユーザーインタラクションの向上
  • アプリケーションにコンテキストメニューを統合する
  • レスポンシブでモバイルファーストのインターフェースを構築する

主な機能

  • BottomNavigationBar の統合
  • FloatingActionButton が BottomSheet をトリガーします
  • クロスプラットフォーム対応
  • セットアップ用のシンプルな API
  • 再利用可能なコンポーネント構造

適している対象

  • モバイルアプリ開発者
  • 一貫性を求めるUI/UXデザイナー
  • 頻繁な操作アクセスを必要とするアプリ
  • マルチプラットフォームアプリ用にFlutterを使用する開発者
  • 複雑なナビゲーション要件を持つプロジェクト

注意事項

  • ユニークなデザインにはカスタムスタイルが必要になる場合があります
  • BottomSheet機能のみに制限されています
  • Flutter のマテリアルデザインシステムに依存しています
  • 非ボトムシートのインタラクションには適していません
  • 多数のネストされたシートによるパフォーマンスへの影響

元の README

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

Bottom bar with Sheet

Build Status License Pub Stars

Pub likes Pub popularity Pub points

💥Non-standard way to use more space of screens in your application💥
😳Custom bottom Sheet under Bottom Navigation Bar😳
😩Sounds sucks? 😉 First of all look at screens!

Image Image Image Image

Table of Content


Getting Started

Add dependency
dependencies:
  bottom_bar_with_sheet: ^2.4.0
Add import package
import 'package:bottom_bar_with_sheet/bottom_bar_with_sheet.dart';
Easy to use

Create a Scaffold widget and set bottomNavigationBar with BottomBarWithSheet like in the code below

Scaffold(
  bottomNavigationBar: BottomBarWithSheet(
    controller: _bottomBarController,
    bottomBarTheme: const BottomBarTheme(
      decoration: BoxDecoration(color: Colors.white),
      itemIconColor: Colors.grey,
    ),
    items: const [
      BottomBarWithSheetItem(icon: Icons.people),
      BottomBarWithSheetItem(icon: Icons.favorite),
    ],
  ),
);

More examples you can see here


Attributes

Attribute Type Annotation
autoClose bool If true the [BottomBarWithSheetItem]'s DO NOT automatically close the child sheet when pressed
disableMainActionButton bool disable MainActionButton if true , enable if false
sheetChild Widget that displayed on bottom of BottomBarWithSheet when isOpened == true
items List BottomBarWithSheetItem navigation buttons of BottomBarWithSheet
bottomBarTheme BottomBarTheme theme of BottomBarWithSheet
mainActionButtonTheme MainActionButtonTheme theme of Main Action Button
onSelectItem Function Callback Function works by clicking on one of items Return int index of selected button
duration Duration animation time of closing / opening BottomBarWithSheet
curve Curve the style of animation from the suggested ones of Curve
bottomBarMainAxisAlignment MainAxisAlignment The direction in which the widget content will line up
mainActionButtonBuilder MainActionButton Custom version of Main Action Button

Attributes of BottomBarTheme

Attribute Type Annotation
height double BottomBarWithSheet icons line height
heightOpened double BottomBarWithSheet height when isOpened == true
heightClosed double BottomBarWithSheet height when isOpened == false
decoration BoxDecoration decoration of BottomBarWithSheet
contentPadding EdgeInsets create padding between content of widget and sides
backgroundColor Color BottomBarWithSheet background color
selectedItemIconColor Color selected item icon color
itemIconColor Color unselected item icon color
selectedItemTextStyle Color selected item text style
itemTextStyle Color unselected item text style
selectedItemIconSize double size of item icon when item is pressed
mainButtonPosition enum filed that response for the position of MainActionButton position this field have 3 possible values: MainButtonPosition.left, MainButtonPosition.right , MainButtonPosition.Center
isVerticalItemLabel bool makes the labels of the items appear vertically or horizontally

Attributes of MainActionButtonTheme

Attribute Type Annotation
size double size of button
icon Widget icon that displayed in center of MainActionButton
color Color background color of widget circle
splash Color splash color of widget circle
margin EdgeInsets side paddings of Main Action Button
transform Matrix4 This field can set transform location of Main Action Button

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

カテゴリー

ソースリポジトリ

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

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