align to window enhancement
This commit is contained in:
@@ -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);
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -47,27 +47,19 @@ 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(
|
child: SfPdfViewerTheme(
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
data: SfPdfViewerThemeData(
|
||||||
mainAxisSize: MainAxisSize.max,
|
backgroundColor:
|
||||||
children: [
|
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
Expanded(
|
),
|
||||||
child: SfPdfViewerTheme(
|
child: SfPdfViewer.network(
|
||||||
data: SfPdfViewerThemeData(
|
widget.link,
|
||||||
backgroundColor: MzanziInnovationHub.of(context)!
|
controller: pdfViewerController,
|
||||||
.theme
|
),
|
||||||
.primaryColor(),
|
|
||||||
),
|
|
||||||
child: SfPdfViewer.network(
|
|
||||||
widget.link,
|
|
||||||
controller: pdfViewerController,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
@@ -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),
|
||||||
|
|||||||
@@ -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);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user