|
@@ -11,6 +11,7 @@ class FullScreenEcgDataDialog extends GetView<EcgViewController> {
|
|
|
const designWidth = 1280.0; // 设计尺寸宽度:1280
|
|
|
final width = Get.width;
|
|
|
final scale = width / designWidth; // 计算缩放比例
|
|
|
+ final ScrollController scrollController = ScrollController();
|
|
|
return Container(
|
|
|
width: Get.width * 0.9 / scale,
|
|
|
height: Get.height * 0.9 / scale,
|
|
@@ -27,7 +28,9 @@ class FullScreenEcgDataDialog extends GetView<EcgViewController> {
|
|
|
thumbVisibility: true,
|
|
|
thickness: 10,
|
|
|
radius: const Radius.circular(10),
|
|
|
+ controller: scrollController,
|
|
|
child: SingleChildScrollView(
|
|
|
+ controller: scrollController,
|
|
|
padding: const EdgeInsets.only(left: 10, right: 10, bottom: 20),
|
|
|
physics: const BouncingScrollPhysics(),
|
|
|
scrollDirection: Axis.horizontal,
|
|
@@ -42,7 +45,6 @@ class FullScreenEcgDataDialog extends GetView<EcgViewController> {
|
|
|
child: CustomPaint(
|
|
|
foregroundPainter: EcgPainterForAll(
|
|
|
allPoints: controller.allPoints,
|
|
|
- xDataCount: controller.xDataCount,
|
|
|
yMax: 600,
|
|
|
),
|
|
|
painter: GridBackgroundPainterForAll(),
|