fix overflow issue on non fullscreen windows
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:mzansi_innovation_hub/main.dart';
|
import 'package:mzansi_innovation_hub/main.dart';
|
||||||
|
import 'package:mzansi_innovation_hub/mih_components/mih_layout/mih_single_child_scroll.dart';
|
||||||
|
|
||||||
class MihAppWindow extends StatefulWidget {
|
class MihAppWindow extends StatefulWidget {
|
||||||
final String windowTitle;
|
final String windowTitle;
|
||||||
@@ -134,20 +135,29 @@ class _MihAppWindowState extends State<MihAppWindow> {
|
|||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: [
|
children: [
|
||||||
getWindowHeader(),
|
getWindowHeader(),
|
||||||
Expanded(child: widget.windowBody),
|
Expanded(
|
||||||
|
child: SingleChildScrollView(child: widget.windowBody)),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
: Column(
|
: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
getWindowHeader(),
|
getWindowHeader(),
|
||||||
Padding(
|
Flexible(
|
||||||
padding: const EdgeInsets.only(
|
child: Padding(
|
||||||
left: 15,
|
padding: const EdgeInsets.only(
|
||||||
right: 15,
|
left: 15,
|
||||||
bottom: 15,
|
right: 15,
|
||||||
),
|
bottom: 15,
|
||||||
child: widget.windowBody),
|
),
|
||||||
|
child: ConstrainedBox(
|
||||||
|
constraints: BoxConstraints(
|
||||||
|
maxHeight: windowHeight * 0.7,
|
||||||
|
maxWidth: windowWidth * 0.7,
|
||||||
|
),
|
||||||
|
child: MihSingleChildScroll(
|
||||||
|
child: widget.windowBody))),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user