Skip to content

Commit 9d60d9a

Browse files
committed
chore: remove unnecessary android_intent_plus package
1 parent 75ed7dc commit 9d60d9a

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

lib/pages/main/main_page.dart

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import 'dart:async';
22
import 'dart:io';
33

4-
import 'package:android_intent_plus/android_intent.dart';
5-
import 'package:android_intent_plus/flag.dart';
64
import 'package:flutter/material.dart';
75
import 'package:flutter/services.dart';
86
import '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

pubspec.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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:

pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)