Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Minor UI improvements to TextInputWidget

ashilkn1cdaf7e02372
diff --git a/mobile/lib/ui/components/text_input_widget.dart b/mobile/lib/ui/components/text_input_widget.dart
index dd8bd66103..5b3787035d 100644
--- a/mobile/lib/ui/components/text_input_widget.dart
+++ b/mobile/lib/ui/components/text_input_widget.dart
@@ -480,19 +480,17 @@ class SuffixIconWidget extends StatelessWidget {
} else {
trailingWidget = null;
}
- if (trailingWidget != null) {
- return AnimatedSwitcher(
- duration: const Duration(milliseconds: 175),
- switchInCurve: Curves.easeInExpo,
- switchOutCurve: Curves.easeOutExpo,
- child: Padding(
- padding: const EdgeInsets.symmetric(horizontal: 12),
- child: trailingWidget,
- ),
- );
- } else {
- // return trailingWidget;
- return const SizedBox.shrink();
- }
+
+ return AnimatedSwitcher(
+ duration: const Duration(milliseconds: 175),
+ switchInCurve: Curves.easeInExpo,
+ switchOutCurve: Curves.easeOutExpo,
+ child: trailingWidget != null
+ ? Padding(
+ padding: const EdgeInsets.symmetric(horizontal: 12),
+ child: trailingWidget,
+ )
+ : const SizedBox.shrink(),
+ );
}
}