v2.1.0top_modal_sheet
純粋なDartによるシンプルなトップモーダルシートの実装。
31いいね 170030日間ダウンロード160Pub ポイント
AndroidiOSWebmacOSWindowsLinux
Flutter用のシンプルなトップモーダルシート
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Simple modal sheet that appears from the top of the screen
Add top_modal_sheet: ^2.1.0 in your pubspec.yaml dependencies. And import it:
import 'package:top_modal_sheet/top_modal_sheet.dart';
Simply call showModalTopSheet to display it
MaterialButton(
color: Colors.white,
elevation: 5,
child: const Text("Show TopModal 1"),
onPressed: () async {
var value = await showTopModalSheet<String?>(context, DummyModal());
setState(() { _topModalData = value; });
},
)
For a more detail example please take a look at the example folder.
If something is missing, feel free to open a ticket or contribute!
依存関係一覧 3 件
{"sdk":"flutter"}{"sdk":"flutter"}^3.0.1用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗