mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Can create a group
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:comunic/helpers/preferences_helper.dart';
|
||||
import 'package:comunic/ui/routes/full_screen_image.dart';
|
||||
import 'package:comunic/ui/widgets/dialogs/auto_sized_dialog_content_widget.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:html/parser.dart';
|
||||
@ -86,12 +87,14 @@ Future<String> askUserString({
|
||||
@required String message,
|
||||
@required String defaultValue,
|
||||
@required String hint,
|
||||
int maxLength = 200,
|
||||
}) async {
|
||||
assert(context != null);
|
||||
assert(title != null);
|
||||
assert(message != null);
|
||||
assert(defaultValue != null);
|
||||
assert(hint != null);
|
||||
assert(maxLength != null);
|
||||
|
||||
TextEditingController controller = TextEditingController(text: defaultValue);
|
||||
|
||||
@ -99,24 +102,21 @@ Future<String> askUserString({
|
||||
context: context,
|
||||
builder: (c) => AlertDialog(
|
||||
title: Text(title),
|
||||
content: Container(
|
||||
height: MediaQuery.of(context).size.height - 50,
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Text(message),
|
||||
TextField(
|
||||
controller: controller,
|
||||
maxLines: null,
|
||||
maxLength: 200,
|
||||
keyboardType: TextInputType.text,
|
||||
decoration: InputDecoration(
|
||||
labelText: hint,
|
||||
alignLabelWithHint: true,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
content: AutoSizeDialogContentWidget(
|
||||
child: Column(
|
||||
children: <Widget>[
|
||||
Text(message),
|
||||
TextField(
|
||||
controller: controller,
|
||||
maxLines: null,
|
||||
maxLength: maxLength,
|
||||
keyboardType: TextInputType.text,
|
||||
decoration: InputDecoration(
|
||||
labelText: hint,
|
||||
alignLabelWithHint: true,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
actions: <Widget>[
|
||||
|
Reference in New Issue
Block a user