move_task_to

A flutter plugin to prevent APP destruction caused by return button.

How to use

@override
Widget build(BuildContext context) {
  return MaterialApp(
    home: PopScope(
        canPop: false,
        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')],
              )),
        ),
        onPopInvokedWithResult: (didPop, result) {
          MoveTaskTo.moveTaskToBack();
        }),
  );
}