add wallet + fix

This commit is contained in:
ryleedavis 2023-02-27 14:25:40 -07:00
parent 95c3cf1df5
commit 0d6bb23e9f

View file

@ -102,13 +102,15 @@ class EmptyWallets extends ConsumerWidget {
} }
} }
class AddWalletButton extends StatelessWidget { class AddWalletButton extends ConsumerWidget {
const AddWalletButton({Key? key, required this.isDesktop}) : super(key: key); const AddWalletButton({Key? key, required this.isDesktop}) : super(key: key);
final bool isDesktop; final bool isDesktop;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context, WidgetRef ref) {
final bool isOLED = ref.read(colorThemeProvider.state).state.themeType ==
ThemeType.oledBlack;
return TextButton( return TextButton(
style: Theme.of(context) style: Theme.of(context)
.extension<StackColors>()! .extension<StackColors>()!
@ -131,11 +133,20 @@ class AddWalletButton extends StatelessWidget {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
SvgPicture.asset( isOLED
Assets.svg.plus, ? SvgPicture.asset(
width: isDesktop ? 18 : null, Assets.svg.plus,
height: isDesktop ? 18 : null, color: Theme.of(context)
), .extension<StackColors>()!
.buttonTextPrimary,
width: isDesktop ? 18 : null,
height: isDesktop ? 18 : null,
)
: SvgPicture.asset(
Assets.svg.plus,
width: isDesktop ? 18 : null,
height: isDesktop ? 18 : null,
),
SizedBox( SizedBox(
width: isDesktop ? 8 : 5, width: isDesktop ? 8 : 5,
), ),