add padding to window and remove from window calls
This commit is contained in:
@@ -115,19 +115,25 @@ class _MIHWindowState extends State<MIHWindow> {
|
|||||||
Widget getWidnowBody() {
|
Widget getWidnowBody() {
|
||||||
if (widget.fullscreen) {
|
if (widget.fullscreen) {
|
||||||
return Expanded(
|
return Expanded(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.all(10.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: widget.windowBody,
|
children: widget.windowBody,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Column(
|
return Padding(
|
||||||
|
padding: const EdgeInsets.all(10.0),
|
||||||
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: widget.windowBody,
|
children: widget.windowBody,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -155,7 +161,11 @@ class _MIHWindowState extends State<MIHWindow> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [header, body],
|
children: [
|
||||||
|
header,
|
||||||
|
//const Divider(),
|
||||||
|
body,
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -49,9 +49,7 @@ class _BuildFileViewState extends State<BuildFileView> {
|
|||||||
child: Stack(
|
child: Stack(
|
||||||
fit: StackFit.expand,
|
fit: StackFit.expand,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
SfPdfViewerTheme(
|
||||||
padding: const EdgeInsets.all(10.0),
|
|
||||||
child: SfPdfViewerTheme(
|
|
||||||
data: SfPdfViewerThemeData(
|
data: SfPdfViewerThemeData(
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
@@ -61,7 +59,6 @@ class _BuildFileViewState extends State<BuildFileView> {
|
|||||||
controller: pdfViewerController,
|
controller: pdfViewerController,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
Positioned(
|
Positioned(
|
||||||
bottom: 10,
|
bottom: 10,
|
||||||
right: 10,
|
right: 10,
|
||||||
@@ -113,16 +110,13 @@ class _BuildFileViewState extends State<BuildFileView> {
|
|||||||
child: Stack(
|
child: Stack(
|
||||||
fit: StackFit.expand,
|
fit: StackFit.expand,
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
InteractiveViewer(
|
||||||
padding: const EdgeInsets.all(10.0),
|
|
||||||
child: InteractiveViewer(
|
|
||||||
//constrained: true,
|
//constrained: true,
|
||||||
//clipBehavior: Clip.antiAlias,
|
//clipBehavior: Clip.antiAlias,
|
||||||
maxScale: 5.0,
|
maxScale: 5.0,
|
||||||
//minScale: 0.,
|
//minScale: 0.,
|
||||||
child: Image.network(widget.link),
|
child: Image.network(widget.link),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
Positioned(
|
Positioned(
|
||||||
bottom: 10,
|
bottom: 10,
|
||||||
right: 10,
|
right: 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user