mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 22:58:49 +00:00
redid settings option layout and added first container
This commit is contained in:
parent
f39a9ea7d0
commit
1157b5fd0f
1 changed files with 152 additions and 145 deletions
|
@ -1,10 +1,12 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/svg.dart';
|
import 'package:flutter_svg/svg.dart';
|
||||||
import 'package:stackwallet/pages_desktop_specific/home/settings_menu_item.dart';
|
|
||||||
import 'package:stackwallet/utilities/assets.dart';
|
|
||||||
import 'package:stackwallet/utilities/text_styles.dart';
|
import 'package:stackwallet/utilities/text_styles.dart';
|
||||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
import 'package:stackwallet/widgets/desktop/desktop_app_bar.dart';
|
||||||
|
import 'package:stackwallet/widgets/rounded_white_container.dart';
|
||||||
|
|
||||||
|
import '../../../utilities/assets.dart';
|
||||||
|
import '../settings_menu_item.dart';
|
||||||
|
|
||||||
class SettingsMenu extends ConsumerStatefulWidget {
|
class SettingsMenu extends ConsumerStatefulWidget {
|
||||||
const SettingsMenu({
|
const SettingsMenu({
|
||||||
|
@ -35,155 +37,160 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
debugPrint("BUILD: $runtimeType");
|
debugPrint("BUILD: $runtimeType");
|
||||||
|
|
||||||
return Material(
|
return Column(
|
||||||
color: Theme.of(context).extension<StackColors>()!.background,
|
children: [
|
||||||
child: SizedBox(
|
DesktopAppBar(
|
||||||
width: 300,
|
isCompactHeight: true,
|
||||||
child: Padding(
|
leading: Row(
|
||||||
padding: const EdgeInsets.fromLTRB(24.0, 10.0, 0, 0),
|
|
||||||
child: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
height: 20,
|
width: 24,
|
||||||
// width: 300,
|
height: 24,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"Settings",
|
"Settings",
|
||||||
style: STextStyles.desktopH3(context).copyWith(
|
style: STextStyles.desktopH3(context),
|
||||||
fontSize: 24,
|
)
|
||||||
),
|
|
||||||
),
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsets.fromLTRB(
|
|
||||||
3.0,
|
|
||||||
30.0,
|
|
||||||
55.0,
|
|
||||||
0,
|
|
||||||
),
|
|
||||||
child: Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
SettingsMenuItem(
|
|
||||||
icon: SvgPicture.asset(
|
|
||||||
Assets.svg.polygon,
|
|
||||||
width: 11,
|
|
||||||
height: 11,
|
|
||||||
),
|
|
||||||
label: "Backup and restore",
|
|
||||||
value: 0,
|
|
||||||
group: selectedMenuItem,
|
|
||||||
onChanged: updateSelectedMenuItem,
|
|
||||||
),
|
|
||||||
const SizedBox(
|
|
||||||
height: 2,
|
|
||||||
),
|
|
||||||
SettingsMenuItem(
|
|
||||||
icon: SvgPicture.asset(
|
|
||||||
Assets.svg.polygon,
|
|
||||||
width: 11,
|
|
||||||
height: 11,
|
|
||||||
),
|
|
||||||
label: "Security",
|
|
||||||
value: 1,
|
|
||||||
group: selectedMenuItem,
|
|
||||||
onChanged: updateSelectedMenuItem,
|
|
||||||
),
|
|
||||||
const SizedBox(
|
|
||||||
height: 2,
|
|
||||||
),
|
|
||||||
SettingsMenuItem(
|
|
||||||
icon: SvgPicture.asset(
|
|
||||||
Assets.svg.polygon,
|
|
||||||
width: 11,
|
|
||||||
height: 11,
|
|
||||||
),
|
|
||||||
label: "Currency",
|
|
||||||
value: 2,
|
|
||||||
group: selectedMenuItem,
|
|
||||||
onChanged: updateSelectedMenuItem,
|
|
||||||
),
|
|
||||||
const SizedBox(
|
|
||||||
height: 2,
|
|
||||||
),
|
|
||||||
SettingsMenuItem(
|
|
||||||
icon: SvgPicture.asset(
|
|
||||||
Assets.svg.polygon,
|
|
||||||
width: 11,
|
|
||||||
height: 11,
|
|
||||||
),
|
|
||||||
label: "Language",
|
|
||||||
value: 3,
|
|
||||||
group: selectedMenuItem,
|
|
||||||
onChanged: updateSelectedMenuItem,
|
|
||||||
),
|
|
||||||
const SizedBox(
|
|
||||||
height: 2,
|
|
||||||
),
|
|
||||||
SettingsMenuItem(
|
|
||||||
icon: SvgPicture.asset(
|
|
||||||
Assets.svg.polygon,
|
|
||||||
width: 11,
|
|
||||||
height: 11,
|
|
||||||
),
|
|
||||||
label: "Nodes",
|
|
||||||
value: 4,
|
|
||||||
group: selectedMenuItem,
|
|
||||||
onChanged: updateSelectedMenuItem,
|
|
||||||
),
|
|
||||||
const SizedBox(
|
|
||||||
height: 2,
|
|
||||||
),
|
|
||||||
SettingsMenuItem(
|
|
||||||
icon: SvgPicture.asset(
|
|
||||||
Assets.svg.polygon,
|
|
||||||
width: 11,
|
|
||||||
height: 11,
|
|
||||||
),
|
|
||||||
label: "Syncing preferences",
|
|
||||||
value: 5,
|
|
||||||
group: selectedMenuItem,
|
|
||||||
onChanged: updateSelectedMenuItem,
|
|
||||||
),
|
|
||||||
const SizedBox(
|
|
||||||
height: 2,
|
|
||||||
),
|
|
||||||
SettingsMenuItem(
|
|
||||||
icon: SvgPicture.asset(
|
|
||||||
Assets.svg.polygon,
|
|
||||||
width: 11,
|
|
||||||
height: 11,
|
|
||||||
),
|
|
||||||
label: "Appearance",
|
|
||||||
value: 6,
|
|
||||||
group: selectedMenuItem,
|
|
||||||
onChanged: updateSelectedMenuItem,
|
|
||||||
),
|
|
||||||
const SizedBox(
|
|
||||||
height: 2,
|
|
||||||
),
|
|
||||||
SettingsMenuItem(
|
|
||||||
icon: SvgPicture.asset(
|
|
||||||
Assets.svg.polygon,
|
|
||||||
width: 11,
|
|
||||||
height: 11,
|
|
||||||
),
|
|
||||||
label: "Advanced",
|
|
||||||
value: 7,
|
|
||||||
group: selectedMenuItem,
|
|
||||||
onChanged: updateSelectedMenuItem,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Row(
|
||||||
|
children: [
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.only(left: 15),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
SettingsMenuItem(
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.polygon,
|
||||||
|
width: 11,
|
||||||
|
height: 11,
|
||||||
|
),
|
||||||
|
label: "Backup and restore",
|
||||||
|
value: 0,
|
||||||
|
group: selectedMenuItem,
|
||||||
|
onChanged: updateSelectedMenuItem,
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 2,
|
||||||
|
),
|
||||||
|
SettingsMenuItem(
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.polygon,
|
||||||
|
width: 11,
|
||||||
|
height: 11,
|
||||||
|
),
|
||||||
|
label: "Security",
|
||||||
|
value: 1,
|
||||||
|
group: selectedMenuItem,
|
||||||
|
onChanged: updateSelectedMenuItem,
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 2,
|
||||||
|
),
|
||||||
|
SettingsMenuItem(
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.polygon,
|
||||||
|
width: 11,
|
||||||
|
height: 11,
|
||||||
|
),
|
||||||
|
label: "Currency",
|
||||||
|
value: 2,
|
||||||
|
group: selectedMenuItem,
|
||||||
|
onChanged: updateSelectedMenuItem,
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 2,
|
||||||
|
),
|
||||||
|
SettingsMenuItem(
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.polygon,
|
||||||
|
width: 11,
|
||||||
|
height: 11,
|
||||||
|
),
|
||||||
|
label: "Language",
|
||||||
|
value: 3,
|
||||||
|
group: selectedMenuItem,
|
||||||
|
onChanged: updateSelectedMenuItem,
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 2,
|
||||||
|
),
|
||||||
|
SettingsMenuItem(
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.polygon,
|
||||||
|
width: 11,
|
||||||
|
height: 11,
|
||||||
|
),
|
||||||
|
label: "Nodes",
|
||||||
|
value: 4,
|
||||||
|
group: selectedMenuItem,
|
||||||
|
onChanged: updateSelectedMenuItem,
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 2,
|
||||||
|
),
|
||||||
|
SettingsMenuItem(
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.polygon,
|
||||||
|
width: 11,
|
||||||
|
height: 11,
|
||||||
|
),
|
||||||
|
label: "Syncing preferences",
|
||||||
|
value: 5,
|
||||||
|
group: selectedMenuItem,
|
||||||
|
onChanged: updateSelectedMenuItem,
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 2,
|
||||||
|
),
|
||||||
|
SettingsMenuItem(
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.polygon,
|
||||||
|
width: 11,
|
||||||
|
height: 11,
|
||||||
|
),
|
||||||
|
label: "Appearance",
|
||||||
|
value: 6,
|
||||||
|
group: selectedMenuItem,
|
||||||
|
onChanged: updateSelectedMenuItem,
|
||||||
|
),
|
||||||
|
const SizedBox(
|
||||||
|
height: 2,
|
||||||
|
),
|
||||||
|
SettingsMenuItem(
|
||||||
|
icon: SvgPicture.asset(
|
||||||
|
Assets.svg.polygon,
|
||||||
|
width: 11,
|
||||||
|
height: 11,
|
||||||
|
),
|
||||||
|
label: "Advanced",
|
||||||
|
value: 7,
|
||||||
|
group: selectedMenuItem,
|
||||||
|
onChanged: updateSelectedMenuItem,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Expanded(
|
||||||
|
child: Padding(
|
||||||
|
padding: const EdgeInsets.only(
|
||||||
|
left: 10,
|
||||||
|
right: 40,
|
||||||
|
),
|
||||||
|
child: RoundedWhiteContainer(
|
||||||
|
child: SvgPicture.asset(
|
||||||
|
Assets.svg.backupAuto,
|
||||||
|
width: 48,
|
||||||
|
height: 48,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue