更新
This commit is contained in:
@@ -42,8 +42,9 @@ class _SleepDateWidgetState extends State<SleepDateWidget> {
|
||||
String day = MyUtils.formatDateTimeDay(widget.date);
|
||||
|
||||
// 选中时背景色为黑色,否则为透明
|
||||
Color backgroundColor =
|
||||
widget.isSelected == true ? Colors.black : Colors.transparent;
|
||||
Color backgroundColor = widget.isSelected == true
|
||||
? Colors.black.withOpacity(0.3)
|
||||
: Colors.transparent;
|
||||
|
||||
return ClickableContainer(
|
||||
backgroundColor: backgroundColor,
|
||||
|
||||
Reference in New Issue
Block a user