mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
desktop sizing fixes
This commit is contained in:
parent
b8f7ce27a2
commit
d97a994c54
3 changed files with 25 additions and 16 deletions
|
@ -217,6 +217,9 @@ class _AddWalletViewState extends ConsumerState<AddWalletView> {
|
|||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
Expanded(
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
|
@ -235,6 +238,9 @@ class _AddWalletViewState extends ConsumerState<AddWalletView> {
|
|||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 20,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
@ -84,7 +84,7 @@ class _ExpandingSubListItemState extends State<ExpandingSubListItem> {
|
|||
Text(
|
||||
widget.title,
|
||||
style: isDesktop
|
||||
? STextStyles.desktopTextExtraExtraSmall(context).copyWith(
|
||||
? STextStyles.desktopTextMedium(context).copyWith(
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.textDark3,
|
||||
|
@ -95,8 +95,8 @@ class _ExpandingSubListItemState extends State<ExpandingSubListItem> {
|
|||
RotateIcon(
|
||||
icon: SvgPicture.asset(
|
||||
Assets.svg.chevronDown,
|
||||
width: 12,
|
||||
height: 6,
|
||||
width: isDesktop ? 20 : 12,
|
||||
height: isDesktop ? 10 : 6,
|
||||
color: Theme.of(context)
|
||||
.extension<StackColors>()!
|
||||
.textFieldActiveSearchIconRight,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
|
@ -225,19 +227,20 @@ class _DesktopMenuState extends ConsumerState<DesktopMenu> {
|
|||
controller: controllers[7],
|
||||
),
|
||||
const Spacer(),
|
||||
DesktopMenuItem(
|
||||
duration: duration,
|
||||
labelLength: 123,
|
||||
icon: const DesktopExitIcon(),
|
||||
label: "Exit",
|
||||
value: 7,
|
||||
onChanged: (_) {
|
||||
// todo: save stuff/ notify before exit?
|
||||
// exit(0);
|
||||
SystemNavigator.pop();
|
||||
},
|
||||
controller: controllers[8],
|
||||
),
|
||||
if (!Platform.isIOS)
|
||||
DesktopMenuItem(
|
||||
duration: duration,
|
||||
labelLength: 123,
|
||||
icon: const DesktopExitIcon(),
|
||||
label: "Exit",
|
||||
value: 7,
|
||||
onChanged: (_) {
|
||||
// todo: save stuff/ notify before exit?
|
||||
// exit(0);
|
||||
SystemNavigator.pop();
|
||||
},
|
||||
controller: controllers[8],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue