change: Minor design improvements

This commit is contained in:
Christian Pauly 2021-02-06 20:35:52 +01:00
commit 387e027885
8 changed files with 80 additions and 37 deletions

View file

@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
class DefaultAppBarSearchField extends StatefulWidget {
final TextEditingController searchController;
final void Function(String) onChanged;
final void Function(String) onSubmit;
final Widget suffix;
final bool autofocus;
final String prefixText;
@ -15,6 +16,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
Key key,
this.searchController,
this.onChanged,
this.onSubmit,
this.suffix,
this.autofocus = false,
this.prefixText,
@ -75,6 +77,7 @@ class DefaultAppBarSearchFieldState extends State<DefaultAppBarSearchField> {
onChanged: widget.onChanged,
focusNode: _focusNode,
readOnly: widget.readOnly,
onSubmitted: widget.onSubmit,
decoration: InputDecoration(
prefixText: widget.prefixText,
enabledBorder: OutlineInputBorder(