{"id":15007181,"url":"https://github.com/rushio-consulting/all_platform_example","last_synced_at":"2025-04-09T15:54:12.759Z","repository":{"id":51004121,"uuid":"190794942","full_name":"rushio-consulting/all_platform_example","owner":"rushio-consulting","description":"Flutter example cross-platform application for mobile, desktop and web","archived":false,"fork":false,"pushed_at":"2019-10-06T20:54:38.000Z","size":75596,"stargazers_count":60,"open_issues_count":0,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-23T18:11:26.486Z","etag":null,"topics":["android","dart","flutter","ios","linux-app","macos-app","windows-app"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rushio-consulting.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-07T19:00:44.000Z","updated_at":"2024-07-20T04:18:56.000Z","dependencies_parsed_at":"2022-09-25T00:34:14.753Z","dependency_job_id":null,"html_url":"https://github.com/rushio-consulting/all_platform_example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushio-consulting%2Fall_platform_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushio-consulting%2Fall_platform_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushio-consulting%2Fall_platform_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rushio-consulting%2Fall_platform_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rushio-consulting","download_url":"https://codeload.github.com/rushio-consulting/all_platform_example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248064718,"owners_count":21041862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["android","dart","flutter","ios","linux-app","macos-app","windows-app"],"created_at":"2024-09-24T19:05:15.927Z","updated_at":"2025-04-09T15:54:12.729Z","avatar_url":"https://github.com/rushio-consulting.png","language":"C++","readme":"# All platform example\n\nThe repository goal is to provide an example of a cross-platform application (android, ios, linux, macos, windows, web) written in Flutter.\n\nIn this example we use API, that are different based on the platform, to save and load the value of the counter.\n\nWe use [Mobx.dart](https://pub.dev/packages/mobx) to manage the state of the application.\n\n**WARNING: this is highly experimental and subject to change/bug/crash at every time.**\n\nBlog post with the detail on how it work https://medium.com/@segaud.kevin/flutter-cross-platform-a2371fe790e7.\n\n## How can I launch the application\n\n### 1. Configuring Flutter\n\nYou will need to be on the master channel of Flutter\n\n```sh\nflutter channel master \u0026\u0026 flutter upgrade\n```\n\n### 2. Settings some env variable\n\nYou will need to set some environment variable to allow Flutter access new feature.\n\nFor linux :\n\n```sh\nexport ENABLE_FLUTTER_DESKTOP=true\nexport FLUTTER_WEB=true\nexport CHROME_EXECUTABLE=\"google-chrome\"\n```\n\nFor macos :\n\n```sh\nexport ENABLE_FLUTTER_DESKTOP=true\nexport FLUTTER_WEB=true\n```\n\n\nFor windows :\n\nTBD\n\n### 3. Launching the application\n\nYou can launch the application with F5 on vscode for desktop and mobile.\n\nIf you want to test the application on the web you will need to use the command line.\n\nsome example:\n\n\n\n- Linux\n```sh\nflutter run -d linux\n```\n\n- Web\n```sh\nflutter run -d web\n```\n\n- MacOs\n\n\n  CocoaPods needs to be installed. It is used to retrieve the iOS and macOS \n  platform side's plugin code that responds to your plugin usage on the Dart side.\n  Without CocoaPods, plugins will not work on iOS or macOS.\n  For more info, see https://flutter.dev/platform-plugins\n\n    To install CocoaPods:\n\n```sh\nbrew install cocoapods\npod setup\n```\nLaunch on mac:\n    \n```sh\nflutter run -d macos\n```\n\n### 4. Hm there is a bug :/\n\nIf you encounter a problem please create an issue [here](https://github.com/rushio-consulting/all_platform_example/issues/new?assignees=\u0026labels=\u0026template=bug_report.md\u0026title=) and we will see what we can do about it.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frushio-consulting%2Fall_platform_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frushio-consulting%2Fall_platform_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frushio-consulting%2Fall_platform_example/lists"}