feat: add canonical name endpoint and update product renaming functionality in admin panel
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -677,9 +677,7 @@ class _ReceiptImportTabState extends ConsumerState<ReceiptImportTab> {
|
||||
final selectedFileName = _pickedFile?.name ?? session?.fileName;
|
||||
final selectedFileSizeBytes =
|
||||
_pickedFile?.size ?? session?.fileBytes?.length;
|
||||
final resultListHeight = items == null
|
||||
? 0.0
|
||||
: (items.length * 128.0).clamp(220.0, 620.0).toDouble();
|
||||
|
||||
|
||||
return SingleChildScrollView(
|
||||
padding: const EdgeInsets.all(16),
|
||||
@@ -755,12 +753,12 @@ class _ReceiptImportTabState extends ConsumerState<ReceiptImportTab> {
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
SizedBox(
|
||||
height: resultListHeight,
|
||||
child: ListView.builder(
|
||||
key: const PageStorageKey<String>('receipt-import-result-list'),
|
||||
itemCount: items.length,
|
||||
itemBuilder: (context, i) {
|
||||
ListView.builder(
|
||||
key: const PageStorageKey<String>('receipt-import-result-list'),
|
||||
shrinkWrap: true,
|
||||
physics: const NeverScrollableScrollPhysics(),
|
||||
itemCount: items.length,
|
||||
itemBuilder: (context, i) {
|
||||
return _ReceiptImportResultRow(
|
||||
index: i,
|
||||
item: items[i],
|
||||
@@ -782,7 +780,6 @@ class _ReceiptImportTabState extends ConsumerState<ReceiptImportTab> {
|
||||
matchedViaBadgeBuilder: _buildMatchedViaBadge,
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user