align to window enhancement

This commit is contained in:
2024-09-27 11:45:17 +02:00
parent 1f05e90e46
commit 4127802188
3 changed files with 26 additions and 25 deletions

View File

@@ -206,8 +206,9 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
context: context,
barrierDismissible: false,
builder: (context) => MIHWindow(
fullscreen: false,
windowTitle: "Update Appointment Access",
windowItems: [
windowBody: [
const SizedBox(
height: 10,
),
@@ -262,8 +263,8 @@ class _BuildPatientsListState extends State<BuildAccessRequestList> {
height: 10,
),
],
actionItems: const [],
onTapClose: () {
windowTools: const [],
onWindowTapClose: () {
Navigator.pop(context);
}),
);

View File

@@ -47,27 +47,19 @@ class _BuildFileViewState extends State<BuildFileView> {
//print(widget.pdfLink);
return Expanded(
child: Stack(
fit: StackFit.expand,
children: [
Padding(
padding: const EdgeInsets.all(10),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.max,
children: [
Expanded(
child: SfPdfViewerTheme(
data: SfPdfViewerThemeData(
backgroundColor: MzanziInnovationHub.of(context)!
.theme
.primaryColor(),
),
child: SfPdfViewer.network(
widget.link,
controller: pdfViewerController,
),
),
),
],
padding: const EdgeInsets.all(10.0),
child: SfPdfViewerTheme(
data: SfPdfViewerThemeData(
backgroundColor:
MzanziInnovationHub.of(context)!.theme.primaryColor(),
),
child: SfPdfViewer.network(
widget.link,
controller: pdfViewerController,
),
),
),
Positioned(
@@ -116,12 +108,16 @@ class _BuildFileViewState extends State<BuildFileView> {
);
} else {
return Expanded(
// height: height,
// padding: const EdgeInsets.all(10.0),
child: Stack(
fit: StackFit.expand,
children: [
Padding(
padding: const EdgeInsets.all(10.0),
child: InteractiveViewer(
//constrained: true,
//clipBehavior: Clip.antiAlias,
maxScale: 5.0,
//minScale: 0.,
child: Image.network(widget.link),

View File

@@ -191,15 +191,19 @@ class _BuildFilesListState extends State<BuildFilesList> {
context: context,
barrierDismissible: false,
builder: (context) => MIHWindow(
fullscreen: true,
windowTitle: fileName,
windowItems: [
windowBody: [
BuildFileView(
link: url,
path: filePath,
//pdfLink: '${AppEnviroment.baseFileUrl}/mih/$filePath',
),
const SizedBox(
height: 10,
)
],
actionItems: [
windowTools: [
IconButton(
onPressed: () {
deleteFilePopUp(filePath, fileID);
@@ -211,7 +215,7 @@ class _BuildFilesListState extends State<BuildFilesList> {
),
),
],
onTapClose: () {
onWindowTapClose: () {
Navigator.pop(context);
},
),