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