Skip to content

xianjianlf2/app_background_utils

Repository files navigation

app_background_utils

Press the return button on an Android phone, the app runs in the background

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.


Usage

RaisedButton.icon(
          onPressed: () {
            AppBackgroundUtils.navigateToSystemHome(); //返回到系统首页
          },
          icon: Icon(Icons.app_registration),
          label: Text('Hide to background'),
        )