Search packages, repositories and app categories

Package detailsv1.1.1

flutter_phoenix

Easily restart your application from scratch, losing any previous state

30-day downloads
62.1K
Likes
496
Pub points
70

Install package

flutter pub add flutter_phoenix

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter Phoenix is a utility package that enables developers to restart the entire Flutter application from scratch, effectively resetting all state and reinitializing the app. It's particularly useful during development for testing state recovery or handling unexpected errors by forcing a clean restart. The package provides a simple API to trigger a full app reload without requiring a manual hot restart or recompile. It integrates seamlessly into existing Flutter projects with minimal setup.

Use cases

  • Testing state recovery
  • Handling app crashes gracefully
  • Development debugging
  • Resetting complex app states
  • Simulating app restarts

Key features

  • One-line app restart
  • Preserves app configuration
  • Minimal boilerplate
  • Easy integration
  • No need for hot restart

Suitable for

  • Developers needing state reset
  • Testing scenarios
  • Debugging unstable state
  • Hot-restart alternatives

Considerations

  • Not intended for production use
  • May cause temporary UI flicker
  • Does not preserve user data
  • Requires careful usage in production
  • Limited to app-level restart

Categories

Projects using this package