mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] Remove feature flag from panorama viewer feature
This commit is contained in:
parent
555f23a519
commit
c599ca2d80
@ -5,7 +5,6 @@ import "package:modal_bottom_sheet/modal_bottom_sheet.dart";
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import 'package:photos/models/file/file.dart';
|
||||
import 'package:photos/models/file/file_type.dart';
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/theme/colors.dart";
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
import "package:photos/ui/components/action_sheet_widget.dart";
|
||||
@ -137,9 +136,7 @@ Future<void> showSingleFileDeleteSheet(
|
||||
}
|
||||
|
||||
Future<void> showDetailsSheet(BuildContext context, EnteFile file) async {
|
||||
if (flagService.internalUser) {
|
||||
guardedCheckPanorama(file).ignore();
|
||||
}
|
||||
guardedCheckPanorama(file).ignore();
|
||||
final colorScheme = getEnteColorScheme(context);
|
||||
return showBarModalBottomSheet(
|
||||
topControl: const SizedBox.shrink(),
|
||||
|
@ -34,9 +34,9 @@ class _AppStorageViewerState extends State<AppStorageViewer> {
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
internalUser = flagService.internalUser;
|
||||
addPath();
|
||||
super.initState();
|
||||
}
|
||||
|
||||
void addPath() async {
|
||||
|
@ -12,7 +12,6 @@ import 'package:photos/models/file/file.dart';
|
||||
import 'package:photos/models/file/file_type.dart';
|
||||
import 'package:photos/models/file/trash_file.dart';
|
||||
import 'package:photos/models/selected_files.dart';
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/theme/colors.dart";
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
import "package:photos/ui/actions/file/file_actions.dart";
|
||||
@ -68,14 +67,13 @@ class FileBottomBarState extends State<FileBottomBar> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (flagService.internalUser) {
|
||||
if (widget.file.canBePanorama()) {
|
||||
lastFileGenID = widget.file.generatedID;
|
||||
if (lastFileGenID != widget.file.generatedID) {
|
||||
guardedCheckPanorama(widget.file).ignore();
|
||||
}
|
||||
if (widget.file.canBePanorama()) {
|
||||
lastFileGenID = widget.file.generatedID;
|
||||
if (lastFileGenID != widget.file.generatedID) {
|
||||
guardedCheckPanorama(widget.file).ignore();
|
||||
}
|
||||
}
|
||||
|
||||
return SafeArea(child: _getBottomBar());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user