Installation
Follow the below steps to start installing Flutter SDK package to your app1
Install the SDK package
Install package using flutter:This will add a line like this to your package’s pubspec.yaml (and run an implicit Alternatively, your editor might support
flutter pub get):flutter pub get. Check the docs for your editor to learn more.2
Add Internet Permission
Make sure that you added the INTERNET permission in your application’s AndroidManifest.xml and info.plist files
To install Firebase Google Play Services dependencies
Firebase is an integral dependency to the sdk, you’ll have to include the following dependencies in your project’s pubspec.yaml fileflutter pub get command.
It is also required to have a Firebase project configured and linked to your project, follow this tutorial on how to integrate with Firebase.
Initialization
To create a GameballApp instance you need to call the getInstance method.Initialize GameballApp Instance
To initialize GameballApp instance in your application class, use the init method which takes the following parameters (replace the braces with your values)The API key of the Client account
The language that the SDK should be initialized with (based on the Client’s configuration)
Store name with myshopify.com domain. Used if your app is a mobile app for a Shopify store connected to Gameball
The platform you application used:
ShopifySallaany
Profile Languages
For websites with multiple languages, how you can change Gameball widget language based on active website language. Gameball supports multiple languages for the customer profile widget. The widget language can be changed based on your customer’s active language on the website.Learn how you can configure the languages on your Gameball account through this article.
lang variable in the code snippet.