Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Remove gesture that triggered send logs from local sync screen

ashilkn5fceb9898f15
diff --git a/mobile/lib/ui/home/loading_photos_widget.dart b/mobile/lib/ui/home/loading_photos_widget.dart
index 10dabd61fe..40abc887bc 100644
--- a/mobile/lib/ui/home/loading_photos_widget.dart
+++ b/mobile/lib/ui/home/loading_photos_widget.dart
@@ -14,7 +14,6 @@ import "package:photos/ui/components/buttons/button_widget.dart";
import "package:photos/ui/components/dialog_widget.dart";
import "package:photos/ui/components/models/button_type.dart";
import 'package:photos/ui/settings/backup/backup_folder_selection_page.dart';
-import "package:photos/utils/debouncer.dart";
import "package:photos/utils/email_util.dart";
import 'package:photos/utils/navigation_util.dart';
@@ -34,7 +33,6 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
initialPage: 0,
);
final List<String> _messages = [];
- final _debouncer = Debouncer(const Duration(milliseconds: 500));
late final Timer _didYouKnowTimer;
final fortySecondsOnScreen = ValueNotifier(false);
@@ -93,7 +91,6 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
void dispose() {
_firstImportEvent.cancel();
_importProgressEvent.cancel();
- _debouncer.cancelDebounceTimer();
_didYouKnowTimer.cancel();
fortySecondsOnScreen.dispose();
super.dispose();
@@ -106,102 +103,87 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
return Scaffold(
body: SingleChildScrollView(
child: Center(
- child: GestureDetector(
- behavior: HitTestBehavior.opaque,
- onScaleEnd: (details) {
- _debouncer.run(() async {
- unawaited(
- triggerSendLogs(
- "Stuck on loading local photos screen on ${Platform.operatingSystem}",
- null,
- ),
- );
- });
- },
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 20),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Stack(
- alignment: Alignment.center,
- children: [
- isLightMode
- ? Image.asset(
- 'assets/loading_photos_background.png',
- color: Colors.white.withOpacity(0.5),
- colorBlendMode: BlendMode.modulate,
- )
- : Image.asset(
- 'assets/loading_photos_background_dark.png',
- color: Colors.white.withOpacity(0.25),
- colorBlendMode: BlendMode.modulate,
- ),
- Column(
- children: [
- const SizedBox(height: 24),
- Lottie.asset(
- 'assets/loadingGalleryLottie.json',
- height: 400,
+ child: Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 20),
+ child: Column(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ Stack(
+ alignment: Alignment.center,
+ children: [
+ isLightMode
+ ? Image.asset(
+ 'assets/loading_photos_background.png',
+ color: Colors.white.withOpacity(0.5),
+ colorBlendMode: BlendMode.modulate,
+ )
+ : Image.asset(
+ 'assets/loading_photos_background_dark.png',
+ color: Colors.white.withOpacity(0.25),
+ colorBlendMode: BlendMode.modulate,
),
- ],
- ),
- ],
- ),
- Text(
- _loadingMessage,
- style: TextStyle(
- color: Theme.of(context).colorScheme.subTextColor,
+ Column(
+ children: [
+ const SizedBox(height: 24),
+ Lottie.asset(
+ 'assets/loadingGalleryLottie.json',
+ height: 400,
+ ),
+ ],
),
+ ],
+ ),
+ Text(
+ _loadingMessage,
+ style: TextStyle(
+ color: Theme.of(context).colorScheme.subTextColor,
),
- const SizedBox(height: 54),
- Column(
- children: [
- Row(
- mainAxisAlignment: MainAxisAlignment.start,
+ ),
+ const SizedBox(height: 54),
+ Column(
+ children: [
+ Row(
+ mainAxisAlignment: MainAxisAlignment.start,
+ children: [
+ Text(
+ S.of(context).didYouKnow,
+ style: Theme.of(context)
+ .textTheme
+ .titleLarge!
+ .copyWith(
+ color: Theme.of(context).colorScheme.greenText,
+ ),
+ ),
+ ],
+ ),
+ const SizedBox(
+ height: 16,
+ ),
+ SizedBox(
+ height: 175,
+ child: Stack(
children: [
- Text(
- S.of(context).didYouKnow,
- style: Theme.of(context)
- .textTheme
- .titleLarge!
- .copyWith(
- color:
- Theme.of(context).colorScheme.greenText,
- ),
+ PageView.builder(
+ scrollDirection: Axis.vertical,
+ controller: _pageController,
+ itemBuilder: (context, index) {
+ return _getMessage(_messages[index]);
+ },
+ itemCount: _messages.length,
+ physics: const NeverScrollableScrollPhysics(),
+ ),
+ const Positioned(
+ bottom: 0,
+ left: 0,
+ right: 0,
+ child: BottomShadowWidget(),
),
],
),
- const SizedBox(
- height: 16,
- ),
- SizedBox(
- height: 175,
- child: Stack(
- children: [
- PageView.builder(
- scrollDirection: Axis.vertical,
- controller: _pageController,
- itemBuilder: (context, index) {
- return _getMessage(_messages[index]);
- },
- itemCount: _messages.length,
- physics: const NeverScrollableScrollPhysics(),
- ),
- const Positioned(
- bottom: 0,
- left: 0,
- right: 0,
- child: BottomShadowWidget(),
- ),
- ],
- ),
- ),
- ],
- ),
- ],
- ),
+ ),
+ ],
+ ),
+ ],
),
),
),