Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Replace back chevron with Cancel button in collage app bar

Prateek Sunal36a7d65132c1
diff --git a/mobile/apps/photos/lib/ui/tools/collage/collage_app_bar.dart b/mobile/apps/photos/lib/ui/tools/collage/collage_app_bar.dart
index fff8126508..957f60415e 100644
--- a/mobile/apps/photos/lib/ui/tools/collage/collage_app_bar.dart
+++ b/mobile/apps/photos/lib/ui/tools/collage/collage_app_bar.dart
@@ -21,20 +21,31 @@ class CollageAppBar extends StatelessWidget implements PreferredSizeWidget {
final textTheme = getEnteTextTheme(context);
return AppBar(
elevation: 0,
- title: Text(AppLocalizations.of(context).createCollage),
- actions: [
- TextButton(
- onPressed: isSaveEnabled ? onSave : null,
- child: Text(
- AppLocalizations.of(context).save,
- style: textTheme.body.copyWith(
- color: isSaveEnabled
- ? colorScheme.primary500
- : colorScheme.textMuted,
+ automaticallyImplyLeading: false,
+ titleSpacing: 0,
+ title: Row(
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
+ children: [
+ TextButton(
+ onPressed: () => Navigator.of(context).pop(),
+ child: Text(
+ AppLocalizations.of(context).cancel,
+ style: textTheme.body,
),
),
- ),
- ],
+ TextButton(
+ onPressed: isSaveEnabled ? onSave : null,
+ child: Text(
+ AppLocalizations.of(context).save,
+ style: textTheme.body.copyWith(
+ color: isSaveEnabled
+ ? colorScheme.primary500
+ : colorScheme.textMuted,
+ ),
+ ),
+ ),
+ ],
+ ),
);
}
}