Flutterラボの

プレミアム会員になる

【Flutter】いろいろな種類のListTile
#プログラミング#Flutter#dart#ハッチアウトスクール

リスト表示によく使われるListTileウィジェットですが、いろいろな種類があるのでいくつか紹介したいと思います。

画像1

SwitchListTile

Screenshot_1607257608 - コピー

SwitchListTile(
 title: Text('SwitchListTile'),
 value: true,
 onChanged: (bool value) {},
),

CheckboxListTile

Screenshot_1607257608 - コピー (2)

CheckboxListTile(
 title: Text('CheckboxListTile'),
 value: true,
 onChanged: (bool value) {},
),

RadioListTile

Screenshot_1607257608 - コピー (3)

RadioListTile(
 title: Text('RadioListTile'),
 value: true,
 onChanged: (bool value) {},
 groupValue: true,
)
ハッチアウトスクール ハッチアウトスクールの公式サイトです hatchout.net