From ec7840419fa727f45fb98d0b63dfb4d5fc70b59d Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 27 Oct 2022 15:23:31 -0600 Subject: [PATCH] desktop dialog mod to allow setting max size --- lib/widgets/desktop/desktop_dialog.dart | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/lib/widgets/desktop/desktop_dialog.dart b/lib/widgets/desktop/desktop_dialog.dart index 5ada3a545..d11124ba6 100644 --- a/lib/widgets/desktop/desktop_dialog.dart +++ b/lib/widgets/desktop/desktop_dialog.dart @@ -2,9 +2,16 @@ import 'package:flutter/material.dart'; import 'package:stackwallet/utilities/theme/stack_colors.dart'; class DesktopDialog extends StatelessWidget { - const DesktopDialog({Key? key, this.child}) : super(key: key); + const DesktopDialog({ + Key? key, + this.child, + this.maxWidth = 641, + this.maxHeight = 474, + }) : super(key: key); final Widget? child; + final double maxWidth; + final double maxHeight; @override Widget build(BuildContext context) { @@ -13,9 +20,9 @@ class DesktopDialog extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.center, children: [ ConstrainedBox( - constraints: const BoxConstraints( - maxWidth: 641, - maxHeight: 474, + constraints: BoxConstraints( + maxWidth: maxWidth, + maxHeight: maxHeight, ), child: Material( borderRadius: BorderRadius.circular(