Centered titles on macOS / iOS

This commit is contained in:
Miroslav Mazel
2023-11-23 13:15:03 +01:00
parent 9802a52be7
commit 32c7ca0803
2 changed files with 2 additions and 0 deletions

View File

@@ -107,6 +107,7 @@ class NutritionalPlanScreen extends StatelessWidget {
),
],
flexibleSpace: FlexibleSpaceBar(
titlePadding: const EdgeInsets.fromLTRB(56, 0, 56, 16),
title: Text(
nutritionalPlan.getLabel(context),
style: Theme.of(context).textTheme.titleLarge?.copyWith(color: appBarForeground),

View File

@@ -82,6 +82,7 @@ class _WorkoutPlanScreenState extends State<WorkoutPlanScreen> {
iconTheme: const IconThemeData(color: appBarForeground),
backgroundColor: wgerPrimaryColor,
flexibleSpace: FlexibleSpaceBar(
titlePadding: const EdgeInsets.fromLTRB(56, 0, 56, 16),
title: Text(
workoutPlan.name,
style: Theme.of(context).textTheme.titleLarge?.copyWith(color: appBarForeground),