mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 15:02:33 +01:00
Merge branch 'soru/no-autocorrect-homeserver-url' into 'main'
fix: Disable autocorrect for the homeserver url field Closes #515 See merge request famedly/fluffychat!490
This commit is contained in:
commit
12a3b04142
@ -38,6 +38,7 @@ class HomeserverPickerView extends StatelessWidget {
|
||||
readOnly: !AppConfig.allowOtherHomeservers,
|
||||
onSubmit: (_) => controller.checkHomeserverAction(),
|
||||
unfocusOnClear: false,
|
||||
autocorrect: false,
|
||||
),
|
||||
elevation: 0,
|
||||
),
|
||||
|
@ -15,6 +15,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
|
||||
final bool readOnly;
|
||||
final Widget prefixIcon;
|
||||
final bool unfocusOnClear;
|
||||
final bool autocorrect;
|
||||
|
||||
DefaultAppBarSearchField({
|
||||
Key key,
|
||||
@ -29,6 +30,7 @@ class DefaultAppBarSearchField extends StatefulWidget {
|
||||
this.readOnly = false,
|
||||
this.prefixIcon,
|
||||
this.unfocusOnClear = true,
|
||||
this.autocorrect = true,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
@ -77,7 +79,9 @@ class DefaultAppBarSearchFieldState extends State<DefaultAppBarSearchField> {
|
||||
padding: widget.padding ?? EdgeInsets.only(right: 12),
|
||||
child: TextField(
|
||||
autofocus: widget.autofocus,
|
||||
autocorrect: false,
|
||||
autocorrect: widget.autocorrect,
|
||||
enableSuggestions: widget.autocorrect,
|
||||
keyboardType: widget.autocorrect ? null : TextInputType.visiblePassword,
|
||||
controller: _searchController,
|
||||
onChanged: widget.onChanged,
|
||||
focusNode: _focusNode,
|
||||
|
Loading…
Reference in New Issue
Block a user