mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +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(
|
||||
itemBuilder: (context, index) {
|
||||
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;
|
||||
} else if (index == 0) {
|
||||
radius = _borderRadiusFirst;
|
||||
|
@ -270,7 +274,11 @@ class _TransactionsListState extends ConsumerState<TransactionsList> {
|
|||
itemCount: list.length,
|
||||
itemBuilder: (context, index) {
|
||||
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;
|
||||
} else if (index == 0) {
|
||||
radius = _borderRadiusFirst;
|
||||
|
|
Loading…
Reference in a new issue