mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-19 02:31:09 +00:00
39 lines
1 KiB
Dart
39 lines
1 KiB
Dart
|
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);
|
||
|
|
||
|
final Widget? child;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Column(
|
||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||
|
children: [
|
||
|
ConstrainedBox(
|
||
|
constraints: const BoxConstraints(
|
||
|
maxWidth: 641,
|
||
|
maxHeight: 474,
|
||
|
),
|
||
|
child: Material(
|
||
|
borderRadius: BorderRadius.circular(
|
||
|
20,
|
||
|
),
|
||
|
child: Container(
|
||
|
decoration: BoxDecoration(
|
||
|
color: Theme.of(context).extension<StackColors>()!.popupBG,
|
||
|
borderRadius: BorderRadius.circular(
|
||
|
20,
|
||
|
),
|
||
|
),
|
||
|
child: child,
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
}
|