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

interactive_bottom_sheet のカバー
パッケージ詳細v1.1.1

interactive_bottom_sheet

カスタマイズ可能なインタラクティブなボトムシートで、その裏にある画面と操作できます。

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

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

flutter pub add interactive_bottom_sheet

パッケージ概要

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

ユーザーが下部のコンテンツとインタラクションできるカスタマイズ可能なインタラクティブなボトムシートで、ユーザー参加度を高めます。Flutterアプリ専用に設計されており、Android、iOS、Web、macOS、Windows、Linuxなどすべての主要プラットフォームをサポートしています。ボトムシートはドラッグ、スワイプ、タップが可能でありながら、下部の画面要素を常に表示し続けるため、ダイナミックで没入型のUI体験を実現します。モーダルやクイックアクション、補足情報パネルに最適です。

用途

  • インタラクティブなモーダル
  • クイックアクションパネル
  • 補足情報の表示
  • ドラッグ可能なオーバーレイ
  • 拡張されたユーザーのナビゲーション
  • モーダルフォーム

主な機能

  • ドラッグ可能かつスワイプ可能
  • 透過性または半透過性のデザイン
  • コンテンツの裏側の操作可能領域
  • クロスプラットフォーム対応
  • カスタマイズ可能な外観
  • スムーズなアニメーション

適している対象

  • インタラクティブなUIを求める開発者
  • レイヤード・インタラクションを必要とするアプリ
  • ユーザー参加度に焦点を当てたデザイナー
  • マルチプラットフォーム Flutter プロジェクト
  • 複雑なボトムシートの実装

注意事項

  • z-indexの管理に注意が必要な場合があります
  • 重い背景コンテンツによるパフォーマンスへの影響
  • 一部のプラットフォームでのネイティブ統合が限定的
  • 潜在的なアクセシビリティの課題
  • 複数のデバイスでテストが必要です
  • フルスクリーンのオーバーレイには適していません

元の README

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

Interactive Bottom Sheet

pub package package publisher style license

A customizable interactive bottom sheet, which lets you interact with the screen behind it.

Preview example

Features

  • Easy to use
  • Customizable colors
  • Customizable DraggableArea
  • Customizable heights and widths of different parts of the sheet
  • Possibility to declare snap points

Usage

Depend on it:

dependencies:
  interactive_bottom_sheet: ^1.0.0

Import it:

import 'package:interactive_bottom_sheet/interactive_bottom_sheet.dart';

Example

Scaffold(
  bottomSheet: const InteractiveBottomSheet(
    options: InteractiveBottomSheetOptions(),
    child: Text(
       'Lorem ipsum dolor sit amet.'
    ),
  ),
);

Customization options

Scaffold(
  bottomSheet: const Scaffold(
  bottomSheet: InteractiveBottomSheet(
    options: InteractiveBottomSheetOptions(
      maxSize: 0.75,
      backgroundColor: Colors.green,
      snapList: [0.25, 0.5],
    ),
    draggableAreaOptions: DraggableAreaOptions(
      topBorderRadius: 10,
      height: 75,
      backgroundColor: Colors.grey,
      indicatorColor: Colors.grey,
      indicatorWidth: 50,
      indicatorHeight: 50,
      indicatorRadius: 10,
      ),
    ),
    child: Text('Lorem ipsum dolor sit amet.'),
  ),
);

Top Border Radius

To get rounded Borders at the top of the sheet (usual for iOS) on the top side of the widget, it is necessary to overwrite the bottomSheetTheme.

Theme(
  data: Theme.of(context).copyWith(
    bottomSheetTheme: const BottomSheetThemeData(
      backgroundColor: Colors.transparent
    ),
  ),
  child: const Scaffold(
    bottomSheet: InteractiveBottomSheet(
      child: Text('Lorem ipsum dolor sit amet.'),
    ),
  ),
);

カテゴリー

ソースリポジトリ

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