{"id":18456390,"url":"https://github.com/nicosnicolaou16/securedataflutter","last_synced_at":"2025-10-31T07:32:01.424Z","repository":{"id":215071019,"uuid":"737121598","full_name":"NicosNicolaou16/SecureDataFlutter","owner":"NicosNicolaou16","description":"This example project tested how we keep secure the data in Flutter, example, api key(s).","archived":false,"fork":false,"pushed_at":"2024-11-08T21:31:59.000Z","size":106,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-25T05:13:29.929Z","etag":null,"topics":["dart","flutter","flutter-app","flutter-example","secure","secure-api-key"],"latest_commit_sha":null,"homepage":"","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/NicosNicolaou16.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":"2023-12-29T22:15:31.000Z","updated_at":"2024-11-09T10:46:21.000Z","dependencies_parsed_at":"2024-01-05T20:32:47.706Z","dependency_job_id":"1f1f6ce3-03af-4c36-8f3e-6820633ac545","html_url":"https://github.com/NicosNicolaou16/SecureDataFlutter","commit_stats":null,"previous_names":["nicosnicolaou16/securedataflutter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicosNicolaou16%2FSecureDataFlutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicosNicolaou16%2FSecureDataFlutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicosNicolaou16%2FSecureDataFlutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicosNicolaou16%2FSecureDataFlutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NicosNicolaou16","download_url":"https://codeload.github.com/NicosNicolaou16/SecureDataFlutter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239144183,"owners_count":19589166,"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","flutter-app","flutter-example","secure","secure-api-key"],"created_at":"2024-11-06T08:11:22.566Z","updated_at":"2025-10-31T07:32:01.416Z","avatar_url":"https://github.com/NicosNicolaou16.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secure Data Flutter\n\n[![Linktree](https://img.shields.io/badge/linktree-1de9b6?style=for-the-badge\u0026logo=linktree\u0026logoColor=white)](https://linktr.ee/nicos_nicolaou)\n[![Static Badge](https://img.shields.io/badge/Site-blue?style=for-the-badge\u0026label=Web)](https://nicosnicolaou16.github.io/)\n[![X](https://img.shields.io/badge/X-%23000000.svg?style=for-the-badge\u0026logo=X\u0026logoColor=white)](https://twitter.com/nicolaou_nicos)\n[![LinkedIn](https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://linkedin.com/in/nicos-nicolaou-a16720aa)\n[![Medium](https://img.shields.io/badge/Medium-12100E?style=for-the-badge\u0026logo=medium\u0026logoColor=white)](https://medium.com/@nicosnicolaou)\n[![Mastodon](https://img.shields.io/badge/-MASTODON-%232B90D9?style=for-the-badge\u0026logo=mastodon\u0026logoColor=white)](https://androiddev.social/@nicolaou_nicos)\n[![Bluesky](https://img.shields.io/badge/Bluesky-0285FF?style=for-the-badge\u0026logo=Bluesky\u0026logoColor=white)](https://bsky.app/profile/nicolaounicos.bsky.social)\n[![Dev.to blog](https://img.shields.io/badge/dev.to-0A0A0A?style=for-the-badge\u0026logo=dev.to\u0026logoColor=white)](https://dev.to/nicosnicolaou16)\n[![YouTube](https://img.shields.io/badge/YouTube-%23FF0000.svg?style=for-the-badge\u0026logo=YouTube\u0026logoColor=white)](https://www.youtube.com/@nicosnicolaou16)\n[![Static Badge](https://img.shields.io/badge/Developer_Profile-blue?style=for-the-badge\u0026label=Google)](https://g.dev/nicolaou_nicos)\n\nThis example project tests how we secure data in Flutter, such as API keys.\n\n# Steps\n\n1) Create the `.env` file inside the main directory.\n2) Create the `env.dart` file.\n3) For static variable ```static String apiKey = _Env``` and run the new command (the old one\n   deprecated) `dart run build_runner build` or\n   `dart run build_runner build--delete-conflicting-outputs`.\n4) Generated.\n5) Add the Key ```static String apiKey = _Env.apiKey```.\n\n### Important Note:\n\nFor this example, keep the files with dummy/test API keys, but for a real project, you should add\nthem to the `.gitignore` file.\n\n### Commands for Generation\n\n`dart run build_runner build` or `dart run build_runner build --delete-conflicting-outputs`\n\n## Versioning\n\nFlutter SDK version: 3.35.2 \u003cbr /\u003e\nDart Version: 3.9.0 \u003cbr /\u003e\n\n# References\n\nhttps://pub.dev/packages/envied \u003cbr /\u003e\nhttps://medium.com/@r1n1os/securing-sensitive-data-in-flutter-d0a8e060a11e \u003cbr /\u003e\nhttps://github.com/r1n1os/Secure-Sensitive-Data-Example \u003cbr /\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicosnicolaou16%2Fsecuredataflutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicosnicolaou16%2Fsecuredataflutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicosnicolaou16%2Fsecuredataflutter/lists"}