mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 20:39:21 +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(
|
RawMaterialButton(
|
||||||
width: 12,
|
constraints: const BoxConstraints(
|
||||||
),
|
minWidth: 66,
|
||||||
// TODO: Do not delete this code.
|
),
|
||||||
// only temporarily disabled
|
onPressed: onExchangePressed,
|
||||||
Spacer(
|
splashColor:
|
||||||
flex: 2,
|
Theme.of(context).extension<StackColors>()!.highlight,
|
||||||
),
|
shape: RoundedRectangleBorder(
|
||||||
GestureDetector(
|
borderRadius: BorderRadius.circular(
|
||||||
onTap: onBuyPressed,
|
height / 2.0,
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Container(
|
child: Container(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
|
@ -212,25 +214,30 @@ class WalletNavigationBar extends StatelessWidget {
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Spacer(),
|
const Spacer(),
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
|
// Assets.svg.exchange(context),
|
||||||
|
// TODO change icon
|
||||||
Assets.svg.buyDesktop,
|
Assets.svg.buyDesktop,
|
||||||
width: 24,
|
width: 24,
|
||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
SizedBox(
|
const SizedBox(
|
||||||
height: 4,
|
height: 4,
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
"Buy",
|
"Buy",
|
||||||
style: STextStyles.buttonSmall(context),
|
style: STextStyles.buttonSmall(context),
|
||||||
),
|
),
|
||||||
Spacer(),
|
const Spacer(),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
const SizedBox(
|
||||||
|
width: 12,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue