fix: background

This commit is contained in:
julian 2023-05-11 09:30:15 -06:00
parent b16e96fc6d
commit 7131632044

View file

@ -6,6 +6,7 @@ import 'package:stackwallet/themes/stack_colors.dart';
import 'package:stackwallet/themes/theme_service.dart';
import 'package:stackwallet/utilities/text_styles.dart';
import 'package:stackwallet/utilities/util.dart';
import 'package:stackwallet/widgets/background.dart';
import 'package:stackwallet/widgets/conditional_parent.dart';
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
import 'package:stackwallet/widgets/desktop/primary_button.dart';
@ -37,8 +38,10 @@ class _ManageThemesViewState extends ConsumerState<ManageThemesView> {
Widget build(BuildContext context) {
return ConditionalParent(
condition: !Util.isDesktop,
builder: (child) => Scaffold(
backgroundColor: Theme.of(context).extension<StackColors>()!.background,
builder: (child) => Background(
child: Scaffold(
backgroundColor:
Theme.of(context).extension<StackColors>()!.background,
appBar: AppBar(
leading: AppBarBackButton(
onPressed: () {
@ -110,6 +113,7 @@ class _ManageThemesViewState extends ConsumerState<ManageThemesView> {
),
),
),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [