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

View File

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

View File

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