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

@@ -35,7 +35,6 @@ class SecureCredentialStorage {
/// Get iOS-specific secure storage options
IOSOptions _getIOSOptions() {
return const IOSOptions(
groupId: 'group.conduit.app',
accountName: 'conduit_secure_storage',
synchronizable: false,
);

View File

@@ -97,6 +97,18 @@ class _FilesPageState extends ConsumerState<FilesPage>
automaticallyImplyLeading: false,
toolbarHeight: TouchTarget.appBar,
titleSpacing: 0.0,
leading: IconButton(
icon: Icon(
UiUtils.platformIcon(
ios: CupertinoIcons.back,
android: Icons.arrow_back,
),
color: context.conduitTheme.textPrimary,
size: IconSize.button,
),
onPressed: () => NavigationService.goBack(),
tooltip: 'Back',
),
title: Row(
mainAxisSize: MainAxisSize.min,
children: [

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(