{"id":45587957,"url":"https://github.com/appupgrade-dev/app_upgrade_flutter_demo_app","last_synced_at":"2026-02-23T11:55:58.634Z","repository":{"id":159117622,"uuid":"479838624","full_name":"appupgrade-dev/app_upgrade_flutter_demo_app","owner":"appupgrade-dev","description":"App Upgrade: Flutter Demo App is a sample flutter app integrated with App Upgrade Flutter SDK to demonstrate how Force upgrade works in flutter app.","archived":false,"fork":false,"pushed_at":"2023-11-14T16:04:30.000Z","size":1493,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-25T04:04:28.917Z","etag":null,"topics":["appupgrade","flutter","force-update","force-upgrade","forceupgrade"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appupgrade-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-09T20:39:59.000Z","updated_at":"2023-01-02T15:32:13.000Z","dependencies_parsed_at":"2023-11-14T17:24:52.023Z","dependency_job_id":"804153ad-dbc3-427f-bcc6-3af56e55298d","html_url":"https://github.com/appupgrade-dev/app_upgrade_flutter_demo_app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/appupgrade-dev/app_upgrade_flutter_demo_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appupgrade-dev%2Fapp_upgrade_flutter_demo_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appupgrade-dev%2Fapp_upgrade_flutter_demo_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appupgrade-dev%2Fapp_upgrade_flutter_demo_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appupgrade-dev%2Fapp_upgrade_flutter_demo_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appupgrade-dev","download_url":"https://codeload.github.com/appupgrade-dev/app_upgrade_flutter_demo_app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appupgrade-dev%2Fapp_upgrade_flutter_demo_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29741996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appupgrade","flutter","force-update","force-upgrade","forceupgrade"],"created_at":"2026-02-23T11:55:58.502Z","updated_at":"2026-02-23T11:55:58.624Z","avatar_url":"https://github.com/appupgrade-dev.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# App Upgrade: Flutter Demo App\r\n\r\n[App Upgrade: Flutter Demo App](https://github.com/appupgrade-dev/app_upgrade_flutter_demo_app) is a sample flutter app integrated with [App Upgrade Flutter SDK](https://pub.dev/packages/app_upgrade_flutter_sdk) to demonstrate how Force upgrade works in flutter app with [App Upgrade](https://appupgrade.dev).\r\n\r\nYou can find the flutter demo app integrated via API in [integration-via-api](https://github.com/appupgrade-dev/app_upgrade_flutter_demo_app/tree/integrate-via-api) branch.\r\n\r\n## Installation\r\n\r\nTo get started, clone the repo:\r\n\r\n`$ git clone https://github.com/appupgrade-dev/app_upgrade_flutter_demo_app`\r\n\r\n## Setup\r\n\r\n1. Once cloned, navigate to the `app_upgrade_flutter_demo_app` directory.\r\n\r\n   `$ cd app_upgrade_flutter_demo_app`\r\n\r\n2. Open the directory in your code editor.\r\n\r\n3. Open the `app_upgrade_flutter_demo_app/lib/main.dart` file, and replace required values in line 14-32\r\n   | Key                   | Value Description |\r\n   | -----------------------|-------------|\r\n   | `xApiKey`     | Your API Key. Required. |\r\n   | `appName`  | Your app name. Required. |\r\n   | `appVersion`  | Your app version. Required. |\r\n   | `platform`  | Your app platform, ex: android or iOS. Required. |\r\n   | `environment`  | Your app enviroment, ex: dev, stating, production. Required. |\r\n   | `appLanguage`  | Your app language, ex: en, es etc. Optional. |\r\n   | `preferredAndroidMarket`  | Your preferred android market, ex: amazon, huawei or other. Optional. |\r\n   | `otherAndroidMarketUrl`  | Other market place url from where update can be done. Optional. Required only if PreferredAndroidMarket is other |\r\n\r\nIf you want users to redirect to store other than app store or playstore. You can add these additional parameters in appInfo\r\n\r\n- preferredAndroidMarket: PreferredAndroidMarket.amazon // or PreferredAndroidMarket.huawei or PreferredAndroidMarket.other If not provided default is Google playstore.\r\nIf you want to redirect user to some other android market place you can add the following fields:\r\n\r\n- preferredAndroidMarket: PreferredAndroidMarket.other\r\n- otherAndroidMarketUrl: 'https://someotherandroidmarket.com/app/id'// Required if preferredAndroidMarket is other.\r\n\r\n   Example:\r\n\r\n   ```js\r\n    AppInfo appInfo = AppInfo(\r\n      appName: 'Wallpaper app', // Your app name\r\n      appVersion: '1.0.0', // Your app version\r\n      platform: 'android', // App Platform, android or ios\r\n      environment:\r\n          'production', // Environment in which app is running, production, staging or development etc.\r\n      appLanguage: 'es'    \r\n    );\r\n\r\n    return MaterialApp(\r\n      title: 'App Upgrade Flutter Demo App',\r\n      home: Scaffold(\r\n          appBar: AppBar(\r\n            title: Text('App Upgrade Flutter Demo App'),\r\n          ),\r\n          body: AppUpgradeAlert(\r\n            xApiKey:\r\n                'ZWY0ZDhjYjgtYThmMC00NTg5LWI0NmUtMjM5OWZkNjkzMzQ5', // Your x-api-key\r\n            appInfo: appInfo,\r\n            child: Center(child: Text('Hello World!')),\r\n          )),\r\n    );\r\n   ```\r\n\r\n4. Save `main.dart` file.\r\n\r\n## Run the app:\r\n   Start the app\r\n   `$ flutter run --no-sound-null-safety`\r\n\r\n## Usage:   \r\n\r\n1. Head to [App Upgrade](https://appupgrade.dev) and signup if not already.\r\n2. Create a new Project.\r\n3. Grab the API Key. You will need to provide the same in the required fields mentioned in above section.\r\n4. Create a new version with the required details and force upgrade field as selected. Make sure the details provided in version matches with the details provided in the App.js file.\r\n5. Refresh the app and you will be able to see a popup for force upgrade.\r\n6. Edit the version in dashboard with Force upgrade field unselected. Refresh the app and you will see a popup with soft upgrade with a button to upgrade later.\r\n \u003e For full details on how to use App Upgrade dashboard read our [Documentation](https://appupgrade.dev/docs)\r\n\r\n## Screenshots\r\n ![forceupgrade_flutter_sdk](https://raw.githubusercontent.com/appupgrade-dev/app-upgrade-assets/main/images/forceupgrade_flutter_sdk.png)\r\n\r\n## Need help?\r\n\r\nIf you're looking for help, try our [Documentation](https://appupgrade.dev/docs/) or our [FAQ](https://appupgrade.dev/docs/app-upgrade-faq).\r\nIf you need support please write to us at support@appupgrade.dev\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappupgrade-dev%2Fapp_upgrade_flutter_demo_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappupgrade-dev%2Fapp_upgrade_flutter_demo_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappupgrade-dev%2Fapp_upgrade_flutter_demo_app/lists"}