mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 20:12:35 +08:00
@@ -71,40 +71,38 @@ class _MemberOpusState extends State<MemberOpus>
|
||||
child: FloatingActionButton.extended(
|
||||
onPressed: () => showDialog(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
clipBehavior: Clip.hardEdge,
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 12),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: _controller.filter!
|
||||
.map(
|
||||
(e) => ListTile(
|
||||
onTap: () {
|
||||
if (e == _controller.type.value) {
|
||||
return;
|
||||
}
|
||||
Get.back();
|
||||
_controller
|
||||
..type.value = e
|
||||
..onReload();
|
||||
},
|
||||
tileColor: e == _controller.type.value
|
||||
? Theme.of(
|
||||
context,
|
||||
).colorScheme.onInverseSurface
|
||||
: null,
|
||||
dense: true,
|
||||
title: Text(
|
||||
e.text ?? e.tabName!,
|
||||
style: const TextStyle(fontSize: 14),
|
||||
),
|
||||
builder: (context) => AlertDialog(
|
||||
clipBehavior: Clip.hardEdge,
|
||||
contentPadding: const EdgeInsets.symmetric(vertical: 12),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: _controller.filter!
|
||||
.map(
|
||||
(e) => ListTile(
|
||||
onTap: () {
|
||||
if (e == _controller.type.value) {
|
||||
return;
|
||||
}
|
||||
Get.back();
|
||||
_controller
|
||||
..type.value = e
|
||||
..onReload();
|
||||
},
|
||||
tileColor: e == _controller.type.value
|
||||
? Theme.of(
|
||||
context,
|
||||
).colorScheme.onInverseSurface
|
||||
: null,
|
||||
dense: true,
|
||||
title: Text(
|
||||
e.text ?? e.tabName!,
|
||||
style: const TextStyle(fontSize: 14),
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
icon: const Icon(size: 20, Icons.sort),
|
||||
label: Obx(
|
||||
|
||||
Reference in New Issue
Block a user