This commit is contained in:
ashilkn
2025-07-30 10:25:08 +05:30
parent 1ab4cf5fd7
commit 3ce835cf31
3 changed files with 5 additions and 5 deletions

View File

@@ -13,10 +13,10 @@ import "package:photos/ui/viewer/gallery/photo_grid_size_picker_page.dart";
import "package:photos/utils/navigation_util.dart";
class GallerySettingsScreen extends StatefulWidget {
final bool fromGallerySettingsCTA;
final bool fromGalleryLayoutSettingsCTA;
const GallerySettingsScreen({
super.key,
required this.fromGallerySettingsCTA,
required this.fromGalleryLayoutSettingsCTA,
});
@override
@@ -51,7 +51,7 @@ class _GallerySettingsScreenState extends State<GallerySettingsScreen> {
iconButtonType: IconButtonType.secondary,
onTap: () {
Navigator.pop(context);
if (!widget.fromGallerySettingsCTA) {
if (!widget.fromGalleryLayoutSettingsCTA) {
Navigator.pop(context);
}
},

View File

@@ -184,7 +184,7 @@ class GeneralSectionWidget extends StatelessWidget {
routeToPage(
context,
const GallerySettingsScreen(
fromGallerySettingsCTA: false,
fromGalleryLayoutSettingsCTA: false,
),
);
}

View File

@@ -147,7 +147,7 @@ class _GalleryLayoutSettingsState extends State<GalleryLayoutSettings> {
onTap: () => routeToPage(
context,
const GallerySettingsScreen(
fromGallerySettingsCTA: true,
fromGalleryLayoutSettingsCTA: true,
),
).then(
(_) {