v0.2.1
smart_grid_view
利用可能な水平サイズに基づいて、クロス軸の子要素数を変更するレスポンシブグリッドビュー。
16いいね 1530日間ダウンロード30Pub ポイント
プラットフォーム情報なし
利用可能な水平サイズに基づいて、クロス軸の子要素数を変更するレスポンシブグリッドビュー。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A responsive grid view that changes it's cross axis child count based on the available horizontal size.
This widget is great for creating responsive designs as the sized of tiles stays about the same across different screen sizes.
Using the width of tiles, SmartGridview will calculate the crossAxisCount for the underlying GridView with maxWidth ~/ tileWidth.
The tileHeight is used with tileWidth to calculate gridChildRatio.
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('Example')),
body: SmartGridView(
tileWidth: 128,
tileHeight: 168,
children: List.generate(80, (index) => Card(
child: GridTile(
child: Text('tile #$index'),
),
)),
),
),
);
}
}

依存関係一覧 1 件
{"sdk":"flutter"}用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗