Skip to content

Commit 7c545e5

Browse files
committed
chore: Update example with getFeatureFlagResult
1 parent 264b167 commit 7c545e5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

example/lib/main.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,16 @@ class InitialScreenState extends State<InitialScreen> {
393393
},
394394
child: const Text("getFeatureFlagPayload"),
395395
),
396+
ElevatedButton(
397+
onPressed: () async {
398+
final result = await _posthogFlutterPlugin
399+
.getFeatureFlagResult("feature_name");
400+
setState(() {
401+
_result = result?.toString();
402+
});
403+
},
404+
child: const Text("getFeatureFlagResult"),
405+
),
396406
ElevatedButton(
397407
onPressed: () async {
398408
await _posthogFlutterPlugin.reloadFeatureFlags();

0 commit comments

Comments
 (0)