Last updated:
0 purchases
move task to
move_task_to #
A flutter plugin to prevent APP destruction caused by return button.
How to use #
With a placeholder:
@override
Widget build(BuildContext context) {
return MaterialApp(
home: WillPopScope(
child: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: SizedBox(
width: double.infinity,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [Text('Running on: $_platformVersion\n')],
)),
),
onWillPop: () async {
MoveTaskTo.moveTaskToBack();
return false;
}),
);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.