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

Can change group membership levels

This commit is contained in:
2020-05-02 17:26:03 +02:00
parent eb66ea407b
commit 685565e031
3 changed files with 55 additions and 5 deletions

View File

@ -19,6 +19,8 @@ class MultiChoiceEntry<T> {
this.subtitle,
}) : assert(id != null),
assert(title != null);
bool get hasSubtitle => subtitle != null;
}
/// Show multiple choices dialog
@ -81,7 +83,7 @@ class __MultiChoicesEntryDialogState<T>
onChanged: (v) => setState(() => _currChoice = v),
),
title: Text(f.title),
subtitle: Text(f.subtitle),
subtitle: f.hasSubtitle ? Text(f.subtitle) : null,
))
.toList(),
),