mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
swb desktop layout tweaks
This commit is contained in:
parent
3c627a5ddb
commit
2f6b1278fe
4 changed files with 115 additions and 88 deletions
|
@ -157,7 +157,7 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
|||
.textDark3),
|
||||
),
|
||||
),
|
||||
// child,
|
||||
child,
|
||||
const SizedBox(height: 20),
|
||||
Row(
|
||||
children: [
|
||||
|
@ -442,7 +442,7 @@ class _RestoreFromFileViewState extends State<CreateBackupView> {
|
|||
const SizedBox(
|
||||
height: 16,
|
||||
),
|
||||
const Spacer(),
|
||||
if (!isDesktop) const Spacer(),
|
||||
TextButton(
|
||||
style: shouldEnableCreate
|
||||
? Theme.of(context)
|
||||
|
|
|
@ -142,7 +142,7 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
|||
textAlign: TextAlign.left,
|
||||
),
|
||||
),
|
||||
// child,
|
||||
child,
|
||||
const SizedBox(height: 20),
|
||||
Row(
|
||||
children: [
|
||||
|
@ -285,7 +285,7 @@ class _RestoreFromFileViewState extends ConsumerState<RestoreFromFileView> {
|
|||
const SizedBox(
|
||||
height: 16,
|
||||
),
|
||||
const Spacer(),
|
||||
if (!isDesktop) const Spacer(),
|
||||
TextButton(
|
||||
style: passwordController.text.isEmpty ||
|
||||
fileLocationController.text.isEmpty
|
||||
|
|
|
@ -64,6 +64,9 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
height: 48,
|
||||
),
|
||||
Center(
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: RichText(
|
||||
|
@ -72,8 +75,8 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
children: [
|
||||
TextSpan(
|
||||
text: "Auto Backup",
|
||||
style:
|
||||
STextStyles.desktopTextSmall(context),
|
||||
style: STextStyles.desktopTextSmall(
|
||||
context),
|
||||
),
|
||||
TextSpan(
|
||||
text:
|
||||
|
@ -81,13 +84,15 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
"To ensure maximum security, we recommend using a unique password that you haven't used anywhere "
|
||||
"else on the internet before. Your password is not stored.",
|
||||
style: STextStyles
|
||||
.desktopTextExtraExtraSmall(context),
|
||||
.desktopTextExtraExtraSmall(
|
||||
context),
|
||||
),
|
||||
TextSpan(
|
||||
text:
|
||||
"\n\nFor more information, please see our website ",
|
||||
style: STextStyles
|
||||
.desktopTextExtraExtraSmall(context),
|
||||
.desktopTextExtraExtraSmall(
|
||||
context),
|
||||
),
|
||||
TextSpan(
|
||||
text: "stackwallet.com",
|
||||
|
@ -98,8 +103,8 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
launchUrl(
|
||||
Uri.parse(
|
||||
"https://stackwallet.com/"),
|
||||
mode:
|
||||
LaunchMode.externalApplication,
|
||||
mode: LaunchMode
|
||||
.externalApplication,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
@ -108,6 +113,9 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
@ -148,6 +156,9 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
alignment: Alignment.topLeft,
|
||||
),
|
||||
Center(
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: RichText(
|
||||
|
@ -156,8 +167,8 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
children: [
|
||||
TextSpan(
|
||||
text: "Manual Backup",
|
||||
style:
|
||||
STextStyles.desktopTextSmall(context),
|
||||
style: STextStyles.desktopTextSmall(
|
||||
context),
|
||||
),
|
||||
TextSpan(
|
||||
text:
|
||||
|
@ -165,22 +176,29 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
"You will create a backup file that can be later used in the Restore option. "
|
||||
"Use a strong password to encrypt your data.",
|
||||
style: STextStyles
|
||||
.desktopTextExtraExtraSmall(context),
|
||||
.desktopTextExtraExtraSmall(
|
||||
context),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Padding(
|
||||
padding: EdgeInsets.all(
|
||||
padding: const EdgeInsets.all(
|
||||
10,
|
||||
),
|
||||
child: createBackup
|
||||
? const CreateBackupView()
|
||||
? const SizedBox(
|
||||
width: 512,
|
||||
child: CreateBackupView(),
|
||||
)
|
||||
: PrimaryButton(
|
||||
desktopMed: true,
|
||||
width: 200,
|
||||
|
@ -217,6 +235,9 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
alignment: Alignment.topLeft,
|
||||
),
|
||||
Center(
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(10),
|
||||
child: RichText(
|
||||
|
@ -225,21 +246,25 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
children: [
|
||||
TextSpan(
|
||||
text: "Restore Backup",
|
||||
style:
|
||||
STextStyles.desktopTextSmall(context),
|
||||
style: STextStyles.desktopTextSmall(
|
||||
context),
|
||||
),
|
||||
TextSpan(
|
||||
text:
|
||||
"\n\nUse your Stack Wallet backup file to restore your wallets, address book "
|
||||
"and wallet preferences.",
|
||||
style: STextStyles
|
||||
.desktopTextExtraExtraSmall(context),
|
||||
.desktopTextExtraExtraSmall(
|
||||
context),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
|
@ -248,7 +273,10 @@ class _BackupRestoreSettings extends ConsumerState<BackupRestoreSettings> {
|
|||
10,
|
||||
),
|
||||
child: restoreBackup
|
||||
? RestoreFromFileView()
|
||||
? const SizedBox(
|
||||
width: 512,
|
||||
child: RestoreFromFileView(),
|
||||
)
|
||||
: PrimaryButton(
|
||||
desktopMed: true,
|
||||
width: 200,
|
||||
|
|
|
@ -61,8 +61,7 @@ class EnableBackupDialog extends StatelessWidget {
|
|||
child: SecondaryButton(
|
||||
label: "Cancel",
|
||||
onPressed: () {
|
||||
int count = 0;
|
||||
Navigator.of(context).popUntil((_) => count++ >= 2);
|
||||
Navigator.of(context).pop();
|
||||
},
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue