move_task_to 0.0.3+3 copy "move_task_to: ^0.0.3+3" to clipboard
move_task_to: ^0.0.3+3 copied to clipboard

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

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();
        }),
  );
}
1
likes
150
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on move_task_to