mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
flutter layouts constraint error fix
This commit is contained in:
parent
89778e6e63
commit
3a0f563039
1 changed files with 20 additions and 13 deletions
|
@ -195,16 +195,18 @@ class WalletNavigationBar extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 12,
|
||||
),
|
||||
// TODO: Do not delete this code.
|
||||
// only temporarily disabled
|
||||
Spacer(
|
||||
flex: 2,
|
||||
),
|
||||
GestureDetector(
|
||||
onTap: onBuyPressed,
|
||||
RawMaterialButton(
|
||||
constraints: const BoxConstraints(
|
||||
minWidth: 66,
|
||||
),
|
||||
onPressed: onExchangePressed,
|
||||
splashColor:
|
||||
Theme.of(context).extension<StackColors>()!.highlight,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(
|
||||
height / 2.0,
|
||||
),
|
||||
),
|
||||
child: Container(
|
||||
color: Colors.transparent,
|
||||
child: Padding(
|
||||
|
@ -212,25 +214,30 @@ class WalletNavigationBar extends StatelessWidget {
|
|||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Spacer(),
|
||||
const Spacer(),
|
||||
SvgPicture.asset(
|
||||
// Assets.svg.exchange(context),
|
||||
// TODO change icon
|
||||
Assets.svg.buyDesktop,
|
||||
width: 24,
|
||||
height: 24,
|
||||
),
|
||||
SizedBox(
|
||||
const SizedBox(
|
||||
height: 4,
|
||||
),
|
||||
Text(
|
||||
"Buy",
|
||||
style: STextStyles.buttonSmall(context),
|
||||
),
|
||||
Spacer(),
|
||||
const Spacer(),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(
|
||||
width: 12,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue