CAKE-217 | reduced space between rows in the trade_row.dart and transaction_raw.dart

This commit is contained in:
OleksandrSobol 2020-12-18 20:02:08 +02:00
parent c20d57e9a9
commit b59d633665
2 changed files with 103 additions and 108 deletions

View file

@ -25,22 +25,18 @@ class TradeRow extends StatelessWidget {
return InkWell(
onTap: onTap,
child: Container(
height: 52,
padding: EdgeInsets.fromLTRB(24, 8, 24, 8),
color: Colors.transparent,
padding: EdgeInsets.only(left: 24, right: 24),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
_getPoweredImage(provider),
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 12),
child: Container(
height: 46,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
crossAxisAlignment: CrossAxisAlignment.center,
children: [
_getPoweredImage(provider),
SizedBox(width: 12),
Expanded(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
@ -59,6 +55,7 @@ class TradeRow extends StatelessWidget {
))
: Container()
]),
SizedBox(height: 5),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
@ -67,12 +64,12 @@ class TradeRow extends StatelessWidget {
fontSize: 14,
color: Theme.of(context).textTheme
.overline.backgroundColor))
]),
])
],
)
)
],
),
),
))
]),
));
}

View file

@ -23,12 +23,12 @@ class TransactionRow extends StatelessWidget {
return InkWell(
onTap: onTap,
child: Container(
height: 62,
padding: EdgeInsets.fromLTRB(24, 8, 24, 8),
color: Colors.transparent,
padding: EdgeInsets.only(left: 24, right: 24),
child: Row(
mainAxisSize: MainAxisSize.max,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
children: [
Container(
height: 36,
width: 36,
@ -41,14 +41,11 @@ class TransactionRow extends StatelessWidget {
? 'assets/images/down_arrow.png'
: 'assets/images/up_arrow.png'),
),
SizedBox(width: 12),
Expanded(
child: Container(
padding: const EdgeInsets.only(left: 12),
height: 56,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
mainAxisSize: MainAxisSize.min,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
@ -67,6 +64,7 @@ class TransactionRow extends StatelessWidget {
fontWeight: FontWeight.w500,
color: Colors.white))
]),
SizedBox(height: 5),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
@ -84,12 +82,12 @@ class TransactionRow extends StatelessWidget {
.textTheme
.overline
.backgroundColor))
]),
])
],
)
)
],
),
),
)
]),
));
}
}