Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore

ashilkn6e59c4e915e3
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_group_type_picker_page.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_group_type_picker_page.dart
index edba5377ee..915b5778b6 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_group_type_picker_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_group_type_picker_page.dart
@@ -85,8 +85,8 @@ class _ItemsWidgetState extends State<ItemsWidget> {
@override
void initState() {
- currentGroupType = localSettings.getGalleryGroupType();
super.initState();
+ currentGroupType = localSettings.getGalleryGroupType();
}
@override
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart b/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart
index baa0c50b14..3c25a9ed4b 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/custom_scroll_bar.dart
@@ -31,20 +31,6 @@ class CustomScrollBar extends StatefulWidget {
State<CustomScrollBar> createState() => _CustomScrollBarState();
}
-/*
-Create a new variable that stores Position to title mapping which will be used
-to show scrollbar divisions.
-
-List of scrollbar divisions can be obtained from galleryGroups.scrollbarDivisions.
-And the scroll positions of each division can be obtained from
-galleryGroups.groupIdToScrollOffsetMap[groupID] where groupID.
-
-Can ignore adding the top offset of the header for accuracy.
-
-Get the height of the scrollbar and create a normalized position for each
-division and populate position to title mapping.
-*/
-
class _CustomScrollBarState extends State<CustomScrollBar> {
final _logger = Logger("CustomScrollBar2");
final _scrollbarKey = GlobalKey();
@@ -54,7 +40,7 @@ class _CustomScrollBarState extends State<CustomScrollBar> {
late bool _showScrollbarDivisions;
late bool _showThumb;
- // Scrollbar's heigh is not fixed by default. If the scrollable is short
+ // Scrollbar's thumb height is not fixed by default. If the scrollable is short
// enough, the scrollbar's height can go above the minimum length.
// In our case, we only depend on this value for showing scrollbar divisions,
// which we do not show unless scrollable is long enough. So we can safely
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/scroll_bar_with_use_notifier.dart b/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/scroll_bar_with_use_notifier.dart
index 339a489985..c0a2b27608 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/scroll_bar_with_use_notifier.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/scrollbar/scroll_bar_with_use_notifier.dart
@@ -1,5 +1,5 @@
// Modified Scrollbar that accepts a ValueNotifier<bool> to indicate if the
-// scrollbar is in use
+// scrollbar is in use plus with modified scrollbar theme.
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be