mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 12:29:37 +00:00
tx list styling fix for single tx
This commit is contained in:
parent
915458dbf3
commit
3d6d3d5d45
1 changed files with 10 additions and 2 deletions
|
@ -247,7 +247,11 @@ class _TransactionsListState extends ConsumerState<TransactionsList> {
|
||||||
? ListView.separated(
|
? ListView.separated(
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
BorderRadius? radius;
|
BorderRadius? radius;
|
||||||
if (index == list.length - 1) {
|
if (list.length == 1) {
|
||||||
|
radius = BorderRadius.circular(
|
||||||
|
Constants.size.circularBorderRadius,
|
||||||
|
);
|
||||||
|
} else if (index == list.length - 1) {
|
||||||
radius = _borderRadiusLast;
|
radius = _borderRadiusLast;
|
||||||
} else if (index == 0) {
|
} else if (index == 0) {
|
||||||
radius = _borderRadiusFirst;
|
radius = _borderRadiusFirst;
|
||||||
|
@ -270,7 +274,11 @@ class _TransactionsListState extends ConsumerState<TransactionsList> {
|
||||||
itemCount: list.length,
|
itemCount: list.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
BorderRadius? radius;
|
BorderRadius? radius;
|
||||||
if (index == list.length - 1) {
|
if (list.length == 1) {
|
||||||
|
radius = BorderRadius.circular(
|
||||||
|
Constants.size.circularBorderRadius,
|
||||||
|
);
|
||||||
|
} else if (index == list.length - 1) {
|
||||||
radius = _borderRadiusLast;
|
radius = _borderRadiusLast;
|
||||||
} else if (index == 0) {
|
} else if (index == 0) {
|
||||||
radius = _borderRadiusFirst;
|
radius = _borderRadiusFirst;
|
||||||
|
|
Loading…
Reference in a new issue