Skip to content

armgit / ente

Public Imported from GitHub
0

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

random improvements

ashilkn0e22b40c9b8b
diff --git a/lib/ui/components/dialog_widget.dart b/lib/ui/components/dialog_widget.dart
index 28a322df21..867fd59e5c 100644
--- a/lib/ui/components/dialog_widget.dart
+++ b/lib/ui/components/dialog_widget.dart
@@ -213,6 +213,7 @@ class _TextInputDialogState extends State<TextInputDialog> {
@override
void initState() {
+ super.initState();
_textEditingController =
widget.textEditingController ?? TextEditingController();
_inputIsEmptyNotifier = widget.initialValue?.isEmpty ?? true
@@ -223,7 +224,6 @@ class _TextInputDialogState extends State<TextInputDialog> {
_inputIsEmptyNotifier.value = _textEditingController.text.isEmpty;
}
});
- super.initState();
}
@override
@@ -235,7 +235,7 @@ class _TextInputDialogState extends State<TextInputDialog> {
@override
Widget build(BuildContext context) {
- final widthOfScreen = MediaQuery.of(context).size.width;
+ final widthOfScreen = MediaQuery.sizeOf(context).width;
final isMobileSmall = widthOfScreen <= mobileSmallThreshold;
final colorScheme = getEnteColorScheme(context);
return Container(
diff --git a/lib/ui/components/text_input_widget.dart b/lib/ui/components/text_input_widget.dart
index f85ce1184e..8edb66ab8f 100644
--- a/lib/ui/components/text_input_widget.dart
+++ b/lib/ui/components/text_input_widget.dart
@@ -90,6 +90,7 @@ class _TextInputWidgetState extends State<TextInputWidget> {
@override
void initState() {
+ super.initState();
widget.submitNotifier?.addListener(_onSubmit);
widget.cancelNotifier?.addListener(_onCancel);
_textController = widget.textEditingController ?? TextEditingController();
@@ -109,7 +110,6 @@ class _TextInputWidgetState extends State<TextInputWidget> {
widget.isEmptyNotifier!.value = _textController.text.isEmpty;
});
}
- super.initState();
}
@override
diff --git a/lib/ui/search_tab.dart b/lib/ui/search_tab.dart
index 65e406f603..1099ec12aa 100644
--- a/lib/ui/search_tab.dart
+++ b/lib/ui/search_tab.dart
@@ -85,6 +85,7 @@ class _AllSearchSectionsState extends State<AllSearchSections> {
builder: (context, snapshot) {
if (snapshot.hasData) {
return ListView.builder(
+ padding: const EdgeInsets.only(bottom: 120),
physics: const BouncingScrollPhysics(),
itemCount: searchTypes.length,
itemBuilder: (context, index) {