We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll infintely on mobile platform too. I had tested on web and worked very well.
return PlutoGrid( mode: PlutoGridMode.selectWithOneTap, createFooter: (stateManager) { return PlutoInfinityScrollRows( fetch: fetch, stateManager: stateManager, initialFetch: true, fetchWithFiltering: true, fetchWithSorting: true, ); }, onLoaded: (event) { store.setListExportStateManager(event.stateManager); }, onSelected: (event) { if (event.row?.cells['isFinished']?.value) { _showMenu( context: context, uuid: event.row?.cells['uuid']?.value, ); } }, configuration: const PlutoGridConfiguration( localeText: PlutoGridLocaleText.brazilianPortuguese(), ), columns: GridListExportMobile()._columns, rows: GridListExportMobile().rows( export: store.listExport, ), ); Future<PlutoInfinityScrollRowsResponse> fetch( PlutoInfinityScrollRowsRequest request, ) async { final store = GetIt.I.get<ListExportsStore>(); final filterModel = { if (store.startDate != null && store.endDate != null) "startDate": FilterModelDart( filterType: 'dateTime', type: 'inRange', dateFrom: store.startDate?.startDateFormattedToBack, dateTo: store.endDate?.endDateFormattedToBack, ).toJson(), if (store.startDate != null) "startDate": FilterModelDart( filterType: 'dateTime', type: 'greaterThanOrEqual', dateFrom: store.startDate?.startDateFormattedToBack, ).toJson(), if (store.uuid != null && store.uuid!.isNotEmpty) "uuid": FilterModelDart( type: 'equals', filterType: 'text', filter: store.uuid, ).toJson(), if (store.cpf != null && store.cpf!.isNotEmpty) "createPerson.code": FilterModelDart( type: 'equals', filterType: 'text', filter: store.cpf != null ? UtilBrasilFields.removeCaracteres(store.cpf!) : null, ).toJson(), }; final repository = GetIt.I.get<ExportRepository>(); final result = await repository.exportList({ "startRow": request.filterRows.length * 10, "endRow": request.filterRows.length * 10, "sortModel": [ {"sort": "desc", "colId": "startDate"} ], "filterModel": filterModel, }); final rows = (result['rowData'] as List) .map((e) => ExportModelResponse.fromJson(e)) .toList(); return PlutoInfinityScrollRowsResponse( isLast: false, rows: GridListExportMobile().rows(export: rows), ); }
Flutter version
PlutoGrid version
OS
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 30 days with no activity.
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce the bug
Expected results
Scroll infintely on mobile platform too. I had tested on web and worked very well.
Actual results
Gravacao.de.Tela.2024-04-15.as.15.39.36.mov
Code sample
Execution Environment
Flutter version
PlutoGrid version
OS
The text was updated successfully, but these errors were encountered: