{"id":13491215,"url":"https://github.com/The-ring-io/flutter_phoenix","last_synced_at":"2025-03-28T08:32:45.784Z","repository":{"id":44125290,"uuid":"230775733","full_name":"The-ring-io/flutter_phoenix","owner":"The-ring-io","description":"Easily restart your application from scratch.","archived":false,"fork":false,"pushed_at":"2023-11-20T06:49:57.000Z","size":91,"stargazers_count":154,"open_issues_count":8,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-22T13:51:22.886Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/The-ring-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-12-29T16:31:05.000Z","updated_at":"2025-03-15T08:41:51.000Z","dependencies_parsed_at":"2024-01-16T09:05:53.106Z","dependency_job_id":"6281ed3d-2c95-4326-a42b-55ddef49d09b","html_url":"https://github.com/The-ring-io/flutter_phoenix","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-ring-io%2Fflutter_phoenix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-ring-io%2Fflutter_phoenix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-ring-io%2Fflutter_phoenix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-ring-io%2Fflutter_phoenix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/The-ring-io","download_url":"https://codeload.github.com/The-ring-io/flutter_phoenix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245996318,"owners_count":20707216,"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:00:54.625Z","updated_at":"2025-03-28T08:32:45.488Z","avatar_url":"https://github.com/The-ring-io.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# Flutter Phoenix\n\nEasily restart your application from scratch, losing any previous state.\n\n# Flutter 3.0 \n\nFrom 1.1.0 and onwards, flutter_phoenix is targeting SDK 2.17.0 minimum.\nIf you want to keep using flutter_phoenix but cannot migrate to Dart SDK 2.17.0 yet, use the version 1.0.0 instead.\n\n# Flutter 2.0 and null-safety\n\nFrom 1.0.0 and onwards, flutter_phoenix is null-safe and requires Dart SDK 2.12.0 minimum.\n\nIf you want to keep using flutter_phoenix but cannot migrate to null-safety yet, use the version 0.1.0 instead.\n\n## Usage\n\nWrap you App widget in the `Phoenix` widget.\n\n```dart\nvoid main() {\n  runApp(\n    Phoenix(\n      child: App(),\n    ),\n  );\n}\n```\n\nCall the `rebirth` static method when you want to restart your application (rebuild the entire widget tree from scratch).\n\n\n```dart\nPhoenix.rebirth(context);\n```\n\n\u003e**Disclaimer :** \n\u003cbr\u003e\u003cbr\u003ePhoenix restarts your application at the application level, rebuilding your application widget tree from scratch, losing any previous state.\n\u003cbr\u003e\u003cbr\u003ePhoenix does not fully restart your application process at the OS level.\n\n## Use cases \n\nHere is a non-exhaustive list of use cases where `Phoenix` can help :\n\n- restart the app after a logout\n- restart the app after a failed app initialization process\n- restart the app after a specific event in the app occurs\n- ...\n\n## Installation\n\n### Dependency\nAdd the package as a dependency in your pubspec.yaml file.\n```yaml\ndependencies:\n  flutter_phoenix: \"^1.0.0\"\n```\n\n### Import\nImport the package in your code file.\n```dart\nimport 'package:flutter_phoenix/flutter_phoenix.dart';\n```\n\n## License\n\nFlutter Phoenix is released under the [MIT License](LICENSE)\n\n## Credit\n\nThis package is an extract of [@rrousselGit](https://github.com/rrousselGit) answer on this [stackoverflow post](https://stackoverflow.com/questions/50115311/flutter-how-to-force-an-application-restart-in-production-mode)\n\n## About us\n\nAs of July 2022, this package is maintained by the front team working on the french mobile application [Dailyn](https://www.dailyn.app) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThe-ring-io%2Fflutter_phoenix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FThe-ring-io%2Fflutter_phoenix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThe-ring-io%2Fflutter_phoenix/lists"}