mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
Merge pull request #740 from cypherstack/ui
Make settings menu, advanced settings view, and DebugInfoDialog scrollable (if needed) and capitalize certain Firo terms
This commit is contained in:
commit
951d19a37a
5 changed files with 296 additions and 285 deletions
|
@ -209,7 +209,7 @@ class _FiroRescanRecoveryErrorViewState
|
||||||
children: [
|
children: [
|
||||||
if (!Util.isDesktop) const Spacer(),
|
if (!Util.isDesktop) const Spacer(),
|
||||||
Text(
|
Text(
|
||||||
"Failed to rescan firo wallet",
|
"Failed to rescan Firo wallet",
|
||||||
style: STextStyles.pageTitleH2(context),
|
style: STextStyles.pageTitleH2(context),
|
||||||
),
|
),
|
||||||
Util.isDesktop
|
Util.isDesktop
|
||||||
|
|
|
@ -178,7 +178,7 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
if (balanceSecondary != null)
|
if (balanceSecondary != null)
|
||||||
BalanceSelector(
|
BalanceSelector(
|
||||||
title: "Available lelantus balance",
|
title: "Available Lelantus balance",
|
||||||
coin: coin,
|
coin: coin,
|
||||||
balance: balanceSecondary.spendable,
|
balance: balanceSecondary.spendable,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -204,7 +204,7 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
if (balanceSecondary != null)
|
if (balanceSecondary != null)
|
||||||
BalanceSelector(
|
BalanceSelector(
|
||||||
title: "Full lelantus balance",
|
title: "Full Lelantus balance",
|
||||||
coin: coin,
|
coin: coin,
|
||||||
balance: balanceSecondary.total,
|
balance: balanceSecondary.total,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -230,7 +230,7 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
if (balanceTertiary != null)
|
if (balanceTertiary != null)
|
||||||
BalanceSelector(
|
BalanceSelector(
|
||||||
title: "Available spark balance",
|
title: "Available Spark balance",
|
||||||
coin: coin,
|
coin: coin,
|
||||||
balance: balanceTertiary.spendable,
|
balance: balanceTertiary.spendable,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
@ -256,7 +256,7 @@ class WalletBalanceToggleSheet extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
if (balanceTertiary != null)
|
if (balanceTertiary != null)
|
||||||
BalanceSelector(
|
BalanceSelector(
|
||||||
title: "Full spark balance",
|
title: "Full Spark balance",
|
||||||
coin: coin,
|
coin: coin,
|
||||||
balance: balanceTertiary.total,
|
balance: balanceTertiary.total,
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
|
|
|
@ -105,8 +105,13 @@ class _DesktopSettingsViewState extends ConsumerState<DesktopSettingsView> {
|
||||||
children: [
|
children: [
|
||||||
const Padding(
|
const Padding(
|
||||||
padding: EdgeInsets.all(15.0),
|
padding: EdgeInsets.all(15.0),
|
||||||
|
child: Align(
|
||||||
|
alignment: Alignment.topLeft,
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: SettingsMenu(),
|
child: SettingsMenu(),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: contentViews[
|
child: contentViews[
|
||||||
ref.watch(selectedSettingsMenuItemStateProvider.state).state],
|
ref.watch(selectedSettingsMenuItemStateProvider.state).state],
|
||||||
|
|
|
@ -36,7 +36,8 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
return Column(
|
return SingleChildScrollView(
|
||||||
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(
|
padding: const EdgeInsets.only(
|
||||||
|
@ -103,8 +104,8 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
||||||
width: 40,
|
width: 40,
|
||||||
child: DraggableSwitchButton(
|
child: DraggableSwitchButton(
|
||||||
isOn: ref.watch(
|
isOn: ref.watch(
|
||||||
prefsChangeNotifierProvider
|
prefsChangeNotifierProvider.select(
|
||||||
.select((value) => value.showTestNetCoins),
|
(value) => value.showTestNetCoins),
|
||||||
),
|
),
|
||||||
onValueChanged: (newValue) {
|
onValueChanged: (newValue) {
|
||||||
ref
|
ref
|
||||||
|
@ -141,8 +142,8 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
||||||
width: 40,
|
width: 40,
|
||||||
child: DraggableSwitchButton(
|
child: DraggableSwitchButton(
|
||||||
isOn: ref.watch(
|
isOn: ref.watch(
|
||||||
prefsChangeNotifierProvider
|
prefsChangeNotifierProvider.select(
|
||||||
.select((value) => value.enableCoinControl),
|
(value) => value.enableCoinControl),
|
||||||
),
|
),
|
||||||
onValueChanged: (newValue) {
|
onValueChanged: (newValue) {
|
||||||
ref
|
ref
|
||||||
|
@ -177,8 +178,8 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
"Stack Experience",
|
"Stack Experience",
|
||||||
style:
|
style: STextStyles.desktopTextExtraSmall(
|
||||||
STextStyles.desktopTextExtraSmall(context)
|
context)
|
||||||
.copyWith(
|
.copyWith(
|
||||||
color: Theme.of(context)
|
color: Theme.of(context)
|
||||||
.extension<StackColors>()!
|
.extension<StackColors>()!
|
||||||
|
@ -187,7 +188,8 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
externalCalls ? "Easy crypto" : "Incognito",
|
externalCalls ? "Easy crypto" : "Incognito",
|
||||||
style: STextStyles.desktopTextExtraExtraSmall(
|
style:
|
||||||
|
STextStyles.desktopTextExtraExtraSmall(
|
||||||
context),
|
context),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
@ -335,6 +337,7 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,10 @@ class _DebugInfoDialog extends ConsumerState<DebugInfoDialog> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return DesktopDialog(
|
return DesktopDialog(
|
||||||
maxHeight: 850,
|
// Max height of 850 unless the screen is smaller than that.
|
||||||
|
maxHeight: MediaQuery.of(context).size.height < 850
|
||||||
|
? MediaQuery.of(context).size.height
|
||||||
|
: 850,
|
||||||
maxWidth: 600,
|
maxWidth: 600,
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
|
|
Loading…
Reference in a new issue