How can I restart the app in Flutter and call the main again?
I tried Phoenix.rebirth(context) but the main is not called again
How can I restart the app in Flutter and call the main again?
I tried Phoenix.rebirth(context) but the main is not called again
2
Answers
Luckily there’s a plugin called phoniex to do it https://pub.dev/packages/flutter_phoenix sadly it only works on iOS.
Try this restart_app plugin
A simple package that helps you to restart the whole android app with a single function call. It supports android only
If you need to restart the app for both android and iOS. You can give it a try from the below-mentioned code
Use restart_app flutter package.
How to use it?