https://www.growthbook.io/ logo
#sdk-flutter
Title
# sdk-flutter
r

ripe-notebook-55154

07/14/2022, 6:48 AM
Hi guys, I've just tried gb in flutter on my local machine, everything worked smoothly until the final thing: fetching features. I've got following exceptions in logs:
Copy code
[GrowthBook] GrowthBook initialized successfully.
[VERBOSE-2:<http://ui_dart_state.cc|ui_dart_state.cc>(198)] Unhandled Exception: LateInitializationError: Field 'data' has not been initialized.
#0      FeatureDataSource.data (package:growthbook_sdk_flutter/src/features/feature_data_source.dart)
package:growthbook_sdk_flutter/…/features/feature_data_source.dart:1
#1      FeatureDataSource.setUpModel
package:growthbook_sdk_flutter/…/features/feature_data_source.dart:34
#2      FeatureDataSource.fetchFeatures
package:growthbook_sdk_flutter/…/features/feature_data_source.dart:20
<asynchronous suspension>
#3      FeatureViewModel.fetchFeature
package:growthbook_sdk_flutter/…/features/features_view_model.dart:15
<asynchronous suspension>
#4      GrowthBookSDK.refresh
package:growthbook_sdk_flutter/src/growth_book_sdk.dart:142
<asynchronous suspension>
Any ideas? Maybe I've done something wrongly.
16 Views