mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
image size/layout fix
This commit is contained in:
parent
877a6b7830
commit
dea92f4adf
3 changed files with 32 additions and 35 deletions
|
@ -28,8 +28,6 @@ class AddWalletNextButton extends ConsumerWidget {
|
|||
final selectedCoin =
|
||||
ref.read(addWalletSelectedCoinStateProvider.state).state;
|
||||
|
||||
//todo: check if print needed
|
||||
// debugPrint("Next pressed with ${selectedCoin!.name} selected!");
|
||||
Navigator.of(context).pushNamed(
|
||||
CreateOrRestoreWalletView.routeName,
|
||||
arguments: selectedCoin,
|
||||
|
|
|
@ -89,41 +89,40 @@ class CreateOrRestoreWalletView extends StatelessWidget {
|
|||
},
|
||||
),
|
||||
),
|
||||
body: Container(
|
||||
color: Theme.of(context).extension<StackColors>()!.background,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(31),
|
||||
child: CoinImage(
|
||||
body: SafeArea(
|
||||
child: Container(
|
||||
color: Theme.of(context).extension<StackColors>()!.background,
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
CoinImage(
|
||||
coin: coin,
|
||||
isDesktop: isDesktop,
|
||||
),
|
||||
),
|
||||
const Spacer(
|
||||
flex: 2,
|
||||
),
|
||||
CreateRestoreWalletTitle(
|
||||
coin: coin,
|
||||
isDesktop: isDesktop,
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
CreateRestoreWalletSubTitle(
|
||||
isDesktop: isDesktop,
|
||||
),
|
||||
const Spacer(
|
||||
flex: 5,
|
||||
),
|
||||
CreateWalletButtonGroup(
|
||||
coin: coin,
|
||||
isDesktop: isDesktop,
|
||||
),
|
||||
],
|
||||
const Spacer(
|
||||
flex: 2,
|
||||
),
|
||||
CreateRestoreWalletTitle(
|
||||
coin: coin,
|
||||
isDesktop: isDesktop,
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
CreateRestoreWalletSubTitle(
|
||||
isDesktop: isDesktop,
|
||||
),
|
||||
const Spacer(
|
||||
flex: 5,
|
||||
),
|
||||
CreateWalletButtonGroup(
|
||||
coin: coin,
|
||||
isDesktop: isDesktop,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -18,7 +18,7 @@ class CoinImage extends ConsumerWidget {
|
|||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
return SvgPicture.asset(
|
||||
Assets.svg.imageFor(coin: coin, context: context),
|
||||
width: isDesktop ? 324 : MediaQuery.of(context).size.width,
|
||||
width: isDesktop ? 324 : MediaQuery.of(context).size.width / 1.6,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue