π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
rearrange widget tree to avoid re initializing elements of child wiget in DraggableScrollbar when it's enabled property changes. This was causing memories to rebuild when draggableScrollbar is enabled when all files are loaded in gallery
ashilkn1ab8d942cc25
diff --git a/lib/ui/huge_listview/draggable_scrollbar.dart b/lib/ui/huge_listview/draggable_scrollbar.dartindex c943c49407..f3d215c695 100644--- a/lib/ui/huge_listview/draggable_scrollbar.dart+++ b/lib/ui/huge_listview/draggable_scrollbar.dart@@ -103,16 +103,14 @@ class DraggableScrollbarState extends State<DraggableScrollbar>@overrideWidget build(BuildContext context) {- if (widget.isEnabled) {- return Stack(- children: [- RepaintBoundary(child: widget.child),- RepaintBoundary(child: buildThumb()),- ],- );- } else {- return widget.child;- }+ return Stack(+ children: [+ RepaintBoundary(child: widget.child),+ widget.isEnabled+ ? RepaintBoundary(child: buildThumb())+ : const SizedBox.shrink(),+ ],+ );}Widget buildThumb() => Padding(