rebirth 1.0.0
rebirth: ^1.0.0 copied to clipboard
For Rebirth/Restart of your app.
Features #
A Flutter Package for give a rebirth of your app
Getting started #
Just wrap the WidgetRebirth widget to your MaterialApp or CupertinoApp and use the method WidgetRebirth.createRebirth for magic
Usage #
To use this plugin, add rebirth: ^
void main() => runApp(
const WidgetRebirth(child:MaterialApp(
home: Material(
child: Center(
child: ElevatedButton(
onPressed: _launchUrl,
child: Text('Show Flutter homepage'),),
),
),
),
),
);
void restart(){
if(mounted) {
WidgetRebirth.createRebirth(context: context);
}
}