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';
|
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||||
|
|
||||||
class DesktopDialog extends StatelessWidget {
|
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 Widget? child;
|
||||||
|
final double maxWidth;
|
||||||
|
final double maxHeight;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -13,9 +20,9 @@ class DesktopDialog extends StatelessWidget {
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
ConstrainedBox(
|
ConstrainedBox(
|
||||||
constraints: const BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
maxWidth: 641,
|
maxWidth: maxWidth,
|
||||||
maxHeight: 474,
|
maxHeight: maxHeight,
|
||||||
),
|
),
|
||||||
child: Material(
|
child: Material(
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
|
|
Loading…
Reference in a new issue