sayegh7 / move_to_background Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin for sending application to background
Home Page: https://pub.dev/packages/move_to_background
License: MIT License
Flutter plugin for sending application to background
Home Page: https://pub.dev/packages/move_to_background
License: MIT License
This app is using a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding.
Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
Launching lib\main.dart on 5G in debug mode...
E:\flutter_app\example\move_to_background-master\android\src\main\java\com\sayegh\move_to_background\MoveToBackgroundPlugin.java:13: ����: [deprecation] PluginRegistry�е�Registrar�ѹ�ʱ
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
E:\flutter_app\example\move_to_background-master\android\src\main\java\com\sayegh\move_to_background\MoveToBackgroundPlugin.java:24: ����: [deprecation] PluginRegistry�е�Registrar�ѹ�ʱ
public static void registerWith(Registrar registrar) {
^
2 ������
E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\com\sayegh\move_to_background_example\MainActivity.java:4: ����: [deprecation] io.flutter.app�е�FlutterActivity�ѹ�ʱ
import io.flutter.app.FlutterActivity;
^
E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\com\sayegh\move_to_background_example\MainActivity.java:7: ����: [deprecation] io.flutter.app�е�FlutterActivity�ѹ�ʱ
public class MainActivity extends FlutterActivity {
^
E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:14: ����: [deprecation] PluginRegistry�е�registrarFor(String)�ѹ�ʱ
MoveToBackgroundPlugin.registerWith(registry.registrarFor("com.sayegh.move_to_background.MoveToBackgroundPlugin"));
^
E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:19: ����: [deprecation] PluginRegistry�е�hasPlugin(String)�ѹ�ʱ
if (registry.hasPlugin(key)) {
^
E:\flutter_app\example\move_to_background-master\example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:22: ����: [deprecation] PluginRegistry�е�registrarFor(String)�ѹ�ʱ
registry.registrarFor(key);
^
5 ������
Running Gradle task 'assembleDebug'... 19.9s
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk... 14.1s
Syncing files to device 5G... 98ms
Flutter run key commands.
r Hot reload.
AppData\Local\Pub\Cache\hosted\pub.dev\move_to_background-1.0.2\android\src\main\java\com\sayegh\move_to_background\MoveToBackgroundPlugin.java:24: warning: [deprecation] Registrar in PluginRegistry has been deprecated
public static void registerWith(Registrar registrar) {
Call deep link from browser , then move to the browser that clicked deep link.
This is what I'm doing. Now when the user presses back
in android, the app moves to background, but when i select it from there it restarts, rather than resuming from where i left it. How to solve this?
@override
Widget build(BuildContext context) {
return WillPopScope(
onWillPop: () async {
MoveToBackground.moveTaskToBack();
return false;
},
child: MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter Demo',
darkTheme: ThemeData.dark(),
themeMode: currentTheme.myCurrentTheme(),
theme: ThemeData.light(),
home: MyHomePage(),
),
);
}
Hi, Thanks for the package once again !
Could you publish a null-safety version of your package on pub.dev ?
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\move_to_background-1.0.0+1\android\src\main\java\com\sayegh\move_to_background\MoveToBackgroundPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Will there be an update to fix this? awesome plugin btw, I much needed this for my apps.
C:\flutter\.pub-cache\hosted\pub.dartlang.org\move_to_background-1.0.2\android\src\main\java\com\sayegh\move_to_background\MoveToBackgroundPlugin.java:13: warning: [deprecation] Registrar in PluginRegistry has been deprecated
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
C:\flutter\.pub-cache\hosted\pub.dartlang.org\move_to_background-1.0.2\android\src\main\java\com\sayegh\move_to_background\MoveToBackgroundPlugin.java:24: warning: [deprecation] Registrar in PluginRegistry has been deprecated
public static void registerWith(Registrar registrar) {
^
2 warnings
I am seeing forward to use the move_to_background
As the installation and usage is looking so cool,
Question is that will it beautifully work when the app is killed, as it is looking in the documentation.
Thanks alot for making this @Sayegh7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.