Adding much-needed padding

This commit is contained in:
Miroslav Mazel
2023-11-11 17:59:55 +01:00
parent 5701a2e809
commit 89caf4616d
2 changed files with 16 additions and 13 deletions

View File

@@ -35,6 +35,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
return Scaffold(
appBar: MainAppBar(AppLocalizations.of(context).labelDashboard),
body: SingleChildScrollView(
padding: const EdgeInsets.all(10),
child: Column(
children: [
DashboardWorkoutWidget(),

View File

@@ -40,19 +40,21 @@ class _WorkoutPlanDetailState extends State<WorkoutPlanDetail> {
return Column(
children: [
if (widget._workoutPlan.days.isNotEmpty)
ToggleButtons(
renderBorder: false,
onPressed: (int index) {
if (index == 1) {
widget._changeMode(WorkoutScreenMode.log);
}
},
isSelected: const [true, false],
children: const <Widget>[
Icon(Icons.table_chart),
Icon(Icons.show_chart),
],
),
Padding(
padding: const EdgeInsets.all(10),
child: ToggleButtons(
renderBorder: false,
onPressed: (int index) {
if (index == 1) {
widget._changeMode(WorkoutScreenMode.log);
}
},
isSelected: const [true, false],
children: const <Widget>[
Icon(Icons.table_chart),
Icon(Icons.show_chart),
],
)),
if (widget._workoutPlan.description != '')
Padding(
padding: const EdgeInsets.all(15),