mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 03:49:22 +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,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,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue