Giter Club home page Giter Club logo

move_to_background's People

Contributors

lulupointu avatar mix1009 avatar sayegh7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

move_to_background's Issues

Android native code prompts error

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.

Doesn't work the way it should work.

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(),
      ),
    );
  }

Null safety

Hi, Thanks for the package once again !

Could you publish a null-safety version of your package on pub.dev ?

Deprecated API?

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.

Registrar in PluginRegistry has been deprecated

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

Will it work when the App is Killed

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.