ExtraSettings/move_to_background
एप्लिकेशन को बैकग्राउंड में भेजने के लिए Flutter प्लगइन
- Stars
- 28
- Forks
- 84
- अंतिम पुश (UTC)
- 7 फ़र॰ 2024
- प्रोजेक्ट स्थिति
- सक्रिय
भाषाएँ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.