Overview
The restart_app package provides a simple way to restart or relaunch a Flutter application with native platform behavior. It enables developers to programmatically restart the app on Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent user experience across platforms. The plugin leverages platform-specific mechanisms for restarting, such as system-level app relaunches or browser reloads, making it ideal for scenarios like theme switching, language changes, or configuration updates that require a full app refresh. It is lightweight and easy to integrate into existing projects.
Use cases
- App theme reloading
- Language change restart
- Configuration update handling
- User session reset
- Debugging and development workflows
Key features
- Cross-platform restart support
- Native platform behavior
- Simple API integration
- No additional permissions required
- Works on mobile, desktop, and web
Suitable for
- Developers needing app restart functionality
- Apps with dynamic UI settings
- Multi-language applications
- Development tools and debug utilities
Considerations
- May not work in all web environments
- Requires proper handling of state persistence
- Not suitable for immediate state transitions
- Limited control over restart timing
- Platform-specific limitations may apply