ashilkn 3 lat temu
rodzic
commit
f63c6974c9

+ 1 - 3
lib/ui/common/dynamic_fab.dart

@@ -63,9 +63,7 @@ class DynamicFAB extends StatelessWidget {
         height: 56,
         padding: const EdgeInsets.symmetric(horizontal: 20),
         child: OutlinedButton(
-          onPressed: isFormValid //var here
-              ? onPressedFunction
-              : null,
+          onPressed: isFormValid ? onPressedFunction : null,
           child: Text(buttonText),
         ),
       );

+ 1 - 0
lib/ui/home_widget.dart

@@ -260,6 +260,7 @@ class _HomeWidgetState extends State<HomeWidget> {
           child: Container(),
         ),
         body: _getBody(),
+        resizeToAvoidBottomInset: false,
       ),
       onWillPop: () async {
         if (_selectedTabIndex == 0) {

+ 1 - 2
lib/ui/viewer/search/searchWidget.dart

@@ -40,7 +40,6 @@ class Searchwidget extends StatefulWidget {
 }
 
 class _SearchwidgetState extends State<Searchwidget> {
-  TextEditingController searchController = TextEditingController();
   final ValueNotifier<String> _searchQ = ValueNotifier('');
   @override
   Widget build(BuildContext context) {
@@ -56,7 +55,6 @@ class _SearchwidgetState extends State<Searchwidget> {
                       color:
                           Theme.of(context).colorScheme.defaultBackgroundColor,
                       child: TextFormField(
-                        controller: searchController,
                         style: Theme.of(context).textTheme.subtitle1,
                         decoration: InputDecoration(
                           filled: true,
@@ -76,6 +74,7 @@ class _SearchwidgetState extends State<Searchwidget> {
                           debugPrint(collectionIDs.toString());
                           _searchQ.value = value;
                         },
+                        autofocus: true,
                       ),
                     ),
                   ),