https://www.growthbook.io/ logo
Join Slack
Powered by
# sdk-flutter
  • b

    brief-honey-45610

    09/21/2023, 4:02 AM
    set the channel topic: Ask questions here related to the Flutter SDK.
  • b

    brief-honey-45610

    09/21/2023, 4:03 AM
    set the channel description: Ask questions here related to the Flutter SDK.
  • b

    bored-minister-1973

    03/05/2024, 3:57 AM
    Hi I have a doubt about your sdk connection environment and feature flag environment. if we want to have a feature in all of environments, does it matter if we define the sdk connection in dev or staging or production?
    f
    • 2
    • 3
  • s

    strong-gold-58160

    04/05/2024, 4:54 AM
    Hi Team, I am a flutter deleveloper I am trying to track SSE updates withought refresh appplication but its not working for me, can someone help me on the.Here is my code snippet. Do I need to add extra to get live updates?
  • s

    strong-gold-58160

    04/05/2024, 4:58 AM
    this is my GROWTHBOOK_HOST_URL=https://cdt-growthbook-proxy.fbm.maersk.com/ and I am skipping sseUrl since I am providing hostURL and api KEY
  • s

    strong-gold-58160

    04/08/2024, 10:25 AM
    Hi Team, Any updates?
  • c

    calm-dog-24239

    04/08/2024, 7:55 PM
    Hi, @strong-gold-58160, you need to use state management to solve this issue
  • g

    glamorous-florist-39551

    04/16/2024, 4:24 AM
    @gifted-cat-24658
  • g

    glamorous-florist-39551

    04/16/2024, 4:27 AM
    We will be updating the sdk with neww features real soon. Will keep everyone informed here.
  • s

    strong-gold-58160

    04/16/2024, 4:52 AM
    Thank you, please provide well documentation.
  • g

    glamorous-florist-39551

    04/16/2024, 8:54 AM
    Definitely. We also are very open to contributions of any form. So feel free to raise PRs.
  • c

    cool-apple-97384

    04/30/2024, 2:52 AM
    Hi I can't found github growthbook flutter repository for version 3.7.0. You all migrate the repository? I need some help, I can't import GBExperimentResult when use 3.7.0. Then, I found an issue when launch on Flutter Web, I want to fix this issue. But, for now I can't contribute to your repository. I see latest master commit is 8 month ago on https://github.com/alippo-com/GrowthBook-SDK-Flutter thanks. cc: @gifted-cat-24658 @glamorous-florist-39551 @fresh-football-47124
    c
    • 2
    • 10
  • c

    cool-apple-97384

    05/07/2024, 2:45 AM
    Hi @calm-dog-24239 I create a pull request, please to review my changes maybe you have any concern. If Growthbook team approved for my changes, I will merge the PR. Thanks. https://github.com/growthbook/growthbook-flutter/pull/13 cc: @fresh-football-47124
    🙌 1
    c
    • 2
    • 54
  • c

    cool-apple-97384

    07/03/2024, 12:28 AM
    Hi @calm-dog-24239 I have new pull request on your plugin, I got an issue when running Growthbook Flutter SDK on Flutter Web because in that platform we can't use
    dart:io
    . So, I try with another approach like shared preferences instead of file.
    🙌 1
    c
    • 2
    • 1
  • b

    brief-continent-41453

    07/09/2024, 1:42 PM
    @breezy-activity-86410 check this out
  • b

    breezy-activity-86410

    07/09/2024, 7:09 PM
    Hello, I am facing issue to fetch the feature flag in flutter app. Do anyone know how can I get the feature flag? I attached the SS of my GB feature which i am reading in the app using GB SDK.
    r
    b
    m
    • 4
    • 5
  • b

    breezy-activity-86410

    07/22/2024, 12:17 PM
    Help on feature flag. 🚨 I’ve implemented
    feature flag
    in flutter and reading the feature but it is not picking the value from
    Percentage Rollout
    instead it is showing me the default value of GB. Do anyone know or faced similar issue before? I am using
    growthbook_sdk_flutter: ^3.9.4
    . here is the code I shared above. https://growthbookusers.slack.com/archives/C038XP683NC/p1720552142529219 @most-spoon-61816 @brief-honey-45610
    m
    c
    +2
    • 5
    • 41
  • f

    flat-advantage-68891

    08/21/2024, 12:08 PM
    I am looking for guidance in terms of what the best approach is for implementing unit tests with the latest SDKs. In general it seems there needs to be support for the following. • a flag or something to enable a local mode during initialization (where it doesn't go out over the network) • a way to explicitly override a specific feature flag with a unit test (used during the setting up initial state portion of the test) • a way to clear all feature flag overrides (used in a hook before each test case to make sure we don't have state bleeding across tests) I am particularly interested in the Javascript, Ruby, and Flutter SDKs. Reading through the Flutter docs, https://docs.growthbook.io/lib/flutter and https://github.com/growthbook/growthbook-flutter, it isn't clear how we should be writing our unit tests when a feature flag is in play either. Again please provide any guidance.
  • t

    tall-glass-41437

    10/28/2024, 5:09 AM
    Hey All, I am new to Growthbook so this could be a simple change / fix. All works for all our sites but we now have one flutter app and our dev team has implemented the flutter code ( I am seeing a connected line from the flutter app to Growthbook within the SDK connection ) So my next step is going to setup an experiment but I am still not able to click on elements and change text in the Visual Editor is this a flutter issue / implementation issue / user issue or something else. Is there anyone that can help me setup an experiment?
    c
    • 2
    • 3
  • t

    tall-glass-41437

    11/21/2024, 6:04 AM
    I'm having issues writing an experiment for a flutter app. I am just wanting to break it down to an easy change such as a text change but can't find much documentation or starting points to get me going. I did try and get chatGPT to help me write something but I never got anything working. Is there some example experiments somewhere I couldn't see anything in the docs but hoping I missed it.
    c
    • 2
    • 15
  • f

    flaky-vase-27115

    12/04/2024, 5:56 PM
    Hello! I implemented the SDK without issues, feature flags are working properly, they update once it is changed in the dashboard, so all good there. The problem I am having is with the AB experiments, they simply are not showing up. I tested and debugged with 3 different feature flags, the experiments field/attribute in the feature flags never comes with data. Any ideas on what could be happening?
    f
    c
    m
    • 4
    • 81
  • b

    busy-window-96391

    12/13/2024, 8:38 AM
    Hello! Is there a way to retrieve features specific to the current project? For example, I have two projects under the same GrowthBook account, and they use different tags and different project name. Is it possible to initialize the GrowthBook SDK in a way that only loads features related to a specific app (maybe by tag or project name)? Can't find it in docs. Thank you!
    c
    • 2
    • 7
  • s

    strong-gold-58160

    12/17/2024, 7:16 AM
    Hi Team, our organisation is using Growthbook with streamline features, but we are facing starting trouble, If we pass backgroundSync: true, it takes lot of time to load the page and screen goes blank, I have to pass it as false first and later we have to pass it as true then only it works. This is my code snnippet, can someone help me to resolve this. gb = await GBSDKBuilderApp( hostURL: "", apiKey: "", growthBookTrackingCallBack: (exp, rst) {}, backgroundSync: true, ).setRefreshHandler((updated) { if (updated) { _fetchFeatureData(); } }).initialize(); await gb?.refresh().whenComplete(() => print(gb?.features().keys)); }
    c
    • 2
    • 8
  • s

    strong-gold-58160

    01/08/2025, 9:26 AM
    @calm-dog-24239, streaming with latestest version is working perfectly fine now, Thank you so much 🙌.
    🙌 2
    c
    • 2
    • 1
  • f

    fierce-teacher-22952

    04/09/2025, 6:07 AM
    Hi, I need help. The problem is that in this example growthBookTrackingCallBack is never called. For debug purpose I tried to call growthbook.run() explicitly - then growthBookTrackingCallBack is called. Experiment setup is to use 100% of traffic with no filtering. Environment and project is the same for test, sdk and feature.
    Untitled.dart
    c
    • 2
    • 20
  • b

    busy-window-96391

    04/09/2025, 1:27 PM
    Hey! I just noticed a small typo in docs for flutter sdk. backroundSync -> backgroundSync
    c
    • 2
    • 2
  • b

    busy-window-96391

    04/09/2025, 3:18 PM
    Hey team, 👋 I’ve encountered an issue with the GrowthBook SDK where calling the refresh() method temporarily resets feature values to their initial state. This results in incorrect or empty values during the refresh process. You can find the details and test the issue here: 👉 GitHub Issue - GrowthBook SDK Refresh Bug Please take a look when you can!
    c
    • 2
    • 3
  • q

    quiet-alligator-84919

    05/28/2025, 2:56 PM
    Hey team! I'm seeing an issue with a gated feature flag for certain mobileAppVersions still showing up for improper versions. Can someone help us triage the issue?
    c
    • 2
    • 2
  • b

    best-rain-36041

    07/01/2025, 11:53 AM
    Hey folks, I'm trying to figure out how real-time feature updates are working? how can I subscribe to the stream or listen to the feature changes?
    c
    • 2
    • 4
  • f

    flaky-noon-11399

    07/09/2025, 1:12 PM
    Hi Team, a customer is using version 3.9.10 and they're having an issue with remote evaluation using the GrowthBook SDK and are receiving all features with their default values. They noticed that this is being caused as evaluationContext is null aswell as the user attributes too. They are setting the user attributes during initialization in the correct syntax They have noticed that the initialize() method in the GrowthBook SDK doesn’t allow them to pass an evaluationContext. How should they handle evaluationContext for remote eval? It seems that remote eval doesnt get attributes parsed to the SDK. Should they be using secure attributes instead?
    c
    b
    • 3
    • 7