made better scroll for reports page #736
@@ -641,7 +641,7 @@
|
|||||||
},
|
},
|
||||||
"noFee": "Без оплаты",
|
"noFee": "Без оплаты",
|
||||||
|
|
||||||
"recipientWillReceive": "Получатель получит: {amount}",
|
"recipientWillReceive": "Получателю поступит: {amount}",
|
||||||
"@recipientWillReceive": {
|
"@recipientWillReceive": {
|
||||||
"description": "Метка, показывающая, сколько получит получатель",
|
"description": "Метка, показывающая, сколько получит получатель",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
|
|||||||
@@ -25,14 +25,11 @@ class OperationsCardsList extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final loc = AppLocalizations.of(context)!;
|
final loc = AppLocalizations.of(context)!;
|
||||||
final items = buildOperationCardItems(
|
final items = buildOperationCardItems(context, operations, onTap: onTap);
|
||||||
context,
|
|
||||||
operations,
|
|
||||||
onTap: onTap,
|
|
||||||
);
|
|
||||||
|
|
||||||
if (operations.isEmpty) {
|
if (operations.isEmpty) {
|
||||||
return Expanded(
|
return Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(vertical: 32),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
loc.reportPaymentsEmpty,
|
loc.reportPaymentsEmpty,
|
||||||
@@ -43,8 +40,9 @@ class OperationsCardsList extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final extraItems = loadMoreState == LoadMoreState.hidden ? 0 : 1;
|
final extraItems = loadMoreState == LoadMoreState.hidden ? 0 : 1;
|
||||||
return Expanded(
|
return ListView.builder(
|
||||||
child: ListView.builder(
|
shrinkWrap: true,
|
||||||
|
physics: const NeverScrollableScrollPhysics(),
|
||||||
itemCount: items.length + extraItems,
|
itemCount: items.length + extraItems,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
if (index < items.length) {
|
if (index < items.length) {
|
||||||
@@ -59,15 +57,10 @@ class OperationsCardsList extends StatelessWidget {
|
|||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 16),
|
padding: const EdgeInsets.symmetric(vertical: 16),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: TextButton(
|
child: TextButton(onPressed: onLoadMore, child: Text(loc.loadMore)),
|
||||||
onPressed: onLoadMore,
|
|
||||||
child: Text(loc.loadMore),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class OperationHistoryContent extends StatelessWidget {
|
|||||||
final operations = controller.operations;
|
final operations = controller.operations;
|
||||||
final filteredOperations = controller.filteredOperations;
|
final filteredOperations = controller.filteredOperations;
|
||||||
|
|
||||||
return Padding(
|
return SingleChildScrollView(
|
||||||
padding: const EdgeInsets.all(16.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
|
|||||||
Reference in New Issue
Block a user