remove hight f cntainer to make window dynamic
This commit is contained in:
@@ -4,7 +4,7 @@ import 'package:patient_manager/main.dart';
|
|||||||
class MIHWindow extends StatefulWidget {
|
class MIHWindow extends StatefulWidget {
|
||||||
final String windowTitle;
|
final String windowTitle;
|
||||||
final List<Widget> windowItems;
|
final List<Widget> windowItems;
|
||||||
final List<Widget> actionItems;
|
final List<Widget>? actionItems;
|
||||||
final void Function() onTapClose;
|
final void Function() onTapClose;
|
||||||
const MIHWindow({
|
const MIHWindow({
|
||||||
super.key,
|
super.key,
|
||||||
@@ -90,7 +90,7 @@ class _MIHWindowState extends State<MIHWindow> {
|
|||||||
Container(
|
Container(
|
||||||
//padding: const EdgeInsets.all(10),
|
//padding: const EdgeInsets.all(10),
|
||||||
width: windowWidth,
|
width: windowWidth,
|
||||||
height: windowHeight,
|
//height: windowHeight,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
borderRadius: BorderRadius.circular(25.0),
|
borderRadius: BorderRadius.circular(25.0),
|
||||||
@@ -127,7 +127,7 @@ class _MIHWindowState extends State<MIHWindow> {
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: widget.actionItems,
|
children: widget.actionItems!,
|
||||||
)),
|
)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user