rebirth 1.0.1
rebirth: ^1.0.1 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:()=> restart(),
child: Text('WidgetRebirth'),),
),
),
),
),
);
void restart(){
if(mounted) {
WidgetRebirth.createRebirth(context: context);
}
}