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: ^<latest version> as a dependency in your pubspec.yaml file
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);
}
}