Skip to content

Commit 32c7ca0

Browse files
author
Miroslav Mazel
committed
Centered titles on macOS / iOS
1 parent 9802a52 commit 32c7ca0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/screens/nutritional_plan_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class NutritionalPlanScreen extends StatelessWidget {
107107
),
108108
],
109109
flexibleSpace: FlexibleSpaceBar(
110+
titlePadding: const EdgeInsets.fromLTRB(56, 0, 56, 16),
110111
title: Text(
111112
nutritionalPlan.getLabel(context),
112113
style: Theme.of(context).textTheme.titleLarge?.copyWith(color: appBarForeground),

lib/screens/workout_plan_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class _WorkoutPlanScreenState extends State<WorkoutPlanScreen> {
8282
iconTheme: const IconThemeData(color: appBarForeground),
8383
backgroundColor: wgerPrimaryColor,
8484
flexibleSpace: FlexibleSpaceBar(
85+
titlePadding: const EdgeInsets.fromLTRB(56, 0, 56, 16),
8586
title: Text(
8687
workoutPlan.name,
8788
style: Theme.of(context).textTheme.titleLarge?.copyWith(color: appBarForeground),

0 commit comments

Comments
 (0)