|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
import 'dart:ui';
|
|
|
|
|
|
|
|
|
|
import 'package:common_utils/common_utils.dart';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
@ -75,6 +77,20 @@ class FacilityTypeDetailCard extends StatelessWidget {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
30.hb,
|
|
|
|
|
// Container(
|
|
|
|
|
// height: 30.h,
|
|
|
|
|
// width: double.infinity,
|
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
|
// border: Border.all(
|
|
|
|
|
// color: Color(0xFF979797),
|
|
|
|
|
// width: 3.w,
|
|
|
|
|
// ),
|
|
|
|
|
// ),
|
|
|
|
|
// child: CustomPaint(
|
|
|
|
|
// painter: MyPainter(),
|
|
|
|
|
// ),
|
|
|
|
|
// )
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
onPressed: () {
|
|
|
|
@ -86,3 +102,23 @@ class FacilityTypeDetailCard extends StatelessWidget {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class MyPainter extends CustomPainter {
|
|
|
|
|
@override
|
|
|
|
|
void paint(Canvas canvas, Size size) {
|
|
|
|
|
Paint _paint = Paint()
|
|
|
|
|
..color = Colors.redAccent
|
|
|
|
|
..strokeWidth = 20;
|
|
|
|
|
|
|
|
|
|
//平移之前
|
|
|
|
|
canvas.drawPoints(PointMode.points, [Offset(0, 0)], _paint);
|
|
|
|
|
canvas.translate(200, 200);
|
|
|
|
|
//平移之后
|
|
|
|
|
canvas.drawPoints(PointMode.points, [Offset(0, 0)], _paint);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
bool shouldRepaint(covariant CustomPainter oldDelegate) {
|
|
|
|
|
throw UnimplementedError();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|