File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 66
77#include " generated_plugin_registrant.h"
88
9+ #include < cloud_firestore/cloud_firestore_plugin_c_api.h>
10+ #include < firebase_core/firebase_core_plugin_c_api.h>
911
1012void RegisterPlugins (flutter::PluginRegistry* registry) {
13+ CloudFirestorePluginCApiRegisterWithRegistrar (
14+ registry->GetRegistrarForPlugin (" CloudFirestorePluginCApi" ));
15+ FirebaseCorePluginCApiRegisterWithRegistrar (
16+ registry->GetRegistrarForPlugin (" FirebaseCorePluginCApi" ));
1117}
Original file line number Diff line number Diff line change 33#
44
55list (APPEND FLUTTER_PLUGIN_LIST
6+ cloud_firestore
7+ firebase_core
68)
79
810list (APPEND FLUTTER_FFI_PLUGIN_LIST
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ class _FirestorePaginationState extends State<FirestorePagination> {
206206 );
207207
208208 _isFetching = false ;
209- if (! _isEnded && ! isDocRemoved) {
209+ if (! isDocRemoved) {
210210 _isEnded = snapshot.docs.length < docsLimit;
211211 }
212212
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ class _RealtimeDBPaginationState extends State<RealtimeDBPagination> {
224224 final isDataRemoved = snapshot.type == DatabaseEventType .childRemoved;
225225
226226 _isFetching = false ;
227- if (! _isEnded && ! isDataRemoved) {
227+ if (! isDataRemoved) {
228228 _isEnded = snapshot.snapshot.children.length < docsLimit;
229229 }
230230
You can’t perform that action at this time.
0 commit comments