v2.3.1flutter_grid_button
ボタンをグリッド形式に配置するFlutterウィジェットです。番号パッドや電卓などを作成するのに役立ちます。
30いいね 387030日間ダウンロード160Pub ポイント
AndroidiOSWebmacOSWindowsLinux
ボタンをグリッドに配置する Flutter ウィジェット。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Flutter widget that arrange buttons in a grid. It is useful for making a number pad, calculator, and so on.
To use this plugin, add flutter_grid_button as a dependency in your pubspec.yaml file.
dependencies:
flutter_grid_button:
Import the library in your file.
import 'package:flutter_grid_button/flutter_grid_button.dart';
See the example directory for a complete sample app using GridButton.
Or use the GridButton like below.
GridButton(
onPressed: (String value) {
/*...*/
},
items: [
[
GridButtonItem(title: "1"),
GridButtonItem(child: Text("2")),
GridButtonItem(title: "3", flex: 2),
],
[
GridButtonItem(title: "a", value: "100", longPressValue: "long"),
GridButtonItem(title: "b", color: Colors.lightBlue)
],
],
)
依存関係一覧 3 件
{"sdk":"flutter"}{"sdk":"flutter"}^1.0.0用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗