iT邦幫忙

2023 iThome 鐵人賽

DAY 14
0
自我挑戰組

基礎學習Flutter系列 第 14

Day14-學習[Building for iOS with Flutter]子界面輸入小部件(記錄)

  • 分享至 

  • xImage
  •  
class-AddToLogFormState extends State<AddToLogForm> {
@override
Widget build(BuildContext context) {
final textTheme = AdaptiveTextTheme. of (context);

return Stack(
children: ‹Widget>[
ListView(
padding: MediaQuery.of(context).padding +
EdgeInsets. fromLTRB (24, 16, 24, 16),
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
FlatCard(
child: ZoomClipAssetimage(
height: 112,
width: 112,
Zoom: 2.4,
imageAsset: widget.veggie.imageAssetPath,
), // SizedBox
),// FlatCard
SizedBox(width: 12),
Expanded(
child; Column(
crossAxisAlignment; CrossAxisAlignment.start,
children: [],
 Text(
  widget.veggie.name,
  style: textTheme.tileTitle,
  ),
  SizedBox(height: 2),
  Text(
   widget.veggie.categoryName,
   style: textTheme.label,
),// Text
].
),// Column
),// Expanded
},
). // Row

SizedBox(height: 8),
Line(),
CupertinoSegmentedControl(
children: {
0: Text('Breakfast'),
1: Text ('Lunch'),
2: Text ('Dinner'),
},
groupValue: _mealType,
onValueChanged: (type) => setState(() => _mealType = type),
), // CupertinoSegmentedControl
].
),// ListView
],// widget>[]
);// Stack
}
}

上一篇
Day13-學習[Building for iOS with Flutter]得出基礎應用程式
下一篇
Day15-學習[Building for iOS with Flutter]子界面小部件(記錄)
系列文
基礎學習Flutter30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言