mod: 历史记录多选选中样式
This commit is contained in:
@ -217,31 +217,32 @@ class HistoryItem extends StatelessWidget {
|
|||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 34,
|
width: 34,
|
||||||
height: 34,
|
height: 34,
|
||||||
child: IconButton(
|
child: AnimatedScale(
|
||||||
style: ButtonStyle(
|
scale: videoItem.checked ? 1 : 0,
|
||||||
padding: MaterialStateProperty.all(
|
duration:
|
||||||
EdgeInsets.zero),
|
const Duration(milliseconds: 250),
|
||||||
backgroundColor:
|
curve: Curves.easeInOut,
|
||||||
MaterialStateProperty.resolveWith(
|
child: IconButton(
|
||||||
(states) {
|
style: ButtonStyle(
|
||||||
return Colors.white
|
padding: MaterialStateProperty.all(
|
||||||
.withOpacity(0.8);
|
EdgeInsets.zero),
|
||||||
},
|
backgroundColor:
|
||||||
|
MaterialStateProperty
|
||||||
|
.resolveWith(
|
||||||
|
(states) {
|
||||||
|
return Colors.white
|
||||||
|
.withOpacity(0.8);
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
onPressed: () {
|
||||||
onPressed: () {
|
feedBack();
|
||||||
feedBack();
|
onChoose!();
|
||||||
onChoose!();
|
},
|
||||||
},
|
icon: Icon(Icons.done_all_outlined,
|
||||||
icon: Icon(
|
color: Theme.of(context)
|
||||||
Icons.done_all_outlined,
|
|
||||||
color: videoItem.checked
|
|
||||||
? Theme.of(context)
|
|
||||||
.colorScheme
|
.colorScheme
|
||||||
.primary
|
.primary),
|
||||||
: Theme.of(context)
|
|
||||||
.colorScheme
|
|
||||||
.outline,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user