更新
This commit is contained in:
@@ -5,9 +5,9 @@ import 'package:vbvs_app/common/color/appConstants.dart';
|
||||
import 'package:vbvs_app/common/util/FitTool.dart';
|
||||
import 'package:vbvs_app/common/util/MyUtils.dart';
|
||||
import 'package:vbvs_app/component/base/SleepCalendarWidget.dart';
|
||||
import 'package:vbvs_app/component/tool/TopSlideNotification.dart';
|
||||
import 'package:vbvs_app/controller/device/device_calibration_controller.dart';
|
||||
import 'package:vbvs_app/controller/theme_controller/ThemeController.dart';
|
||||
import 'package:vbvs_app/enum/CalendarType.dart';
|
||||
|
||||
getOnePicker(context, List arr, int checkIndex, Function onSelectedItemChanged,
|
||||
{bool looping = false}) {
|
||||
@@ -924,6 +924,7 @@ void showProgressDialog(
|
||||
void showSleepCalendarBottomSheet({
|
||||
required BuildContext context,
|
||||
int? timestamp,
|
||||
int? type = 1, // 新增参数,默认值为1
|
||||
required void Function(DateTime selectedDate) onDateSelected,
|
||||
}) {
|
||||
showModalBottomSheet(
|
||||
@@ -941,7 +942,9 @@ void showSleepCalendarBottomSheet({
|
||||
),
|
||||
child: SleepCalendarWidget(
|
||||
timestamp: timestamp,
|
||||
onDateSelected: onDateSelected, // 传递回调下去
|
||||
type: type, // 传递类型给子组件
|
||||
onDateSelected: onDateSelected,
|
||||
// highlightColor: Colors.green,
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user