/* * This file is part of Stack Wallet. * * Copyright (c) 2023 Cypher Stack * All Rights Reserved. * The code is distributed under GPLv3 license, see LICENSE file for details. * Generated by Cypher Stack on 2023-05-26 * */ import 'package:flutter/material.dart'; import '../../utilities/text_styles.dart'; import 'desktop_dialog.dart'; import 'desktop_dialog_close_button.dart'; import 'primary_button.dart'; class SimpleDesktopDialog extends StatelessWidget { const SimpleDesktopDialog({ super.key, required this.title, required this.message, }); final String title; final String message; @override Widget build(BuildContext context) { return DesktopDialog( maxWidth: 500, maxHeight: 300, child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Padding( padding: const EdgeInsets.only(left: 32), child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Text( title, style: STextStyles.desktopH3(context), ), const DesktopDialogCloseButton(), ], ), ), const Spacer(), Padding( padding: const EdgeInsets.symmetric(horizontal: 32), child: Text( message, style: STextStyles.desktopTextSmall(context), ), ), const Spacer( flex: 2, ), Padding( padding: const EdgeInsets.only( left: 32, right: 32, bottom: 32, ), child: Row( children: [ const Spacer(), const SizedBox( width: 16, ), Expanded( child: PrimaryButton( label: "Ok", buttonHeight: ButtonHeight.l, onPressed: Navigator.of( context, rootNavigator: true, ).pop, ), ), ], ), ), ], ), ); } }