|
@@ -12,6 +12,8 @@ import 'package:fis_common/helpers/color.dart';
|
|
|
import 'package:path_provider/path_provider.dart';
|
|
|
import 'widgets/menus.dart';
|
|
|
import 'widgets/navigator.dart';
|
|
|
+import 'widgets/patient.dart';
|
|
|
+import 'widgets/status_bar.dart';
|
|
|
|
|
|
class HomePage extends GetView<HomeController> {
|
|
|
const HomePage({super.key});
|
|
@@ -206,22 +208,26 @@ class HomePage extends GetView<HomeController> {
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
children: [
|
|
|
Expanded(
|
|
|
+ flex: 4,
|
|
|
child: Align(
|
|
|
alignment: Alignment.centerLeft,
|
|
|
child: _buildHeaderLeft(),
|
|
|
),
|
|
|
),
|
|
|
- Align(
|
|
|
- alignment: Alignment.center,
|
|
|
- child: _buildHeaderCenter(),
|
|
|
+ Flexible(
|
|
|
+ flex: 4,
|
|
|
+ child: Align(
|
|
|
+ alignment: Alignment.center,
|
|
|
+ child: _buildHeaderCenter(),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ Expanded(
|
|
|
+ flex: 4,
|
|
|
+ child: Align(
|
|
|
+ alignment: Alignment.centerRight,
|
|
|
+ child: _buildHeaderRight(context),
|
|
|
+ ),
|
|
|
),
|
|
|
- const Spacer(),
|
|
|
- // Expanded(
|
|
|
- // child: Align(
|
|
|
- // alignment: Alignment.centerRight,
|
|
|
- // child: _buildHeaderRight(),
|
|
|
- // ),
|
|
|
- // ),
|
|
|
],
|
|
|
),
|
|
|
),
|
|
@@ -286,8 +292,8 @@ class HomePage extends GetView<HomeController> {
|
|
|
if (kDebugMode) ...[
|
|
|
InkWell(
|
|
|
child: const Text(
|
|
|
- ' ',
|
|
|
- style: TextStyle(fontSize: 35, color: Colors.white),
|
|
|
+ ' CP DB ',
|
|
|
+ style: TextStyle(fontSize: 20, color: Colors.white),
|
|
|
),
|
|
|
onTap: () async {
|
|
|
var sPath = "/data/user/0/com.vinno.vitalapp/databases/vital.db";
|
|
@@ -308,11 +314,21 @@ class HomePage extends GetView<HomeController> {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
- Widget _buildHeaderRight() {
|
|
|
- return Image.asset(
|
|
|
- "assets/images/iflyrobot.png",
|
|
|
- height: 80,
|
|
|
- fit: BoxFit.fitHeight,
|
|
|
+ Widget _buildHeaderRight(BuildContext context) {
|
|
|
+ return Row(
|
|
|
+ mainAxisSize: MainAxisSize.min,
|
|
|
+ children: const [
|
|
|
+ HeaderPatientPlace(),
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsets.symmetric(horizontal: 8),
|
|
|
+ child: VerticalDivider(
|
|
|
+ indent: 12,
|
|
|
+ endIndent: 12,
|
|
|
+ color: Colors.white,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ HeaderStatusBar(),
|
|
|
+ ],
|
|
|
);
|
|
|
}
|
|
|
}
|