1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Can update a conversation

This commit is contained in:
2019-05-01 09:24:50 +02:00
parent 92054d6e29
commit e7c34e6e71
7 changed files with 212 additions and 57 deletions

View File

@ -18,13 +18,15 @@ class PickUserWidget extends StatefulWidget {
final String label;
final bool resetOnChoose;
final bool keepFocusOnChoose;
final bool enabled;
const PickUserWidget(
{Key key,
@required this.onSelectUser,
@required this.label,
this.resetOnChoose = false,
this.keepFocusOnChoose = false})
this.keepFocusOnChoose = false,
this.enabled = true})
: assert(onSelectUser != null),
assert(label != null),
assert(resetOnChoose != null),
@ -66,6 +68,7 @@ class _PickUserWidgetState extends State<PickUserWidget> {
focusNode: _focusNode,
onChanged: (s) => _updateSuggestions(),
controller: _controller,
enabled: widget.enabled,
decoration: InputDecoration(
labelText: widget.label,
alignLabelWithHint: true,