Merge branch 'main' into flutter/design-templates

This commit is contained in:
2026-10-23 12:21:51 +01:00
3 changed files with 32 additions and 0 deletions
@@ -21,6 +21,7 @@ class SettingsTextField extends StatelessWidget {
required this.helper,
required this.onChanged,
this.error = '',
this.maxLines = 1,
});
final TextEditingController controller;
@@ -29,6 +30,7 @@ class SettingsTextField extends StatelessWidget {
final String helper;
final ValueChanged<String> onChanged;
final String error;
final int maxLines;
@override
Widget build(BuildContext context) {
@@ -61,6 +63,7 @@ class SettingsTextField extends StatelessWidget {
controller: controller,
onChanged: onChanged,
keyboardType: TextInputType.url,
maxLines: maxLines,
autocorrect: false,
enableSuggestions: false,
textInputAction: TextInputAction.done,
@@ -104,6 +107,7 @@ class SettingsTextField extends StatelessWidget {
onChanged: onChanged,
placeholder: placeholder,
keyboardType: TextInputType.url,
maxLines: maxLines,
autocorrect: false,
enableSuggestions: false,
clearButtonMode: OverlayVisibilityMode.editing,
@@ -37,6 +37,7 @@ class SettingsConnectionSection extends StatelessWidget {
helper: serverUrlHelper,
error: controller.urlError,
onChanged: controller.updateServerUrl,
maxLines: 2,
),
const SizedBox(height: settingsTitleGap),
SettingsActions(