{"id":15633418,"url":"https://github.com/jban332/flutter2js","last_synced_at":"2025-04-14T16:34:16.931Z","repository":{"id":75742283,"uuid":"104352498","full_name":"jban332/flutter2js","owner":"jban332","description":"Builds web apps out of Flutter apps.","archived":false,"fork":false,"pushed_at":"2018-10-01T10:09:46.000Z","size":3054,"stargazers_count":157,"open_issues_count":1,"forks_count":10,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-03-28T05:12:36.535Z","etag":null,"topics":["dart","flutter","flutter2js"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jban332.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-21T13:35:54.000Z","updated_at":"2024-08-28T18:58:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"6955669c-7d41-4540-accb-7e08379bad93","html_url":"https://github.com/jban332/flutter2js","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/jban332%2Fflutter2js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jban332%2Fflutter2js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jban332%2Fflutter2js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jban332%2Fflutter2js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jban332","download_url":"https://codeload.github.com/jban332/flutter2js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248916927,"owners_count":21182895,"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":["dart","flutter","flutter2js"],"created_at":"2024-10-03T10:49:18.009Z","updated_at":"2025-04-14T16:34:16.895Z","avatar_url":"https://github.com/jban332.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/flutter2js/flutter2js.svg?branch=master)](https://travis-ci.com/flutter2js/flutter2js)\n[![Join Gitter Chat Channel -](https://badges.gitter.im/flutter2js/flutter2js.svg)](https://gitter.im/flutter2js/flutter2js?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n# Introduction\n\nFlutter2js is an experimental project that investigates feasibility of making\n[Flutter](https://flutter.io) apps run in browser using drawing primitives (canvas, CSS and SVG).\n\nLicensed under the [BSD 3-Clause License](LICENSE).\n\n## Implications of the approach\n\n__If the project gets drawing working__, the approach taken by this project (\"drawing, no HTML elements\") has the following implications:\n* All Flutter widgets will work.\n* Apps look (more or less) identical to iOS/Android.\n* Scrolling/animation performance is bad compared to web apps (but possibly acceptable).\n* Code size and accessibility are inevitably poor compared to normal web apps.\n\n## Status\n### Ready\n * [X] Flutter SDK and sample apps compile\n\n### Next\n * [ ] \"Hello world\"-like examples draw correctly\n * [ ] Mouse/tap handling\n\nYou can help!\n\n## Notes for developers\n* The project uses [dart2js](https://webdev.dartlang.org/tools/dart2js). Unfortunately [dartdevc](https://webdev.dartlang.org/tools/dartdevc) seems to have issues with Flutter SDK packages.\n\n# Getting started\n## Hello world\n### Clone Git repository\n```\ngit clone https://github.com/flutter2js/flutter2js\n```\n\n### Try \"Hello world\"\n```\ncd examples/hello_world-browser\npub get\npub run webdev serve\n```\n\nOpen browser at: _http://localhost:8080/main.html_\n\n# Technical details\n## Libraries from original Flutter SDK\nFlutter SDK libraries are derived from the original Flutter SDK.\n\nThese include:\n* _dart:ui_ ([original](https://github.com/flutter/engine/tree/master/lib/ui), [docs](https://docs.flutter.io/flutter/dart-ui/dart-ui-library.html))\n  * Because Pub doesn't allow overriding \"dart:something\" packages, it's exposed as \"package:flutter/ui.dart\".\n* _package:flutter_ ([original](https://github.com/flutter/flutter/tree/master/packages/flutter), [docs](https://docs.flutter.io/flutter/flutter/flutter-library.html))\n* _package:flutter_localization_ ([original](https://github.com/flutter/flutter/tree/master/packages/flutter), [docs](https://docs.flutter.io/flutter/flutter_localization/flutter_localization-library.html))\n* _package:flutter_test_ ([original](https://github.com/flutter/flutter/tree/master/packages/flutter_test), [docs](https://docs.flutter.io/flutter/flutter_test/flutter_test-library.html))\n\nThe modifications include:\n* Many classes in _dart:ui_ such as _Canvas_ delegate implementation to _package:flutter2js_ or expose previously private/external fields.\n* Eliminated usage of language features not supported by _dart2js_:\n  * Assertions in initializers. After dart2js started to support them, this became unnecessary.\n  * Some mixins ([issue #23770](https://github.com/dart-lang/sdk/issues/23770))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjban332%2Fflutter2js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjban332%2Fflutter2js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjban332%2Fflutter2js/lists"}