mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-27 13:59:21 +00:00
108 lines
3.1 KiB
Dart
108 lines
3.1 KiB
Dart
/*
|
|
* 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 '../../../themes/stack_colors.dart';
|
|
import '../../../utilities/text_styles.dart';
|
|
import '../../../utilities/util.dart';
|
|
import '../../../widgets/animated_widgets/rotating_arrows.dart';
|
|
import '../../../widgets/desktop/desktop_dialog.dart';
|
|
import '../../../widgets/desktop/desktop_dialog_close_button.dart';
|
|
import '../../../widgets/desktop/secondary_button.dart';
|
|
import '../../../widgets/stack_dialog.dart';
|
|
|
|
class ClaimingPaynymDialog extends StatefulWidget {
|
|
const ClaimingPaynymDialog({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
State<ClaimingPaynymDialog> createState() => _RestoringDialogState();
|
|
}
|
|
|
|
class _RestoringDialogState extends State<ClaimingPaynymDialog> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
if (Util.isDesktop) {
|
|
return DesktopDialog(
|
|
maxWidth: 580,
|
|
maxHeight: double.infinity,
|
|
child: Column(
|
|
children: [
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
children: [
|
|
DesktopDialogCloseButton(
|
|
onPressedOverride: () => Navigator.of(context).pop(true),
|
|
),
|
|
],
|
|
),
|
|
const RotatingArrows(
|
|
width: 40,
|
|
height: 40,
|
|
),
|
|
Padding(
|
|
padding: const EdgeInsets.all(40),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Text(
|
|
"Claiming PayNym",
|
|
style: STextStyles.desktopH2(context),
|
|
),
|
|
const SizedBox(
|
|
height: 20,
|
|
),
|
|
Text(
|
|
"We are generating your PayNym",
|
|
style: STextStyles.desktopTextMedium(context).copyWith(
|
|
color:
|
|
Theme.of(context).extension<StackColors>()!.textDark3,
|
|
),
|
|
),
|
|
const SizedBox(
|
|
height: 40,
|
|
),
|
|
SecondaryButton(
|
|
label: "Cancel",
|
|
width: 272,
|
|
onPressed: () {
|
|
Navigator.of(context).pop(true);
|
|
},
|
|
),
|
|
],
|
|
),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
} else {
|
|
return WillPopScope(
|
|
onWillPop: () async {
|
|
return false;
|
|
},
|
|
child: StackDialog(
|
|
title: "Claiming PayNym",
|
|
message: "We are generating your PayNym",
|
|
icon: const RotatingArrows(
|
|
width: 24,
|
|
height: 24,
|
|
),
|
|
rightButton: SecondaryButton(
|
|
label: "Cancel",
|
|
onPressed: () {
|
|
Navigator.of(context).pop(true);
|
|
},
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
}
|