Change some paddings
This commit is contained in:
parent
7a6062fd95
commit
0080e39605
@ -26,15 +26,23 @@ class PerDateWidget extends StatelessWidget {
|
|||||||
itemCount: state.foodEntries.length + 2,
|
itemCount: state.foodEntries.length + 2,
|
||||||
itemBuilder: (BuildContext itemBuilderContext, int index) {
|
itemBuilder: (BuildContext itemBuilderContext, int index) {
|
||||||
if (index == state.foodEntries.length) {
|
if (index == state.foodEntries.length) {
|
||||||
return SumWidget(limit: state.kcalLimit);
|
return Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(vertical: 15),
|
||||||
|
child: SumWidget(limit: state.kcalLimit),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (index == state.foodEntries.length + 1) {
|
if (index == state.foodEntries.length + 1) {
|
||||||
return EnterFoodWidget(
|
return Column(
|
||||||
|
children: [
|
||||||
|
EnterFoodWidget(
|
||||||
onAdd: (context, entry) {
|
onAdd: (context, entry) {
|
||||||
context
|
context
|
||||||
.read<FoodEntryBloc>()
|
.read<FoodEntryBloc>()
|
||||||
.add(FoodEntryEvent(entry: entry, date: date));
|
.add(FoodEntryEvent(entry: entry, date: date));
|
||||||
},
|
},
|
||||||
|
),
|
||||||
|
const SizedBox(height: 75),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,45 +18,46 @@ class RowWidgetWithSpacers extends StatefulWidget {
|
|||||||
class _RowWidgetWithSpacersState extends State<RowWidgetWithSpacers> {
|
class _RowWidgetWithSpacersState extends State<RowWidgetWithSpacers> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Row(
|
return Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(vertical: 4.0),
|
||||||
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 5,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding: const EdgeInsets.only(
|
||||||
const EdgeInsets.symmetric(vertical: 2.0, horizontal: 2.0),
|
left: 8.0,
|
||||||
|
right: 2.0,
|
||||||
|
),
|
||||||
child: widget.widget1 ?? Container(),
|
child: widget.widget1 ?? Container(),
|
||||||
)),
|
)),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 5,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding: const EdgeInsets.symmetric(horizontal: 2.0),
|
||||||
const EdgeInsets.symmetric(vertical: 2.0, horizontal: 2.0),
|
|
||||||
child: widget.widget2 ?? Container(),
|
child: widget.widget2 ?? Container(),
|
||||||
)),
|
)),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 5,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding: const EdgeInsets.symmetric(horizontal: 2.0),
|
||||||
const EdgeInsets.symmetric(vertical: 2.0, horizontal: 2.0),
|
|
||||||
child: widget.widget3 ?? Container(),
|
child: widget.widget3 ?? Container(),
|
||||||
)),
|
)),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 5,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding: const EdgeInsets.symmetric(horizontal: 2.0),
|
||||||
const EdgeInsets.symmetric(vertical: 2.0, horizontal: 2.0),
|
|
||||||
child: widget.widget4 ?? Container(),
|
child: widget.widget4 ?? Container(),
|
||||||
)),
|
)),
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 5,
|
flex: 2,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding:
|
padding: const EdgeInsets.symmetric(horizontal: 2.0),
|
||||||
const EdgeInsets.symmetric(vertical: 2.0, horizontal: 2.0),
|
|
||||||
child: widget.widget5 ?? Container(),
|
child: widget.widget5 ?? Container(),
|
||||||
)),
|
)),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user