Cosmetic improvements of homeserver and user inputs

Keyboard type for homeserver TextInput changed to url and trailing '/' with potential whitespaces is stripped.
Keyboard type for username changed to e-mail for convenience.

Should resolve: #34 and #64
This commit is contained in:
Katerina 2020-07-02 09:10:03 +00:00 committed by Christian Pauly
commit 6399a8f886
3 changed files with 22 additions and 12 deletions

View file

@ -8,17 +8,17 @@ class SimpleDialogs {
const SimpleDialogs(this.context);
Future<String> enterText({
String titleText,
String confirmText,
String cancelText,
String hintText,
String labelText,
String prefixText,
String suffixText,
bool password = false,
bool multiLine = false,
}) async {
Future<String> enterText(
{String titleText,
String confirmText,
String cancelText,
String hintText,
String labelText,
String prefixText,
String suffixText,
bool password = false,
bool multiLine = false,
TextInputType keyboardType}) async {
var textEditingController = TextEditingController();
final controller = textEditingController;
String input;
@ -38,6 +38,7 @@ class SimpleDialogs {
maxLines: multiLine ? 3 : 1,
obscureText: password,
textInputAction: multiLine ? TextInputAction.newline : null,
keyboardType: keyboardType,
decoration: InputDecoration(
hintText: hintText,
labelText: labelText,