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);
final bool isDesktop;
@override
Widget build(BuildContext context) {
Widget build(BuildContext context, WidgetRef ref) {
final bool isOLED = ref.read(colorThemeProvider.state).state.themeType ==
ThemeType.oledBlack;
return TextButton(
style: Theme.of(context)
.extension<StackColors>()!
@ -131,7 +133,16 @@ class AddWalletButton extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
SvgPicture.asset(
isOLED
? SvgPicture.asset(
Assets.svg.plus,
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,