2023-05-26 21:21:16 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-11-19 15:20:43 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:stackwallet/utilities/text_styles.dart';
|
|
|
|
import 'package:stackwallet/widgets/desktop/desktop_dialog.dart';
|
|
|
|
import 'package:stackwallet/widgets/desktop/desktop_dialog_close_button.dart';
|
|
|
|
import 'package:stackwallet/widgets/desktop/primary_button.dart';
|
|
|
|
|
|
|
|
class SimpleDesktopDialog extends StatelessWidget {
|
|
|
|
const SimpleDesktopDialog({
|
|
|
|
Key? key,
|
|
|
|
required this.title,
|
|
|
|
required this.message,
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
final String title;
|
|
|
|
final String message;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return DesktopDialog(
|
|
|
|
maxWidth: 500,
|
|
|
|
maxHeight: 300,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
2022-11-30 21:15:06 +00:00
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 32),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: STextStyles.desktopH3(context),
|
|
|
|
),
|
|
|
|
const DesktopDialogCloseButton(),
|
|
|
|
],
|
|
|
|
),
|
2022-11-19 15:20:43 +00:00
|
|
|
),
|
|
|
|
const Spacer(),
|
2022-11-30 21:15:06 +00:00
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 32),
|
|
|
|
child: Text(
|
|
|
|
message,
|
|
|
|
style: STextStyles.desktopTextSmall(context),
|
|
|
|
),
|
2022-11-19 15:20:43 +00:00
|
|
|
),
|
|
|
|
const Spacer(
|
|
|
|
flex: 2,
|
|
|
|
),
|
2022-11-30 21:15:06 +00:00
|
|
|
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,
|
|
|
|
),
|
2022-11-19 15:20:43 +00:00
|
|
|
),
|
2022-11-30 21:15:06 +00:00
|
|
|
],
|
|
|
|
),
|
2022-11-19 15:20:43 +00:00
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|