mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-22 18:44:31 +00:00
page for settings options
This commit is contained in:
parent
5827b13fe3
commit
b46fb829d1
1 changed files with 68 additions and 0 deletions
|
@ -0,0 +1,68 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:stackwallet/pages_desktop_specific/home/settings_menu/settings_menu.dart';
|
||||
import 'package:stackwallet/utilities/theme/stack_colors.dart';
|
||||
|
||||
class DesktopSettingsView extends ConsumerStatefulWidget {
|
||||
const DesktopSettingsView({Key? key}) : super(key: key);
|
||||
|
||||
static const String routeName = "/desktopSettings";
|
||||
|
||||
@override
|
||||
ConsumerState<DesktopSettingsView> createState() =>
|
||||
_DesktopSettingsViewState();
|
||||
}
|
||||
|
||||
class _DesktopSettingsViewState extends ConsumerState<DesktopSettingsView> {
|
||||
int currentViewIndex = 0;
|
||||
final List<Widget> contentViews = [
|
||||
Container(
|
||||
color: Colors.lime,
|
||||
), //b+r
|
||||
Container(
|
||||
color: Colors.green,
|
||||
), //security
|
||||
Container(
|
||||
color: Colors.red,
|
||||
), //currency
|
||||
Container(
|
||||
color: Colors.orange,
|
||||
), //language
|
||||
Container(
|
||||
color: Colors.yellow,
|
||||
), //nodes
|
||||
Container(
|
||||
color: Colors.blue,
|
||||
), //syncing prefs
|
||||
Container(
|
||||
color: Colors.pink,
|
||||
), //appearance
|
||||
Container(
|
||||
color: Colors.purple,
|
||||
), //advanced
|
||||
];
|
||||
|
||||
void onMenuSelectionChanged(int newIndex) {
|
||||
setState(() {
|
||||
currentViewIndex = newIndex;
|
||||
});
|
||||
}
|
||||
|
||||
// will have a row with two items: SettingsMenu and settings contentxd
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Material(
|
||||
color: Theme.of(context).extension<StackColors>()!.background,
|
||||
child: Row(
|
||||
children: [
|
||||
SettingsMenu(
|
||||
onSelectionChanged: onMenuSelectionChanged,
|
||||
),
|
||||
Expanded(
|
||||
child: contentViews[currentViewIndex],
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue