{"id":25895393,"url":"https://github.com/fres-sudo/pocket_flutter","last_synced_at":"2026-05-12T17:38:18.454Z","repository":{"id":279637218,"uuid":"939442557","full_name":"fres-sudo/pocket_flutter","owner":"fres-sudo","description":"Flutter + Pocket Base 🧳 Starter Kit","archived":false,"fork":false,"pushed_at":"2025-02-26T15:28:57.000Z","size":313,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T16:34:28.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/fres-sudo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-26T14:50:03.000Z","updated_at":"2025-02-26T15:29:01.000Z","dependencies_parsed_at":"2025-02-26T16:35:34.784Z","dependency_job_id":"9015c6ec-955c-4936-b18d-18a4e53829e4","html_url":"https://github.com/fres-sudo/pocket_flutter","commit_stats":null,"previous_names":["fres-sudo/pocket_flutter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fres-sudo/pocket_flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fres-sudo%2Fpocket_flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fres-sudo%2Fpocket_flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fres-sudo%2Fpocket_flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fres-sudo%2Fpocket_flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fres-sudo","download_url":"https://codeload.github.com/fres-sudo/pocket_flutter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fres-sudo%2Fpocket_flutter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27282327,"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","status":"online","status_checked_at":"2025-11-26T02:00:06.075Z","response_time":193,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-02T22:31:08.610Z","updated_at":"2025-11-27T17:09:04.346Z","avatar_url":"https://github.com/fres-sudo.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PocketFlutter\n\n![Dart CI](https://github.com/fres-sudo/pocket_flutter/workflows/Dart%20CI/badge.svg)\n[![Star on GitHub](https://img.shields.io/github/stars/fres-sudo/pocket_flutter.svg?style=flat\u0026logo=github\u0026colorB=deeppink\u0026label=stars)](https://github.com/fres-sudo/pocket_flutter)\n[![License: MIT][license_badge]][license_link]\n\n## Table of content\n\n- [PocketFlutter](#project_name)\n  - [Table of content](#table-of-content)\n  - [Getting Started 🚀](#getting-started-)\n    - [FVM](#fvm)\n  - [Routing with Auto Route 🧭](#rougin-with-auto-route-)\n  - [Running Tests 🧪](#running-tests-)\n  - [Working with Translations 🌐](#working-with-translations-)\n    - [Adding Strings](#adding-strings)\n    - [Adding Supported Locales](#adding-supported-locales)\n    - [Adding Translations](#adding-translations)\n\n---\n\n## Getting Started 🚀\n\n### FVM\n\nThis project uses FVM. In order to use the proper version of Flutter for this project, you must have installed [package:fvm](https://fvm.app/docs/getting_started/installation).\n\nAll `flutter` and `dart` commands must be run under the `fvm` command to use the proper version (examples below).\n\nTo install the proper version of Flutter, run the following command:\n\n```sh\nfvm install\n```\n\n### Flavors\n\nThis project contains 3 flavors:\n\n- development\n- staging\n- production\n\nTo run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:\n\n```sh\n# Development\nfvm flutter run --flavor development --target lib/main_development.dart\n\n# Staging\nfvm flutter run --flavor staging --target lib/main_staging.dart\n\n# Production\nfvm flutter run --flavor production --target lib/main_production.dart\n```\n\n_\\*PocketFlutter works on iOS, Android, Web, Windows, Linux and MacOs._\n\n---\n\n## Routing with Auto Route 🧭\n\nThis project uses [package:auto_route](https://pub.dev/packages/auto_route) for routing. You must use the package's API for navigating between pages. Read the [documentation](https://pub.dev/documentation/auto_route/latest/) for more information.\n\nTo generate the routes run the following command:\n\n```sh\nfvm dart run build_runner build --delete-conflicting-outputs\n```\n\nTo watch for changes run the following command:\n\n```sh\nfvm dart run build_runner watch --delete-conflicting-outputs\n```\n\nIn order to generate a new route, add a new page and add the `@RoutePage()` annotation to the page.\n\n```dart\n@RoutePage()\nclass NewPage extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return const Placeholder();\n  }\n}\n```\n\nEnsure that the build_runner is running to generate the new routes, and add the new route to the `routes/app_router.dart` file.\n\n```dart\n@AutoRouterConfig()\nclass AppRouter extends RootStackRouter {\n  @override\n  List\u003cAutoRoute\u003e get routes =\u003e [\n    // existing routes...\n    AutoRoute(page: NewRoute.page) // or CustomRoute(transitionsBuilder: TransitionsBuilders.fadeIn, page: NewRoute.page)\n  ];\n```\n\n---\n\n## Running Tests 🧪\n\nTo run all unit and widget tests use the following command:\n\n```sh\nfvm flutter test --coverage --test-randomize-ordering-seed random\n```\n\n---\n\n## Working with Translations 🌐\n\nThis project relies on [slang][flutter_localizations_link] for Internationalization.\n\n### Adding Strings\n\n1. To add a new localizable string, open the `en.i18n.json` file at `lib/i18n/en.i18n.json`.\n\n```json\n{\n\t\"title\": \"Counter\",\n\t\"description\": \"Description of Counter\"\n}\n```\n\n2. Then add a new key/value\n\n```json\n{\n\t\"title\": \"Counter\",\n\t\"description\": \"Description of Counter\",\n\t\"new_key\": \"New Value\" // add the new string\n}\n```\n\n3. Use the new string\n\n```dart\nimport 'package:pocket_flutter/i18n/strings.g.dart';\n\n@override\nWidget build(BuildContext context) {\n  return Text(t.new_key);\n}\n```\n\n### Adding Supported Locales\n\nUpdate the `CFBundleLocalizations` array in the `Info.plist` at `ios/Runner/Info.plist` to include the new locale.\n\n```xml\n    ...\n\n  \u003ckey\u003eCFBundleLocalizations\u003c/key\u003e\n\t\u003carray\u003e\n\t\t\u003cstring\u003een\u003c/string\u003e\n\t\t\u003cstring\u003eit\u003c/string\u003e\n\t\u003c/array\u003e\n\n    ...\n```\n\n### Adding Translations\n\n1. For each supported locale, add a new `JSON`/`YAML`/`CSV`/`ARB` file in `lib/i18n/[locale].i18n.json`.\n\n```\n├── i18n\n│   ├── arb\n│   │   ├── en.i18n.json\n│   │   └── it.i18n.json\n```\n\n2. Add the translated strings to each `.json` file:\n\n`en.i18n.json`\n\n```json\n{\n\t\"title\": \"Counter\",\n\t\"description\": \"Description of Counter\"\n}\n```\n\n`it.i18n.json`\n\n```json\n{\n\t\"title\": \"Contatore\",\n\t\"description\": \"Descrizione del Contatore\"\n}\n```\n\n### Generate Translations\n\nTo generate the translations run the following command:\n\n```sh\nfvm dart pub run slang\n```\n\nThis command will generate:\n\n```\n├── i18n\n│   ├── strings_en.g.dart\n│   ├── strings_it.g.dart\n│   └── strings.g.dart\n```\n\n##### _made with ❤️ by Fres_\n\n[coverage_badge]: coverage_badge.svg\n[flutter_localizations_link]: https://pub.dev/packages/slangflutter_localizations-library.html\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffres-sudo%2Fpocket_flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffres-sudo%2Fpocket_flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffres-sudo%2Fpocket_flutter/lists"}