mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
opt live area
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -234,7 +234,9 @@ class _LiveAreaPageState extends State<LiveAreaPage> {
|
||||
behavior: HitTestBehavior.opaque,
|
||||
onTap: () {
|
||||
if (_controller.isEditing.value) {
|
||||
if (item.id != 0) {
|
||||
onPressed();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -268,6 +270,7 @@ class _LiveAreaPageState extends State<LiveAreaPage> {
|
||||
),
|
||||
],
|
||||
),
|
||||
if (item.id != 0)
|
||||
Positioned(
|
||||
top: 0,
|
||||
right: 16,
|
||||
@@ -283,12 +286,14 @@ class _LiveAreaPageState extends State<LiveAreaPage> {
|
||||
size: 17,
|
||||
iconSize: 13,
|
||||
context: context,
|
||||
icon: item.isFav == true ? MdiIcons.check : MdiIcons.plus,
|
||||
icon:
|
||||
item.isFav == true ? MdiIcons.check : MdiIcons.plus,
|
||||
bgColor: item.isFav == true
|
||||
? theme.colorScheme.onInverseSurface
|
||||
: null,
|
||||
iconColor:
|
||||
item.isFav == true ? theme.colorScheme.outline : null,
|
||||
iconColor: item.isFav == true
|
||||
? theme.colorScheme.outline
|
||||
: null,
|
||||
onPressed: onPressed,
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user