mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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);
|
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,7 +133,16 @@ class AddWalletButton extends StatelessWidget {
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
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,
|
Assets.svg.plus,
|
||||||
width: isDesktop ? 18 : null,
|
width: isDesktop ? 18 : null,
|
||||||
height: isDesktop ? 18 : null,
|
height: isDesktop ? 18 : null,
|
||||||
|
|
Loading…
Reference in a new issue