flutter layouts constraint error fix

This commit is contained in:
julian 2023-01-14 12:17:25 -06:00
parent 89778e6e63
commit 3a0f563039

View file

@ -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,
),
], ],
), ),
), ),