{"id":13548656,"url":"https://github.com/brocodev/nasa_app_challenge","last_synced_at":"2025-04-02T21:32:02.717Z","repository":{"id":227315156,"uuid":"771077850","full_name":"brocodev/nasa_app_challenge","owner":"brocodev","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-10T09:42:30.000Z","size":6611,"stargazers_count":9,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-03T17:40:04.784Z","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/brocodev.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":"2024-03-12T16:42:06.000Z","updated_at":"2024-05-29T11:39:15.000Z","dependencies_parsed_at":"2024-03-18T12:06:48.183Z","dependency_job_id":"db4c8ea1-a8fe-42c7-a6a7-5f2e741a8f6e","html_url":"https://github.com/brocodev/nasa_app_challenge","commit_stats":null,"previous_names":["brocodev/nasa_app_challenge"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brocodev%2Fnasa_app_challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brocodev%2Fnasa_app_challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brocodev%2Fnasa_app_challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brocodev%2Fnasa_app_challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brocodev","download_url":"https://codeload.github.com/brocodev/nasa_app_challenge/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246895863,"owners_count":20851339,"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-08-01T12:01:12.953Z","updated_at":"2025-04-02T21:32:01.187Z","avatar_url":"https://github.com/brocodev.png","language":"Dart","readme":"# Nasa App Challenge\n\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\nGenerated by the [Very Good CLI][very_good_cli_link] 🤖\n\nA Very Good Project created by Very Good CLI.\n\n---\n\n## Getting Started 🚀\n\nDownload the project dependencies and run the commands to generate the necessary code.\n\n```sh\n# ui_common\n$ cd packages/ui_common \u0026\u0026 flutter pub get \u0026\u0026 dart run build_runner build -d\n\n# nasa_core\n$ cd ../nasa_core \u0026\u0026 flutter pub get \u0026\u0026 flutter packages pub run build_runner build -d\n\n# nasa_api\n$ cd ../nasa_api \u0026\u0026 flutter pub get\n\n# app\n$ cd ../../ \u0026\u0026 flutter pub get \u0026\u0026 flutter pub get \u0026\u0026 dart run build_runner build -d\n```\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\n$ flutter run --flavor development --target lib/main_development.dart --dart-define NASA_API_KEY=DEMO_KEY\n\n# Staging\n$ flutter run --flavor staging --target lib/main_staging.dart --dart-define NASA_API_KEY=DEMO_KEY\n\n# Production\n$ flutter run --flavor production --target lib/main_production.dart --dart-define NASA_API_KEY=DEMO_KEY\n```\n\n_\\*To create your own API_KEY consult the documentation at https://api.nasa.gov/._\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:nasa_app_challenge/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 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\u003ees\u003c/string\u003e\n\t\u003c/array\u003e\n\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### Generating Translations\n\nTo use the latest translations changes, you will need to generate them:\n\n1. Generate localizations for the current project:\n\n```sh\nflutter gen-l10n --arb-dir=\"lib/l10n/arb\"\n```\n\nAlternatively, run `flutter run` and code generation will take place automatically.\n\n[coverage_badge]: coverage_badge.svg\n[flutter_localizations_link]: https://api.flutter.dev/flutter/flutter_localizations/flutter_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[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","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrocodev%2Fnasa_app_challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrocodev%2Fnasa_app_challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrocodev%2Fnasa_app_challenge/lists"}