From a4c8d06bc1b510fb5a2ce0d43d4ef0e1e8a7488d Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 7 Apr 2023 07:37:44 +0700 Subject: [PATCH] TF-1694 Remove `fluttertoast` library because not used (cherry picked from commit 5836725f90dc215db71917b45ef164437d5c9aef) --- contact/pubspec.lock | 8 -------- core/pubspec.lock | 8 -------- core/pubspec.yaml | 2 -- ios/Podfile.lock | 10 ---------- lib/main/bindings/core/core_bindings.dart | 2 -- model/pubspec.lock | 8 -------- pubspec.lock | 10 +--------- pubspec.yaml | 4 ---- 8 files changed, 1 insertion(+), 51 deletions(-) diff --git a/contact/pubspec.lock b/contact/pubspec.lock index 36d4bd117..266dece90 100644 --- a/contact/pubspec.lock +++ b/contact/pubspec.lock @@ -391,14 +391,6 @@ packages: description: flutter source: sdk version: "0.0.0" - fluttertoast: - dependency: transitive - description: - name: fluttertoast - sha256: "2f9c4d3f4836421f7067a28f8939814597b27614e021da9d63e5d3fb6e212d25" - url: "https://pub.dev" - source: hosted - version: "8.2.1" frontend_server_client: dependency: transitive description: diff --git a/core/pubspec.lock b/core/pubspec.lock index 18f7831ee..cabc504d6 100644 --- a/core/pubspec.lock +++ b/core/pubspec.lock @@ -264,14 +264,6 @@ packages: description: flutter source: sdk version: "0.0.0" - fluttertoast: - dependency: "direct main" - description: - name: fluttertoast - sha256: "2f9c4d3f4836421f7067a28f8939814597b27614e021da9d63e5d3fb6e212d25" - url: "https://pub.dev" - source: hosted - version: "8.2.1" get: dependency: "direct main" description: diff --git a/core/pubspec.yaml b/core/pubspec.yaml index 1a58b4b5e..5b9420648 100644 --- a/core/pubspec.yaml +++ b/core/pubspec.yaml @@ -41,8 +41,6 @@ dependencies: html: 0.15.1 - fluttertoast: 8.2.1 - get: 4.6.5 device_info_plus: 8.1.0 diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 3845a23fd..c0946f4ce 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -106,9 +106,6 @@ PODS: - Flutter - flutter_native_splash (0.0.1): - Flutter - - fluttertoast (0.0.2): - - Flutter - - Toast - GoogleDataTransport (9.2.1): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) @@ -171,7 +168,6 @@ PODS: - Flutter - FlutterMacOS - SwiftyGif (5.4.4) - - Toast (4.0.0) - url_launcher_ios (0.0.1): - Flutter @@ -192,7 +188,6 @@ DEPENDENCIES: - flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`) - flutter_local_notifications (from `.symlinks/plugins/flutter_local_notifications/ios`) - flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`) - - fluttertoast (from `.symlinks/plugins/fluttertoast/ios`) - package_info_plus (from `.symlinks/plugins/package_info_plus/ios`) - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`) - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) @@ -222,7 +217,6 @@ SPEC REPOS: - SDWebImage - SDWebImageWebPCoder - SwiftyGif - - Toast EXTERNAL SOURCES: better_open_file: @@ -257,8 +251,6 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/flutter_local_notifications/ios" flutter_native_splash: :path: ".symlinks/plugins/flutter_native_splash/ios" - fluttertoast: - :path: ".symlinks/plugins/fluttertoast/ios" package_info_plus: :path: ".symlinks/plugins/package_info_plus/ios" path_provider_foundation: @@ -299,7 +291,6 @@ SPEC CHECKSUMS: flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069 flutter_local_notifications: 0c0b1ae97e741e1521e4c1629a459d04b9aec743 flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef - fluttertoast: eb263d302cc92e04176c053d2385237e9f43fad0 GoogleDataTransport: ea169759df570f4e37bdee1623ec32a7e64e67c4 GoogleUtilities: c2bdc4cf2ce786c4d2e6b3bcfd599a25ca78f06f libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef @@ -317,7 +308,6 @@ SPEC CHECKSUMS: share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68 shared_preferences_foundation: 986fc17f3d3251412d18b0265f9c64113a8c2472 SwiftyGif: 93a1cc87bf3a51916001cf8f3d63835fb64c819f - Toast: 91b396c56ee72a5790816f40d3a94dd357abc196 url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4 PODFILE CHECKSUM: e209bf81fb4facf3f68c43dbffa0b2d05ff63db0 diff --git a/lib/main/bindings/core/core_bindings.dart b/lib/main/bindings/core/core_bindings.dart index 1d22054da..97f7bed52 100644 --- a/lib/main/bindings/core/core_bindings.dart +++ b/lib/main/bindings/core/core_bindings.dart @@ -5,7 +5,6 @@ import 'package:core/presentation/utils/app_toast.dart'; import 'package:core/presentation/utils/responsive_utils.dart'; import 'package:core/utils/config/app_config_loader.dart'; import 'package:device_info_plus/device_info_plus.dart'; -import 'package:fluttertoast/fluttertoast.dart'; import 'package:get/get.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:tmail_ui_user/features/email/data/local/html_analyzer.dart'; @@ -43,7 +42,6 @@ class CoreBindings extends Bindings { } void _bindingToast() { - Get.put(FToast()); Get.put(AppToast()); } diff --git a/model/pubspec.lock b/model/pubspec.lock index b759cc424..3ea66eb6d 100644 --- a/model/pubspec.lock +++ b/model/pubspec.lock @@ -391,14 +391,6 @@ packages: description: flutter source: sdk version: "0.0.0" - fluttertoast: - dependency: transitive - description: - name: fluttertoast - sha256: "2f9c4d3f4836421f7067a28f8939814597b27614e021da9d63e5d3fb6e212d25" - url: "https://pub.dev" - source: hosted - version: "8.2.1" frontend_server_client: dependency: transitive description: diff --git a/pubspec.lock b/pubspec.lock index 3f36a4c13..ab2baaed3 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -616,7 +616,7 @@ packages: source: hosted version: "1.1.0" flutter_keyboard_visibility: - dependency: "direct main" + dependency: transitive description: name: flutter_keyboard_visibility sha256: "86b71bbaffa38e885f5c21b1182408b9be6951fd125432cf6652c636254cef2d" @@ -774,14 +774,6 @@ packages: description: flutter source: sdk version: "0.0.0" - fluttertoast: - dependency: "direct main" - description: - name: fluttertoast - sha256: "2f9c4d3f4836421f7067a28f8939814597b27614e021da9d63e5d3fb6e212d25" - url: "https://pub.dev" - source: hosted - version: "8.2.1" focus_detector_v2: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index aed3fdd76..01d207e5b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -191,12 +191,8 @@ dependencies: # flutter_localizations depends on intl 0.17.0 intl: 0.17.0 - fluttertoast: 8.2.1 - super_tag_editor: 0.1.1 - flutter_keyboard_visibility: 5.4.0 - dev_dependencies: flutter_test: sdk: flutter