|
@@ -2,6 +2,7 @@ import 'dart:async';
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
+
|
|
|
import 'package:vitalapp/architecture/defines.dart';
|
|
|
import 'package:vitalapp/architecture/network_connectivity.dart';
|
|
|
import 'package:vitalapp/helper/goto_helper.dart';
|
|
@@ -42,7 +43,7 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
key: 'XJDA',
|
|
|
title: "新建档案",
|
|
|
routeName: "/patient/create",
|
|
|
- iconWidget: _buildImgIcon('healthRecord.png'),
|
|
|
+ iconWidget: _buildImgIcon('addHealthRecord.png'),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'JKDA',
|
|
@@ -146,7 +147,21 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
key: 'XJDA',
|
|
|
title: "新建档案",
|
|
|
routeName: "/patient/create",
|
|
|
- iconWidget: _buildImgIcon('healthRecord.png'),
|
|
|
+ // TODO: 图addHealthRecord.png 不太合适,先层叠这样显示
|
|
|
+ iconWidget: Stack(
|
|
|
+ children: [
|
|
|
+ _buildImgIcon('healthRecord.png'),
|
|
|
+ const Positioned(
|
|
|
+ right: 0,
|
|
|
+ top: 0,
|
|
|
+ child: Icon(
|
|
|
+ Icons.add,
|
|
|
+ size: 16,
|
|
|
+ color: Colors.white,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'JMLB',
|
|
@@ -195,7 +210,21 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
key: 'XJDA',
|
|
|
title: "新建档案",
|
|
|
routeName: "/patient/create",
|
|
|
- iconWidget: _buildImgIcon('healthRecord.png'),
|
|
|
+ // TODO: 图addHealthRecord.png 不太合适,先层叠这样显示
|
|
|
+ iconWidget: Stack(
|
|
|
+ children: [
|
|
|
+ _buildImgIcon('healthRecord.png'),
|
|
|
+ const Positioned(
|
|
|
+ right: 0,
|
|
|
+ top: 0,
|
|
|
+ child: Icon(
|
|
|
+ Icons.add,
|
|
|
+ size: 16,
|
|
|
+ color: Colors.white,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
),
|
|
|
HomeMenuItem(
|
|
|
key: 'JMLB',
|
|
@@ -225,3 +254,34 @@ class HomeController extends FControllerBase with HomeNavMixin {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+class MyTest extends StatelessWidget {
|
|
|
+ final Widget bgWidget;
|
|
|
+
|
|
|
+ const MyTest({
|
|
|
+ Key? key,
|
|
|
+ required this.bgWidget,
|
|
|
+ }) : 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,
|
|
|
+ ),
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ );
|
|
|
+ },
|
|
|
+ );
|
|
|
+ }
|
|
|
+}
|