Added host check on submit
This commit is contained in:
parent
924a3613f9
commit
00db49f3e8
|
@ -304,6 +304,10 @@ class _ScreenSettingsState extends State<ScreenSettings> {
|
||||||
controller: hostInputController,
|
controller: hostInputController,
|
||||||
keyboardType: TextInputType.url,
|
keyboardType: TextInputType.url,
|
||||||
readOnly: useHost,
|
readOnly: useHost,
|
||||||
|
onSubmitted: (value) {
|
||||||
|
HapticFeedback.selectionClick();
|
||||||
|
checkHost();
|
||||||
|
},
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: AppLocalizations.of(context)!.settingsHost,
|
labelText: AppLocalizations.of(context)!.settingsHost,
|
||||||
hintText: "http://localhost:11434",
|
hintText: "http://localhost:11434",
|
||||||
|
|
Loading…
Reference in New Issue