mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-09 12:19:24 +00:00
add wallet + fix
This commit is contained in:
parent
95c3cf1df5
commit
0d6bb23e9f
1 changed files with 18 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue