mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Adding much-needed padding
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user