redid settings option layout and added first container

This commit is contained in:
ryleedavis 2022-10-13 16:42:13 -06:00
parent f39a9ea7d0
commit 1157b5fd0f

View file

@ -1,10 +1,12 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.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/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 {
const SettingsMenu({
@ -35,34 +37,27 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
Widget build(BuildContext context) {
debugPrint("BUILD: $runtimeType");
return Material(
color: Theme.of(context).extension<StackColors>()!.background,
child: SizedBox(
width: 300,
child: Padding(
padding: const EdgeInsets.fromLTRB(24.0, 10.0, 0, 0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
return Column(
children: [
SizedBox(
height: 20,
// width: 300,
DesktopAppBar(
isCompactHeight: true,
leading: Row(
children: [
const SizedBox(
width: 24,
height: 24,
),
Text(
"Settings",
style: STextStyles.desktopH3(context).copyWith(
fontSize: 24,
style: STextStyles.desktopH3(context),
)
],
),
),
Row(
children: [
Padding(
padding: const EdgeInsets.fromLTRB(
3.0,
30.0,
55.0,
0,
),
padding: const EdgeInsets.only(left: 15),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
@ -178,12 +173,24 @@ class _SettingsMenuState extends ConsumerState<SettingsMenu> {
],
),
),
Expanded(
child: Padding(
padding: const EdgeInsets.only(
left: 10,
right: 40,
),
child: RoundedWhiteContainer(
child: SvgPicture.asset(
Assets.svg.backupAuto,
width: 48,
height: 48,
),
),
),
)
],
),
],
),
),
),
);
}
}