π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Refactor IconButtonWidget to simplify padding and improve layout
AmanRajSinghMourya9a3ac6eb67e8
diff --git a/mobile/packages/ui/lib/components/buttons/icon_button_widget.dart b/mobile/packages/ui/lib/components/buttons/icon_button_widget.dartindex 922e69e7f0..af7768043e 100644--- a/mobile/packages/ui/lib/components/buttons/icon_button_widget.dart+++ b/mobile/packages/ui/lib/components/buttons/icon_button_widget.dart@@ -62,23 +62,19 @@ class _IconButtonWidgetState extends State<IconButtonWidget> {}Widget _iconButton(EnteColorScheme colorTheme) {- return Padding(- padding: const EdgeInsets.all(4.0),- child: AnimatedContainer(- duration: const Duration(milliseconds: 20),- padding: const EdgeInsets.all(8),- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(20),- color: iconStateColor,- ),- child: Icon(- widget.icon,- color: widget.iconColor ??- (widget.iconButtonType == IconButtonType.secondary- ? colorTheme.strokeMuted- : colorTheme.strokeBase),- size: 24,- ),+ return AnimatedContainer(+ duration: const Duration(milliseconds: 20),+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(20),+ color: iconStateColor,+ ),+ child: Icon(+ widget.icon,+ color: widget.iconColor ??+ (widget.iconButtonType == IconButtonType.secondary+ ? colorTheme.strokeMuted+ : colorTheme.strokeBase),+ size: 24,),);}