tx list styling fix for single tx

This commit is contained in:
julian 2023-01-05 12:52:14 -06:00
parent 915458dbf3
commit 3d6d3d5d45

View file

@ -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;