mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 19:14:42 +08:00
opt set pageTransition
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -37,39 +37,42 @@ class _OrderedMultiSelectDialogState<T>
|
||||
clipBehavior: Clip.hardEdge,
|
||||
title: Text(widget.title),
|
||||
contentPadding: const EdgeInsets.only(top: 12),
|
||||
content: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: widget.values.entries.map((i) {
|
||||
return Builder(
|
||||
builder: (context) {
|
||||
return OrderedCheckboxListTile(
|
||||
dense: true,
|
||||
value: _tempValues[i.key],
|
||||
title: Text(
|
||||
i.value,
|
||||
style: theme.textTheme.titleMedium!,
|
||||
),
|
||||
onChanged: (value) {
|
||||
if (value == null) {
|
||||
_tempValues[i.key] = _tempValues.length + 1;
|
||||
(context as Element).markNeedsBuild();
|
||||
} else {
|
||||
final pos = _tempValues.remove(i.key)!;
|
||||
if (pos == _tempValues.length + 1) {
|
||||
content: Material(
|
||||
type: .transparency,
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: widget.values.entries.map((i) {
|
||||
return Builder(
|
||||
builder: (context) {
|
||||
return OrderedCheckboxListTile(
|
||||
dense: true,
|
||||
value: _tempValues[i.key],
|
||||
title: Text(
|
||||
i.value,
|
||||
style: theme.textTheme.titleMedium!,
|
||||
),
|
||||
onChanged: (value) {
|
||||
if (value == null) {
|
||||
_tempValues[i.key] = _tempValues.length + 1;
|
||||
(context as Element).markNeedsBuild();
|
||||
} else {
|
||||
_tempValues.updateAll(
|
||||
(key, value) => value > pos ? value - 1 : value,
|
||||
);
|
||||
setState(() {});
|
||||
final pos = _tempValues.remove(i.key)!;
|
||||
if (pos == _tempValues.length + 1) {
|
||||
(context as Element).markNeedsBuild();
|
||||
} else {
|
||||
_tempValues.updateAll(
|
||||
(key, value) => value > pos ? value - 1 : value,
|
||||
);
|
||||
setState(() {});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
);
|
||||
},
|
||||
);
|
||||
}).toList(),
|
||||
},
|
||||
);
|
||||
},
|
||||
);
|
||||
}).toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
actionsPadding: const EdgeInsets.only(left: 16, right: 16, bottom: 12),
|
||||
|
||||
Reference in New Issue
Block a user