{"id":13495164,"url":"https://github.com/flutter/pinball","last_synced_at":"2025-05-14T05:04:41.917Z","repository":{"id":37541618,"uuid":"462900266","full_name":"flutter/pinball","owner":"flutter","description":"Google I/O 2022 Pinball game built with Flutter and Firebase","archived":false,"fork":false,"pushed_at":"2024-12-06T06:51:05.000Z","size":101316,"stargazers_count":2253,"open_issues_count":14,"forks_count":258,"subscribers_count":66,"default_branch":"main","last_synced_at":"2025-04-10T23:59:50.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":false,"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/flutter.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":"2022-02-23T20:47:03.000Z","updated_at":"2025-04-08T03:20:41.000Z","dependencies_parsed_at":"2024-12-11T21:02:49.098Z","dependency_job_id":null,"html_url":"https://github.com/flutter/pinball","commit_stats":{"total_commits":527,"total_committers":16,"mean_commits":32.9375,"dds":0.7628083491461101,"last_synced_commit":"479868284a83c2421203afbafa48ccd82b7e1fe4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter%2Fpinball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter%2Fpinball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter%2Fpinball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flutter%2Fpinball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flutter","download_url":"https://codeload.github.com/flutter/pinball/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076467,"owners_count":22010611,"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":[],"created_at":"2024-07-31T19:01:31.880Z","updated_at":"2025-05-14T05:04:41.859Z","avatar_url":"https://github.com/flutter.png","language":"Dart","readme":"# I/O Pinball\n\n[![Pinball Header][logo]][pinball_link]\n\n[![io_pinball][build_status_badge]][workflow_link]\n![coverage][coverage_badge]\n[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]\n[![License: MIT][license_badge]][license_link]\n\nA Pinball game built with [Flutter][flutter_link] and [Firebase][firebase_link] for [Google I/O 2022][google_io_link].\n\n[Try it now][pinball_link] and [learn about how it's made][blog_link].\n\n_Built by [Very Good Ventures][very_good_ventures_link] in partnership with Google_\n\n_Created using [Very Good CLI][very_good_cli_link] 🤖_\n\n---\n\n## Getting Started 🚀\n\n### Firebase\nFirst, please create a Firebase project for development. \nAfter you create your project, remember to activate the following features:\n    - **Authentication** with the **anonymous** option\n    - **Firestore** with the rules in firestore.rules.\n\nNext, use the instructions on [Firebase website](https://firebase.google.com/docs/flutter/setup?platform=web) to set up the **flutterfire_cli**.\n\nAllow it to override the **lib/firebase_options.dart** file with your project settings.\n\n### Running locally\nTo run the desired project either use the launch configuration in VSCode/Android Studio or use the following commands:\n\n```sh\n$ flutter run -d chrome\n```\n\n_\\*I/O Pinball works on Web for desktop and mobile._\n\n---\n\n## Running Tests 🧪\n\nTo run all unit and widget tests use the following command:\n\n```sh\n$ flutter test --coverage --test-randomize-ordering-seed random\n```\n\nTo view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov).\n\n```sh\n# Generate Coverage Report\n$ genhtml coverage/lcov.info -o coverage/\n# Open Coverage Report\n$ open coverage/index.html\n```\n\n---\n\n## Working with Translations 🌐\n\nThis project relies on [flutter_localizations][flutter_localizations_link] and follows the [official internationalization guide for Flutter][internationalization_link].\n\n### Adding Strings\n\n1. To add a new localizable string, open the `app_en.arb` file at `lib/l10n/arb/app_en.arb`.\n\n```arb\n{\n    \"@@locale\": \"en\",\n    \"counterAppBarTitle\": \"Counter\",\n    \"@counterAppBarTitle\": {\n        \"description\": \"Text shown in the AppBar of the Counter Page\"\n    }\n}\n```\n\n2. Then add a new key/value and description\n\n```arb\n{\n    \"@@locale\": \"en\",\n    \"counterAppBarTitle\": \"Counter\",\n    \"@counterAppBarTitle\": {\n        \"description\": \"Text shown in the AppBar of the Counter Page\"\n    },\n    \"helloWorld\": \"Hello World\",\n    \"@helloWorld\": {\n        \"description\": \"Hello World Text\"\n    }\n}\n```\n\n3. Use the new string\n\n```dart\nimport 'package:pinball/l10n/l10n.dart';\n\n@override\nWidget build(BuildContext context) {\n  final l10n = context.l10n;\n  return Text(l10n.helloWorld);\n}\n```\n\n### Adding Translations\n\n1. For each supported locale, add a new ARB file in `lib/l10n/arb`.\n\n```\n├── l10n\n│   ├── arb\n│   │   ├── app_en.arb\n│   │   └── app_es.arb\n```\n\n2. Add the translated strings to each `.arb` file:\n\n`app_en.arb`\n\n```arb\n{\n    \"@@locale\": \"en\",\n    \"counterAppBarTitle\": \"Counter\",\n    \"@counterAppBarTitle\": {\n        \"description\": \"Text shown in the AppBar of the Counter Page\"\n    }\n}\n```\n\n`app_es.arb`\n\n```arb\n{\n    \"@@locale\": \"es\",\n    \"counterAppBarTitle\": \"Contador\",\n    \"@counterAppBarTitle\": {\n        \"description\": \"Texto mostrado en la AppBar de la página del contador\"\n    }\n}\n```\n\n[build_status_badge]: https://github.com/flutter/pinball/actions/workflows/main.yaml/badge.svg\n[coverage_badge]: coverage_badge.svg\n[firebase_link]: https://firebase.google.com/\n[flutter_link]: https://flutter.dev\n[flutter_localizations_link]: https://api.flutter.dev/flutter/flutter_localizations/flutter_localizations-library.html\n[google_io_link]: https://events.google.com/io/\n[blog_link]: https://medium.com/flutter/i-o-pinball-powered-by-flutter-and-firebase-d22423f3f5d\n[internationalization_link]: https://flutter.dev/docs/development/accessibility-and-localization/internationalization\n[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[license_link]: https://opensource.org/licenses/MIT\n[logo]: art/readme_header.png\n[pinball_link]: https://pinball.flutter.dev\n[very_good_analysis_badge]: https://img.shields.io/badge/style-very_good_analysis-B22C89.svg\n[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis\n[very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli\n[very_good_ventures_link]: https://verygood.ventures/\n[workflow_link]: https://github.com/flutter/pinball/actions/workflows/main.yaml\n","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutter%2Fpinball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflutter%2Fpinball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflutter%2Fpinball/lists"}