mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Hide useless fields
This commit is contained in:
@ -12,13 +12,16 @@ class MultiChoiceEntry<T> {
|
||||
final T id;
|
||||
final String title;
|
||||
final String subtitle;
|
||||
final bool hidden;
|
||||
|
||||
const MultiChoiceEntry({
|
||||
@required this.id,
|
||||
@required this.title,
|
||||
this.subtitle,
|
||||
this.hidden = false,
|
||||
}) : assert(id != null),
|
||||
assert(title != null);
|
||||
assert(title != null),
|
||||
assert(hidden != null);
|
||||
|
||||
bool get hasSubtitle => subtitle != null;
|
||||
}
|
||||
@ -76,6 +79,7 @@ class __MultiChoicesEntryDialogState<T>
|
||||
content: AutoSizeDialogContentWidget(
|
||||
child: Column(
|
||||
children: widget.choices
|
||||
.where((f) => !f.hidden)
|
||||
.map((f) => ListTile(
|
||||
leading: Radio<T>(
|
||||
groupValue: _currChoice,
|
||||
|
Reference in New Issue
Block a user