File tree Expand file tree Collapse file tree 3 files changed +1
-21
lines changed
Expand file tree Collapse file tree 3 files changed +1
-21
lines changed Original file line number Diff line number Diff line change 11import 'dart:async' ;
22import 'dart:io' ;
33
4- import 'package:android_intent_plus/android_intent.dart' ;
5- import 'package:android_intent_plus/flag.dart' ;
64import 'package:flutter/material.dart' ;
75import 'package:flutter/services.dart' ;
86import 'package:get/get.dart' ;
@@ -48,16 +46,7 @@ class _MainPageState extends State<MainPage> {
4846 if (_selectedIndex != 0 ) {
4947 onDestinationSelected (0 );
5048 } else {
51- if (Platform .isAndroid) {
52- AndroidIntent intent = const AndroidIntent (
53- action: 'android.intent.action.MAIN' ,
54- flags: [Flag .FLAG_ACTIVITY_NEW_TASK ],
55- category: 'android.intent.category.HOME' ,
56- );
57- await intent.launch ();
58- } else {
59- SystemNavigator .pop ();
60- }
49+ SystemNavigator .pop ();
6150 }
6251 }
6352
Original file line number Diff line number Diff line change @@ -22,14 +22,6 @@ packages:
2222 url: "https://pub.flutter-io.cn"
2323 source: hosted
2424 version: "6.11.0"
25- android_intent_plus:
26- dependency: "direct main"
27- description:
28- name: android_intent_plus
29- sha256: dfc1fd3a577205ae8f11e990fb4ece8c90cceabbee56fcf48e463ecf0bd6aae3
30- url: "https://pub.flutter-io.cn"
31- source: hosted
32- version: "5.3.0"
3325 ansicolor:
3426 dependency: transitive
3527 description:
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ dependencies:
3434
3535 # The following adds the Cupertino Icons font to your application.
3636 # Use with the CupertinoIcons class for iOS style icons.
37- android_intent_plus : ^5.1.0
3837 bcrypt : ^1.1.3
3938 cached_network_image : ^3.4.0
4039 chat_bottom_container : ^0.3.1
You can’t perform that action at this time.
0 commit comments