use Mih Package Window instead of MIH Window

This commit is contained in:
2025-05-27 13:57:10 +02:00
parent 2f071bfa22
commit 10b77eb51c
27 changed files with 2401 additions and 2382 deletions

View File

@@ -2,6 +2,9 @@ import 'dart:async';
import 'dart:convert';
// import 'dart:convert';
import 'package:flutter_speed_dial/flutter_speed_dial.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_floating_menu.dart';
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_package_window.dart';
import 'package:mzansi_innovation_hub/mih_objects/patients.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@@ -21,7 +24,6 @@ import '../../mih_components/mih_layout/mih_header.dart';
import '../../mih_components/mih_layout/mih_layout_builder.dart';
import '../../mih_components/mih_layout/mih_notification_drawer.dart';
import '../../mih_components/mih_layout/mih_tile.dart';
import '../../mih_components/mih_layout/mih_window.dart';
import '../../mih_components/mih_pop_up_messages/mih_delete_message.dart';
import '../../mih_components/mih_pop_up_messages/mih_error_message.dart';
import '../../mih_components/mih_pop_up_messages/mih_loading_circle.dart';
@@ -844,41 +846,70 @@ class _MIHHomeLegacyState extends State<MIHHomeLegacy> {
// return const MIHErrorMessage(errorType: "User Exists");
// return const MIHErrorMessage(errorType: "Password Match");
// return const MIHErrorMessage(errorType: "Invalid Credentials");
return MIHWindow(
return MihPackageWindow(
fullscreen: false,
windowTitle:
"Test Window title that is too large for mobile devices",
windowBody: const [
SizedBox(
height: 250,
)
],
windowTools: [
IconButton(
onPressed: () {
//deleteFilePopUp(filePath, fileID);
},
icon: Icon(
Icons.delete,
size: 35,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
windowBody: const Column(
children: [
SizedBox(
height: 250,
)
],
),
windowTools: Padding(
padding: const EdgeInsets.only(top: 5.0),
child: MihFloatingMenu(
animatedIcon: AnimatedIcons.menu_close,
direction: SpeedDialDirection.down,
children: [
SpeedDialChild(
child: Icon(
Icons.delete,
color: MzanziInnovationHub.of(context)!
.theme
.primaryColor(),
),
label: "Wallet?",
labelBackgroundColor: MzanziInnovationHub.of(context)!
.theme
.successColor(),
labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!
.theme
.primaryColor(),
fontWeight: FontWeight.bold,
),
backgroundColor: MzanziInnovationHub.of(context)!
.theme
.successColor(),
onTap: () {},
),
SpeedDialChild(
child: Icon(
Icons.delete,
color: MzanziInnovationHub.of(context)!
.theme
.primaryColor(),
),
label: "Delete File",
labelBackgroundColor: MzanziInnovationHub.of(context)!
.theme
.successColor(),
labelStyle: TextStyle(
color: MzanziInnovationHub.of(context)!
.theme
.primaryColor(),
fontWeight: FontWeight.bold,
),
backgroundColor: MzanziInnovationHub.of(context)!
.theme
.successColor(),
onTap: () {},
),
],
),
IconButton(
onPressed: () {
//deleteFilePopUp(filePath, fileID);
},
icon: Icon(
Icons.wallet,
size: 35,
color: MzanziInnovationHub.of(context)!
.theme
.secondaryColor(),
),
),
],
),
onWindowTapClose: () {
Navigator.pop(context);
},