fix: add back buttons

This commit is contained in:
cogwheel
2025-08-11 15:49:53 +05:30
parent 758615813f
commit f42b9f3f7f
10 changed files with 340 additions and 1 deletions

View File

@@ -30,6 +30,17 @@ class ProfilePage extends ConsumerWidget {
backgroundColor: context.conduitTheme.surfaceBackground,
elevation: Elevation.none,
automaticallyImplyLeading: false,
leading: IconButton(
icon: Icon(
UiUtils.platformIcon(
ios: CupertinoIcons.back,
android: Icons.arrow_back,
),
color: context.conduitTheme.textPrimary,
),
onPressed: () => Navigator.of(context).maybePop(),
tooltip: 'Back',
),
toolbarHeight: kToolbarHeight,
titleSpacing: 0.0,
title: Row(
@@ -84,6 +95,17 @@ class ProfilePage extends ConsumerWidget {
backgroundColor: context.conduitTheme.surfaceBackground,
elevation: Elevation.none,
automaticallyImplyLeading: false,
leading: IconButton(
icon: Icon(
UiUtils.platformIcon(
ios: CupertinoIcons.back,
android: Icons.arrow_back,
),
color: context.conduitTheme.textPrimary,
),
onPressed: () => Navigator.of(context).maybePop(),
tooltip: 'Back',
),
title: Text(
'You',
style: context.conduitTheme.headingSmall?.copyWith(
@@ -103,6 +125,17 @@ class ProfilePage extends ConsumerWidget {
backgroundColor: context.conduitTheme.surfaceBackground,
elevation: Elevation.none,
automaticallyImplyLeading: false,
leading: IconButton(
icon: Icon(
UiUtils.platformIcon(
ios: CupertinoIcons.back,
android: Icons.arrow_back,
),
color: context.conduitTheme.textPrimary,
),
onPressed: () => Navigator.of(context).maybePop(),
tooltip: 'Back',
),
title: Text(
'You',
style: context.conduitTheme.headingSmall?.copyWith(