π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
change maxWidth in such a way than there will only be 2 or 4 or 6 or 8 or.... memories in header with increase in width of screen
ashilkn72af4b9598a2
diff --git a/lib/ui/home/memories/memories_widget.dart b/lib/ui/home/memories/memories_widget.dartindex 2db6300f6c..c86e9c0f97 100644--- a/lib/ui/home/memories/memories_widget.dart+++ b/lib/ui/home/memories/memories_widget.dart@@ -18,8 +18,8 @@ class MemoriesWidget extends StatefulWidget {class _MemoriesWidgetState extends State<MemoriesWidget> {late ScrollController _controller;late StreamSubscription<MemoriesSettingChanged> _subscription;- double _maxHeight = 0;- double _maxWidth = 0;+ late double _maxHeight;+ late double _maxWidth;@overridevoid initState() {@@ -36,7 +36,8 @@ class _MemoriesWidgetState extends State<MemoriesWidget> {void didChangeDependencies() {super.didChangeDependencies();final screenWidth = MediaQuery.sizeOf(context).width;- _maxWidth = screenWidth / 4;+ final factor = (screenWidth / 220).ceil();+ _maxWidth = screenWidth / (factor * 2);_maxHeight = _maxWidth / MemoryCoverWidget.aspectRatio;}