|
@@ -43,7 +43,10 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
key: 'XJDA',
|
|
|
title: "新建档案",
|
|
|
routeName: "/patient/create",
|
|
|
- iconWidget: _buildImgIcon('addHealthRecord.png'),
|
|
|
+ // TODO: 图addHealthRecord.png 不太合适,先层叠这样显示
|
|
|
+ iconWidget: _PatientAddIconProxyWidget(
|
|
|
+ baseIcon: _buildImgIcon('healthRecord.png'),
|
|
|
+ ),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'JKDA',
|
|
@@ -55,7 +58,7 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
key: 'JMLB',
|
|
|
title: "居民列表",
|
|
|
routeName: "/patient/list",
|
|
|
- iconWidget: _buildImgIcon('healthRecord.png'),
|
|
|
+ iconWidget: _buildImgIcon('patientList.png'),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'YSQY',
|
|
@@ -148,26 +151,15 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
title: "新建档案",
|
|
|
routeName: "/patient/create",
|
|
|
// TODO: 图addHealthRecord.png 不太合适,先层叠这样显示
|
|
|
- iconWidget: Stack(
|
|
|
- children: [
|
|
|
- _buildImgIcon('healthRecord.png'),
|
|
|
- const Positioned(
|
|
|
- right: 0,
|
|
|
- top: 0,
|
|
|
- child: Icon(
|
|
|
- Icons.add,
|
|
|
- size: 16,
|
|
|
- color: Colors.white,
|
|
|
- ),
|
|
|
- )
|
|
|
- ],
|
|
|
+ iconWidget: _PatientAddIconProxyWidget(
|
|
|
+ baseIcon: _buildImgIcon('healthRecord.png'),
|
|
|
),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'JMLB',
|
|
|
title: "居民列表",
|
|
|
routeName: "/patient/list",
|
|
|
- iconWidget: _buildImgIcon('healthRecord.png'),
|
|
|
+ iconWidget: _buildImgIcon('patientList.png'),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'JKJC',
|
|
@@ -211,26 +203,15 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
title: "新建档案",
|
|
|
routeName: "/patient/create",
|
|
|
// TODO: 图addHealthRecord.png 不太合适,先层叠这样显示
|
|
|
- iconWidget: Stack(
|
|
|
- children: [
|
|
|
- _buildImgIcon('healthRecord.png'),
|
|
|
- const Positioned(
|
|
|
- right: 0,
|
|
|
- top: 0,
|
|
|
- child: Icon(
|
|
|
- Icons.add,
|
|
|
- size: 16,
|
|
|
- color: Colors.white,
|
|
|
- ),
|
|
|
- )
|
|
|
- ],
|
|
|
+ iconWidget: _PatientAddIconProxyWidget(
|
|
|
+ baseIcon: _buildImgIcon('healthRecord.png'),
|
|
|
),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'JMLB',
|
|
|
title: "居民列表",
|
|
|
routeName: "/patient/list",
|
|
|
- iconWidget: _buildImgIcon('healthRecord.png'),
|
|
|
+ iconWidget: _buildImgIcon('patientList.png'),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'JKDA',
|
|
@@ -255,33 +236,29 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-class MyTest extends StatelessWidget {
|
|
|
- final Widget bgWidget;
|
|
|
+class _PatientAddIconProxyWidget extends StatelessWidget {
|
|
|
+ final Widget baseIcon;
|
|
|
|
|
|
- const MyTest({
|
|
|
+ const _PatientAddIconProxyWidget({
|
|
|
Key? key,
|
|
|
- required this.bgWidget,
|
|
|
+ required this.baseIcon,
|
|
|
}) : super(key: key);
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
- return Builder(
|
|
|
- builder: (_) {
|
|
|
- return Stack(
|
|
|
- children: [
|
|
|
- bgWidget,
|
|
|
- const Positioned(
|
|
|
- right: 0,
|
|
|
- top: 0,
|
|
|
- child: Icon(
|
|
|
- Icons.add,
|
|
|
- size: 16,
|
|
|
- color: Colors.white,
|
|
|
- ),
|
|
|
- )
|
|
|
- ],
|
|
|
- );
|
|
|
- },
|
|
|
+ return Stack(
|
|
|
+ children: [
|
|
|
+ baseIcon,
|
|
|
+ const Positioned(
|
|
|
+ right: 0,
|
|
|
+ top: 0,
|
|
|
+ child: Icon(
|
|
|
+ Icons.add,
|
|
|
+ size: 16,
|
|
|
+ color: Colors.white,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
);
|
|
|
}
|
|
|
}
|