更新
This commit is contained in:
@@ -149,7 +149,7 @@ class DynamicReportDetailWidget extends StatelessWidget {
|
||||
style: FlutterFlowTheme.of(Get.context!).bodyMedium.override(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 28.rpx,
|
||||
color: themeController.currentColor.sc3,
|
||||
color: themeController.currentColor.sc4,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -44,7 +44,8 @@ class _SleepDataModuleWidgetState extends State<SleepDataModuleWidget> {
|
||||
print('点击了离床次数卡片');
|
||||
},
|
||||
child: Container(
|
||||
width: MediaQuery.sizeOf(context).width * 0.27,
|
||||
// width: MediaQuery.sizeOf(context).width * 0.267,
|
||||
width: MediaQuery.sizeOf(context).width * 0.267,
|
||||
constraints: BoxConstraints(
|
||||
minWidth: 200.rpx,
|
||||
minHeight: 161.rpx,
|
||||
|
||||
@@ -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