I have a setting screen, when I change FontFamily it needs to restart the app to change all app fonts, And it restarts after the app closed, but I want to restart the app with a button instead of closing the app. does there any way to do this ?
The best solution... using "Restart App" module
flutter pub add restart_app
import 'package:restart_app/restart_app.dart';
onPressed: () { Restart.restartApp();}
Have a nice day...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With