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
}
}