ExtraSettings/move_to_background
애플리케이션을 백그라운드로 보낼 수 있는 Flutter 플러그인
- Stars
- 28
- Forks
- 84
- 최근 푸시(UTC)
- 2024. 2. 7.
- 프로젝트 상태
- 활성
언어JavaRubyDartObjective-C
기술 주제
사용 중인 의존성
의존성 목록 2 개
- flutter
{"sdk":"flutter"} - flutter_test개발 의존성
{"sdk":"flutter"}
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
README 펼치기 / 접기
move_to_background
Flutter plugin for sending mobile applications to background. Supports iOS and Android.
Getting Started
Install it (pubspec.yaml)
move_to_background: <latest>
Import it
import 'package:move_to_background/move_to_background.dart';
Use it
MoveToBackground.moveTaskToBack();
Useful Scenario
Use with WillPopScope to send your application to the background when the user attempts to exit the app.
WillPopScope(
child: MaterialApp(...),
onWillPop: () async {
MoveToBackground.moveTaskToBack();
return false;
},
);
Note about using it for iOS
Quitting your application or sending it to the background programmatically is a violation of the iOS Human Interface Guidelines, which usually doesn't bode well for getting through the review process. Keep that in mind.