mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
desktop dialog mod to allow setting max size
This commit is contained in:
parent
be81625d2b
commit
ec7840419f
1 changed files with 11 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue