From 002bf469f8f6d7f1e07bb218531bc1321f554a7a Mon Sep 17 00:00:00 2001
From: Ming Lei <31576265+popoway@users.noreply.github.com>
Date: Mon, 4 Mar 2024 00:59:22 -0500
Subject: [PATCH] fix: http post android unhandled exception
---
android/app/build.gradle | 5 +-
android/app/src/debug/AndroidManifest.xml | 3 +-
android/app/src/main/AndroidManifest.xml | 1 +
android/app/src/profile/AndroidManifest.xml | 3 +-
assets/flutter_i18n/en.yaml | 1 +
assets/flutter_i18n/es.yaml | 1 +
assets/flutter_i18n/he.yaml | 1 +
assets/flutter_i18n/hi.yaml | 1 +
assets/flutter_i18n/zh.yaml | 1 +
lib/chatknights.dart | 47 ++-
pubspec.lock | 352 ++++++++++----------
pubspec.yaml | 6 +-
12 files changed, 227 insertions(+), 195 deletions(-)
diff --git a/android/app/build.gradle b/android/app/build.gradle
index c0a87c1..1e1c46f 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -57,6 +57,7 @@ android {
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
+ multiDexEnabled true
}
signingConfigs {
@@ -78,4 +79,6 @@ flutter {
source '../..'
}
-dependencies {}
+dependencies {
+ implementation 'com.android.support:multidex:2.0.1' //enter the latest multidex version
+}
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
index 399f698..ce02f82 100644
--- a/android/app/src/debug/AndroidManifest.xml
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -3,5 +3,6 @@
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
-
+
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index c02dd36..91494db 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,5 +1,6 @@
+
diff --git a/android/app/src/profile/AndroidManifest.xml b/android/app/src/profile/AndroidManifest.xml
index 399f698..ce02f82 100644
--- a/android/app/src/profile/AndroidManifest.xml
+++ b/android/app/src/profile/AndroidManifest.xml
@@ -3,5 +3,6 @@
the Flutter tool needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
-
+
+
diff --git a/assets/flutter_i18n/en.yaml b/assets/flutter_i18n/en.yaml
index 018bcda..c8f6763 100644
--- a/assets/flutter_i18n/en.yaml
+++ b/assets/flutter_i18n/en.yaml
@@ -147,6 +147,7 @@ chat:
disclaimer: "ChatKnights can make mistakes. Consider checking important information."
placeholder: "Message ChatKnights..."
too-short: "Your message is too short for me to understand. Please elaborate your question."
+ error: "Sorry, I am not able to answer your question at the moment. Please try again later."
map:
hint: "Search buildings..."
diff --git a/assets/flutter_i18n/es.yaml b/assets/flutter_i18n/es.yaml
index ca977ca..d4c9f51 100644
--- a/assets/flutter_i18n/es.yaml
+++ b/assets/flutter_i18n/es.yaml
@@ -147,6 +147,7 @@ chat:
disclaimer: "ChatKnights puede cometer errores. Considera verificar información importante."
placeholder: "Mensaje a ChatKnights..."
too-short: "Tu mensaje es demasiado corto para que yo lo entienda. Por favor, elabora tu pregunta."
+ error: "Lo siento, no puedo responder a eso. Por favor, intenta otra pregunta."
map:
hint: "Buscar edificios..."
diff --git a/assets/flutter_i18n/he.yaml b/assets/flutter_i18n/he.yaml
index 1f825fb..e5990e8 100644
--- a/assets/flutter_i18n/he.yaml
+++ b/assets/flutter_i18n/he.yaml
@@ -147,6 +147,7 @@ chat:
disclaimer: "ל-ChatKnights יכולים להיות טעויות. שקול לבדוק מידע חשוב."
placeholder: "שלח הודעה ל-ChatKnights..."
too-short: "ההודעה שלך קצרה מכדי שאוכל להבין. אנא פרט את שאלתך."
+ error: "אוי! נראה שיש בעיה עם התשובה שלי. אנא נסה שוב."
map:
hint: "חפש בניינים..."
diff --git a/assets/flutter_i18n/hi.yaml b/assets/flutter_i18n/hi.yaml
index 67cf5d7..592e15a 100644
--- a/assets/flutter_i18n/hi.yaml
+++ b/assets/flutter_i18n/hi.yaml
@@ -147,6 +147,7 @@ chat:
disclaimer: "ChatKnights गलतियाँ कर सकता है। महत्वपूर्ण जानकारी की जाँच करने पर विचार करें।"
placeholder: "ChatKnights को संदेश भेजें..."
too-short: "आपका संदेश मेरे समझने के लिए बहुत छोटा है। कृपया अपना प्रश्न विस्तृत करें।"
+ error: "क्षमा करें, मैं आपके प्रश्न का जवाब नहीं दे सकता। कृपया दोबारा प्रयास करें।"
map:
hint: "भवनों की खोज करें..."
diff --git a/assets/flutter_i18n/zh.yaml b/assets/flutter_i18n/zh.yaml
index 3b6b7ea..1d730dc 100644
--- a/assets/flutter_i18n/zh.yaml
+++ b/assets/flutter_i18n/zh.yaml
@@ -147,6 +147,7 @@ chat:
disclaimer: "ChatKnights 可能会犯错误。请考虑核对重要信息。"
placeholder: "给 ChatKnights 发消息..."
too-short: "您的信息太短了,我无法理解。请详细说明您的问题。"
+ error: "哎呀!看起来我的回答出了问题。请再试一次。"
map:
hint: "搜索建筑物..."
diff --git a/lib/chatknights.dart b/lib/chatknights.dart
index ad22194..8a6b284 100644
--- a/lib/chatknights.dart
+++ b/lib/chatknights.dart
@@ -242,16 +242,22 @@ class _MyChatPageState extends State {
});
}
- Future fetchCompletion(String partialRequest) {
+ Future fetchCompletion(String partialRequest) async {
print(partialRequest);
- return http.post(
- Uri.parse(
- "https://$_endpoint/openai/deployments/$_model/chat/completions?api-version=2023-12-01-preview"),
- headers: {
- 'Content-Type': 'application/json; charset=UTF-8',
- 'api-key': _key,
- },
- body: partialRequest);
+ try {
+ return await http.post(
+ Uri.parse(
+ "https://$_endpoint/openai/deployments/$_model/chat/completions?api-version=2023-12-01-preview"),
+ headers: {
+ 'Content-Type': 'application/json; charset=UTF-8',
+ 'api-key': _key,
+ },
+ body: partialRequest);
+ } catch (e) {
+ print('Exception caught: $e');
+ // Handle the exception here
+ }
+ return Future.value(http.Response('{"error": "Exception caught"}', 500));
}
/// Composes request JSON for Azure OpenAI API
@@ -363,14 +369,21 @@ class _MyChatPageState extends State {
_replaceMessage(textMessage2);
// send message to Azure OpenAI API
- var response = await fetchCompletion(
- await _composeRequestJSON(_messages, message.text));
- print(utf8.decode(response.bodyBytes));
- var responseJSON = jsonDecode(utf8.decode(response.bodyBytes));
- // sample response:
- // {"id":"chatcmpl-8f6aKXU20mj0koJvwLXLe9eb9Qynw","object":"chat.completion","created":1704807452,"model":"gpt-35-turbo","choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","content":"Yes, many Azure AI services support customer managed keys. These include Azure Cognitive Services, Azure Machine Learning, and Azure Databricks."}}],"usage":{"prompt_tokens":59,"completion_tokens":27,"total_tokens":86}}
- var responseContent = responseJSON['choices'][0]['message']['content'];
-
+ http.Response response;
+ String responseContent = "Error: No response.";
+ try {
+ response = await fetchCompletion(
+ await _composeRequestJSON(_messages, message.text));
+ print(utf8.decode(response.bodyBytes));
+ var responseJSON = jsonDecode(utf8.decode(response.bodyBytes));
+ // sample response:
+ // {"id":"chatcmpl-8f6aKXU20mj0koJvwLXLe9eb9Qynw","object":"chat.completion","created":1704807452,"model":"gpt-35-turbo","choices":[{"finish_reason":"stop","index":0,"message":{"role":"assistant","content":"Yes, many Azure AI services support customer managed keys. These include Azure Cognitive Services, Azure Machine Learning, and Azure Databricks."}}],"usage":{"prompt_tokens":59,"completion_tokens":27,"total_tokens":86}}
+ responseContent = responseJSON['choices'][0]['message']['content'];
+ } catch (e) {
+ print('Exception caught: $e');
+ responseContent = FlutterI18n.translate(context, "chat.error");
+ // Handle the exception here
+ }
var responseMessage = types.TextMessage(
author: _bot,
createdAt: DateTime.now().millisecondsSinceEpoch,
diff --git a/pubspec.lock b/pubspec.lock
index e53dde7..0ecf1b6 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -21,18 +21,18 @@ packages:
dependency: "direct main"
description:
name: apple_maps_flutter
- sha256: "3785518d2bf37066e920b055b171f76258e8937d9182946e5c3ba63614f28285"
+ sha256: "96b672d8fa5c99ef91dc16973adf646faed9c87d52729a16583275475d6c2aa4"
url: "https://pub.dev"
source: hosted
- version: "1.2.0"
+ version: "1.3.0"
archive:
dependency: transitive
description:
name: archive
- sha256: "0da817eab9833cc222ee5575789664e99f60fe0c554be55dc1979f9b4ec6dd73"
+ sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d"
url: "https://pub.dev"
source: hosted
- version: "3.4.8"
+ version: "3.4.10"
args:
dependency: transitive
description:
@@ -53,10 +53,10 @@ packages:
dependency: "direct main"
description:
name: back_button_interceptor
- sha256: ba7d4f4d801e2f1367db35ecf8870cf954cd2c434a9e6208b10fe527b34eb873
+ sha256: a95c096cf76c78cb07c4a84565f41a96f8fac42a37d1c41a1ec1a0bbdf69473e
url: "https://pub.dev"
source: hosted
- version: "7.0.0"
+ version: "7.0.2"
boolean_selector:
dependency: transitive
description:
@@ -85,10 +85,10 @@ packages:
dependency: transitive
description:
name: cli_util
- sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7
+ sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19
url: "https://pub.dev"
source: hosted
- version: "0.4.0"
+ version: "0.4.1"
clock:
dependency: transitive
description:
@@ -101,10 +101,10 @@ packages:
dependency: transitive
description:
name: collection
- sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
+ sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
- version: "1.17.2"
+ version: "1.18.0"
convert:
dependency: transitive
description:
@@ -117,10 +117,10 @@ packages:
dependency: transitive
description:
name: cross_file
- sha256: "445db18de832dba8d851e287aff8ccf169bed30d2e94243cb54c7d2f1ed2142c"
+ sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32"
url: "https://pub.dev"
source: hosted
- version: "0.3.3+6"
+ version: "0.3.4+1"
crypto:
dependency: transitive
description:
@@ -173,10 +173,10 @@ packages:
dependency: transitive
description:
name: ffi
- sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
+ sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "2.1.2"
file:
dependency: transitive
description:
@@ -185,6 +185,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "7.0.0"
+ fixnum:
+ dependency: transitive
+ description:
+ name: fixnum
+ sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.0"
flutter:
dependency: "direct main"
description: flutter
@@ -202,10 +210,10 @@ packages:
dependency: "direct main"
description:
name: flutter_chat_ui
- sha256: "6a4712026429d3b28547bd3d147ded44f8dd53dacc1ff14113693d7b7dd14382"
+ sha256: c8580c85e2d29359ffc84147e643d08d883eb6e757208652377f0105ef58807f
url: "https://pub.dev"
source: hosted
- version: "1.6.10"
+ version: "1.6.12"
flutter_config:
dependency: "direct main"
description:
@@ -218,10 +226,10 @@ packages:
dependency: "direct main"
description:
name: flutter_i18n
- sha256: c7e9752c5dea38963bed26513c25a6e5db70c110fc2c68b84694aafa37b29636
+ sha256: c823a9c9e32d2166d0ce8fa60b63459648a55f29a17c0d5dbf66fe4c9e05f1c2
url: "https://pub.dev"
source: hosted
- version: "0.34.0"
+ version: "0.35.1"
flutter_launcher_icons:
dependency: "direct dev"
description:
@@ -263,10 +271,10 @@ packages:
dependency: "direct main"
description:
name: flutter_native_splash
- sha256: "17d9671396fb8ec45ad10f4a975eb8a0f70bedf0fdaf0720b31ea9de6da8c4da"
+ sha256: "58fb249fb19ffe979e4ad288de018a118768988b1f497e6ff0b23ead6f5a1bc5"
url: "https://pub.dev"
source: hosted
- version: "2.3.7"
+ version: "2.3.13"
flutter_parsed_text:
dependency: transitive
description:
@@ -295,10 +303,10 @@ packages:
dependency: "direct main"
description:
name: flutter_svg
- sha256: d39e7f95621fc84376bc0f7d504f05c3a41488c562f4a8ad410569127507402c
+ sha256: "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2"
url: "https://pub.dev"
source: hosted
- version: "2.0.9"
+ version: "2.0.10+1"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -313,42 +321,42 @@ packages:
dependency: "direct main"
description:
name: geolocator
- sha256: e946395fc608842bb2f6c914807e9183f86f3cb787f6b8f832753e5251036f02
+ sha256: "694ec58afe97787b5b72b8a0ab78c1a9244811c3c10e72c4362ef3c0ceb005cd"
url: "https://pub.dev"
source: hosted
- version: "10.1.0"
+ version: "11.0.0"
geolocator_android:
dependency: transitive
description:
name: geolocator_android
- sha256: "741579fa6c9e412984d2bdb2fbaa54e3c3f7587c60aeacfe6e058358a11f40f8"
+ sha256: "136f1c97e1903366393bda514c5d9e98843418baea52899aa45edae9af8a5cd6"
url: "https://pub.dev"
source: hosted
- version: "4.4.0"
+ version: "4.5.2"
geolocator_apple:
dependency: transitive
description:
name: geolocator_apple
- sha256: ab90ae811c42ec2f6021e01eca71df00dee6ff1e69d2c2dafd4daeb0b793f73d
+ sha256: "2f2d4ee16c4df269e93c0e382be075cc01d5db6703c3196e4af20a634fe49ef4"
url: "https://pub.dev"
source: hosted
- version: "2.3.2"
+ version: "2.3.6"
geolocator_platform_interface:
dependency: transitive
description:
name: geolocator_platform_interface
- sha256: b7aca62aa05d7e610c396a53a1936ff87fce2f735d76e93fde9269c341c46a25
+ sha256: "009a21c4bc2761e58dccf07c24f219adaebe0ff707abdfd40b0a763d4003fab9"
url: "https://pub.dev"
source: hosted
- version: "4.1.1"
+ version: "4.2.2"
geolocator_web:
dependency: transitive
description:
name: geolocator_web
- sha256: "59083f7e0871b78299918d92bf930a14377f711d2d1156c558cd5ebae6c20d58"
+ sha256: "49d8f846ebeb5e2b6641fe477a7e97e5dd73f03cbfef3fd5c42177b7300fb0ed"
url: "https://pub.dev"
source: hosted
- version: "2.2.0"
+ version: "3.0.0"
geolocator_windows:
dependency: transitive
description:
@@ -361,58 +369,42 @@ packages:
dependency: "direct main"
description:
name: google_fonts
- sha256: f0b8d115a13ecf827013ec9fc883390ccc0e87a96ed5347a3114cac177ef18e8
+ sha256: "5b1726fee554d1cc9db1baef8061b126567ff0a1140a03ed7de936e62f2ab98b"
url: "https://pub.dev"
source: hosted
- version: "6.1.0"
- google_maps:
- dependency: transitive
- description:
- name: google_maps
- sha256: "555d5d736339b0478e821167ac521c810d7b51c3b2734e6802a9f046b64ea37a"
- url: "https://pub.dev"
- source: hosted
- version: "6.3.0"
+ version: "6.2.0"
google_maps_flutter:
dependency: transitive
description:
name: google_maps_flutter
- sha256: d4914cb38b3dcb62c39c085d968d434de0f8050f00f4d9f5ba4a7c7e004934cb
+ sha256: abefcb1e5e5c96bdd8084939dda555257af272c7972902ca46d5631092c1df68
url: "https://pub.dev"
source: hosted
- version: "2.5.0"
+ version: "2.2.8"
google_maps_flutter_android:
dependency: transitive
description:
name: google_maps_flutter_android
- sha256: "4023e79184c762e63efe04da629d876085e0c296a7ca26745fb5750d4acd0aa2"
+ sha256: "256b3c974e415bd17555ceff76a5d0badd2cbfd29febfc23070993358f639550"
url: "https://pub.dev"
source: hosted
- version: "2.5.3"
+ version: "2.7.0"
google_maps_flutter_ios:
dependency: transitive
description:
name: google_maps_flutter_ios
- sha256: "2aa28eb9b9d5dfdce6932a7b7f096430bf83a1a09b4e21e81939351f407c787f"
+ sha256: "0997f99d8bd8712f648a49bfc96a3cf2713cfdaf73a005c719aab74eaef94030"
url: "https://pub.dev"
source: hosted
- version: "2.3.2"
+ version: "2.5.0"
google_maps_flutter_platform_interface:
dependency: transitive
description:
name: google_maps_flutter_platform_interface
- sha256: a3e9e6896501e566d902c6c69f010834d410ef4b7b5c18b90c77e871c86b7907
- url: "https://pub.dev"
- source: hosted
- version: "2.4.1"
- google_maps_flutter_web:
- dependency: transitive
- description:
- name: google_maps_flutter_web
- sha256: f893d1542c6562bc8299ef768fbbe92ade83c220ab3209b9477ec9f81ad585e4
+ sha256: "167af879da4d004cd58771f1469b91dcc3b9b0a2c5334cc6bf71fd41d4b35403"
url: "https://pub.dev"
source: hosted
- version: "0.5.4+2"
+ version: "2.6.0"
html:
dependency: transitive
description:
@@ -425,10 +417,10 @@ packages:
dependency: "direct main"
description:
name: http
- sha256: "759d1a329847dd0f39226c688d3e06a6b8679668e350e2891a6474f8b4bb8525"
+ sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938"
url: "https://pub.dev"
source: hosted
- version: "1.1.0"
+ version: "1.2.1"
http_parser:
dependency: transitive
description:
@@ -441,10 +433,10 @@ packages:
dependency: transitive
description:
name: image
- sha256: "028f61960d56f26414eb616b48b04eb37d700cbe477b7fb09bf1d7ce57fd9271"
+ sha256: "4c68bfd5ae83e700b5204c1e74451e7bf3cf750e6843c6e158289cf56bda018e"
url: "https://pub.dev"
source: hosted
- version: "4.1.3"
+ version: "4.1.7"
in_app_review:
dependency: "direct main"
description:
@@ -473,18 +465,10 @@ packages:
dependency: transitive
description:
name: js
- sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
+ sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf
url: "https://pub.dev"
source: hosted
- version: "0.6.7"
- js_wrapping:
- dependency: transitive
- description:
- name: js_wrapping
- sha256: e385980f7c76a8c1c9a560dfb623b890975841542471eade630b2871d243851c
- url: "https://pub.dev"
- source: hosted
- version: "0.7.4"
+ version: "0.7.1"
json_annotation:
dependency: transitive
description:
@@ -493,6 +477,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.8.1"
+ leak_tracker:
+ dependency: transitive
+ description:
+ name: leak_tracker
+ sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
+ url: "https://pub.dev"
+ source: hosted
+ version: "10.0.0"
+ leak_tracker_flutter_testing:
+ dependency: transitive
+ description:
+ name: leak_tracker_flutter_testing
+ sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.1"
+ leak_tracker_testing:
+ dependency: transitive
+ description:
+ name: leak_tracker_testing
+ sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.0.1"
linkify:
dependency: transitive
description:
@@ -521,18 +529,18 @@ packages:
dependency: transitive
description:
name: matcher
- sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
+ sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
- version: "0.12.16"
+ version: "0.12.16+1"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
- sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
+ sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
url: "https://pub.dev"
source: hosted
- version: "0.5.0"
+ version: "0.8.0"
material_floating_search_bar_2:
dependency: "direct main"
description:
@@ -545,18 +553,18 @@ packages:
dependency: transitive
description:
name: meta
- sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
+ sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
url: "https://pub.dev"
source: hosted
- version: "1.9.1"
+ version: "1.11.0"
mime:
dependency: transitive
description:
name: mime
- sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e
+ sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
url: "https://pub.dev"
source: hosted
- version: "1.0.4"
+ version: "1.0.5"
package_info_plus:
dependency: "direct main"
description:
@@ -577,10 +585,10 @@ packages:
dependency: transitive
description:
name: path
- sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
+ sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
url: "https://pub.dev"
source: hosted
- version: "1.8.3"
+ version: "1.9.0"
path_parsing:
dependency: transitive
description:
@@ -593,26 +601,26 @@ packages:
dependency: transitive
description:
name: path_provider
- sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa
+ sha256: b27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b
url: "https://pub.dev"
source: hosted
- version: "2.1.1"
+ version: "2.1.2"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
- sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72
+ sha256: "477184d672607c0a3bf68fbbf601805f92ef79c82b64b4d6eb318cbca4c48668"
url: "https://pub.dev"
source: hosted
- version: "2.2.1"
+ version: "2.2.2"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
- sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d"
+ sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f"
url: "https://pub.dev"
source: hosted
- version: "2.3.1"
+ version: "2.3.2"
path_provider_linux:
dependency: transitive
description:
@@ -625,10 +633,10 @@ packages:
dependency: transitive
description:
name: path_provider_platform_interface
- sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c"
+ sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334"
url: "https://pub.dev"
source: hosted
- version: "2.1.1"
+ version: "2.1.2"
path_provider_windows:
dependency: transitive
description:
@@ -641,10 +649,10 @@ packages:
dependency: transitive
description:
name: petitparser
- sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750
+ sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27
url: "https://pub.dev"
source: hosted
- version: "5.4.0"
+ version: "6.0.2"
photo_view:
dependency: transitive
description:
@@ -657,10 +665,10 @@ packages:
dependency: transitive
description:
name: platform
- sha256: "0a279f0707af40c890e80b1e9df8bb761694c074ba7e1d4ab1bc4b728e200b59"
+ sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"
url: "https://pub.dev"
source: hosted
- version: "3.1.3"
+ version: "3.1.4"
platform_maps_flutter:
dependency: "direct main"
description:
@@ -673,58 +681,50 @@ packages:
dependency: transitive
description:
name: plugin_platform_interface
- sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d
+ sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02"
url: "https://pub.dev"
source: hosted
- version: "2.1.6"
+ version: "2.1.8"
pointycastle:
dependency: transitive
description:
name: pointycastle
- sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c"
+ sha256: "43ac87de6e10afabc85c445745a7b799e04de84cebaa4fd7bf55a5e1e9604d29"
url: "https://pub.dev"
source: hosted
- version: "3.7.3"
+ version: "3.7.4"
quick_actions:
dependency: "direct main"
description:
name: quick_actions
- sha256: "3930e1cf78a0574495b4ea741ee197323c4a9081321d6ae384b3bfcd84c7ea83"
+ sha256: b17da113df7a7005977f64adfa58ccc49c829d3ccc6e8e770079a8c7fbf2da9e
url: "https://pub.dev"
source: hosted
- version: "1.0.6"
+ version: "1.0.7"
quick_actions_android:
dependency: transitive
description:
name: quick_actions_android
- sha256: df67c20583e05f5038a24c47bfa1b7b2977703ec2d162663017c5f9ef8707699
+ sha256: adb42f20a46b22fee4caef421c00ff9eb209f9d441010bc5d6e9afa824288cf6
url: "https://pub.dev"
source: hosted
- version: "1.0.9"
+ version: "1.0.10"
quick_actions_ios:
dependency: transitive
description:
name: quick_actions_ios
- sha256: "5a13ed27b6254184fdd4294e100e3172fa6ebfd8bea03e414634a0f760d49997"
+ sha256: dd355101d0e9fef6176fa2ae2bf738bcafa8df09a1e17057fcb56475719793de
url: "https://pub.dev"
source: hosted
- version: "1.0.8"
+ version: "1.0.10"
quick_actions_platform_interface:
dependency: transitive
description:
name: quick_actions_platform_interface
- sha256: d2a8566b56eec49f93934528b62033906199c60f4ffaef0cba9ef02fcfed8a81
- url: "https://pub.dev"
- source: hosted
- version: "1.0.5"
- sanitize_html:
- dependency: transitive
- description:
- name: sanitize_html
- sha256: "12669c4a913688a26555323fb9cec373d8f9fbe091f2d01c40c723b33caa8989"
+ sha256: "81a1e40c519bb3cacfec38b3008b13cef665a75bd270da94f40091b57f0f9236"
url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "1.0.6"
scroll_to_index:
dependency: transitive
description:
@@ -737,10 +737,10 @@ packages:
dependency: "direct main"
description:
name: share_plus
- sha256: f74fc3f1cbd99f39760182e176802f693fa0ec9625c045561cfad54681ea93dd
+ sha256: "3ef39599b00059db0990ca2e30fca0a29d8b37aae924d60063f8e0184cf20900"
url: "https://pub.dev"
source: hosted
- version: "7.2.1"
+ version: "7.2.2"
share_plus_platform_interface:
dependency: transitive
description:
@@ -769,10 +769,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_foundation
- sha256: "7bf53a9f2d007329ee6f3df7268fd498f8373602f943c975598bbb34649b62a7"
+ sha256: "7708d83064f38060c7b39db12aefe449cb8cdc031d6062280087bc4cdb988f5c"
url: "https://pub.dev"
source: hosted
- version: "2.3.4"
+ version: "2.3.5"
shared_preferences_linux:
dependency: transitive
description:
@@ -785,18 +785,18 @@ packages:
dependency: transitive
description:
name: shared_preferences_platform_interface
- sha256: d4ec5fc9ebb2f2e056c617112aa75dcf92fc2e4faaf2ae999caa297473f75d8a
+ sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b"
url: "https://pub.dev"
source: hosted
- version: "2.3.1"
+ version: "2.3.2"
shared_preferences_web:
dependency: transitive
description:
name: shared_preferences_web
- sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf
+ sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a"
url: "https://pub.dev"
source: hosted
- version: "2.2.1"
+ version: "2.3.0"
shared_preferences_windows:
dependency: transitive
description:
@@ -830,18 +830,18 @@ packages:
dependency: transitive
description:
name: stack_trace
- sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
+ sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
- version: "1.11.0"
+ version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
- sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
+ sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
- version: "2.1.1"
+ version: "2.1.2"
stream_transform:
dependency: transitive
description:
@@ -870,18 +870,18 @@ packages:
dependency: transitive
description:
name: test_api
- sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
+ sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
- version: "0.6.0"
+ version: "0.6.1"
toml:
dependency: transitive
description:
name: toml
- sha256: "157c5dca5160fced243f3ce984117f729c788bb5e475504f3dbcda881accee44"
+ sha256: "9968de24e45b632bf1a654fe1ac7b6fe5261c349243df83fd262397799c45a2d"
url: "https://pub.dev"
source: hosted
- version: "0.14.0"
+ version: "0.15.0"
typed_data:
dependency: transitive
description:
@@ -902,34 +902,34 @@ packages:
dependency: "direct main"
description:
name: url_launcher
- sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba
+ sha256: "0ecc004c62fd3ed36a2ffcbe0dd9700aee63bd7532d0b642a488b1ec310f492e"
url: "https://pub.dev"
source: hosted
- version: "6.2.1"
+ version: "6.2.5"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
- sha256: "31222ffb0063171b526d3e569079cf1f8b294075ba323443fdc690842bfd4def"
+ sha256: d4ed0711849dd8e33eb2dd69c25db0d0d3fdc37e0a62e629fe32f57a22db2745
url: "https://pub.dev"
source: hosted
- version: "6.2.0"
+ version: "6.3.0"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
- sha256: "4ac97281cf60e2e8c5cc703b2b28528f9b50c8f7cebc71df6bdf0845f647268a"
+ sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5"
url: "https://pub.dev"
source: hosted
- version: "6.2.0"
+ version: "6.2.5"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
- sha256: "9f2d390e096fdbe1e6e6256f97851e51afc2d9c423d3432f1d6a02a8a9a8b9fd"
+ sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811
url: "https://pub.dev"
source: hosted
- version: "3.1.0"
+ version: "3.1.1"
url_launcher_macos:
dependency: transitive
description:
@@ -942,58 +942,58 @@ packages:
dependency: transitive
description:
name: url_launcher_platform_interface
- sha256: "980e8d9af422f477be6948bdfb68df8433be71f5743a188968b0c1b887807e50"
+ sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
url: "https://pub.dev"
source: hosted
- version: "2.2.0"
+ version: "2.3.2"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
- sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2"
+ sha256: "3692a459204a33e04bc94f5fb91158faf4f2c8903281ddd82915adecdb1a901d"
url: "https://pub.dev"
source: hosted
- version: "2.2.0"
+ version: "2.3.0"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
- sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc"
+ sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7
url: "https://pub.dev"
source: hosted
- version: "3.1.0"
+ version: "3.1.1"
uuid:
dependency: transitive
description:
name: uuid
- sha256: b715b8d3858b6fa9f68f87d20d98830283628014750c2b09b6f516c1da4af2a7
+ sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8
url: "https://pub.dev"
source: hosted
- version: "4.1.0"
+ version: "4.3.3"
vector_graphics:
dependency: transitive
description:
name: vector_graphics
- sha256: "18f6690295af52d081f6808f2f7c69f0eed6d7e23a71539d75f4aeb8f0062172"
+ sha256: "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3"
url: "https://pub.dev"
source: hosted
- version: "1.1.9+2"
+ version: "1.1.11+1"
vector_graphics_codec:
dependency: transitive
description:
name: vector_graphics_codec
- sha256: "531d20465c10dfac7f5cd90b60bbe4dd9921f1ec4ca54c83ebb176dbacb7bb2d"
+ sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da
url: "https://pub.dev"
source: hosted
- version: "1.1.9+2"
+ version: "1.1.11+1"
vector_graphics_compiler:
dependency: transitive
description:
name: vector_graphics_compiler
- sha256: "03012b0a33775c5530576b70240308080e1d5050f0faf000118c20e6463bc0ad"
+ sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81"
url: "https://pub.dev"
source: hosted
- version: "1.1.9+2"
+ version: "1.1.11+1"
vector_math:
dependency: transitive
description:
@@ -1010,78 +1010,86 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.4.0+2"
+ vm_service:
+ dependency: transitive
+ description:
+ name: vm_service
+ sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
+ url: "https://pub.dev"
+ source: hosted
+ version: "13.0.0"
web:
dependency: transitive
description:
name: web
- sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
+ sha256: "1d9158c616048c38f712a6646e317a3426da10e884447626167240d45209cbad"
url: "https://pub.dev"
source: hosted
- version: "0.1.4-beta"
+ version: "0.5.0"
webview_flutter:
dependency: "direct main"
description:
name: webview_flutter
- sha256: "42393b4492e629aa3a88618530a4a00de8bb46e50e7b3993fedbfdc5352f0dbf"
+ sha256: "25e1b6e839e8cbfbd708abc6f85ed09d1727e24e08e08c6b8590d7c65c9a8932"
url: "https://pub.dev"
source: hosted
- version: "4.4.2"
+ version: "4.7.0"
webview_flutter_android:
dependency: transitive
description:
name: webview_flutter_android
- sha256: "8326ee235f87605a2bfc444a4abc897f4abc78d83f054ba7d3d1074ce82b4fbf"
+ sha256: "3e5f4e9d818086b0d01a66fb1ff9cc72ab0cc58c71980e3d3661c5685ea0efb0"
url: "https://pub.dev"
source: hosted
- version: "3.12.1"
+ version: "3.15.0"
webview_flutter_platform_interface:
dependency: transitive
description:
name: webview_flutter_platform_interface
- sha256: "6d9213c65f1060116757a7c473247c60f3f7f332cac33dc417c9e362a9a13e4f"
+ sha256: d937581d6e558908d7ae3dc1989c4f87b786891ab47bb9df7de548a151779d8d
url: "https://pub.dev"
source: hosted
- version: "2.6.0"
+ version: "2.10.0"
webview_flutter_wkwebview:
dependency: transitive
description:
name: webview_flutter_wkwebview
- sha256: af6f5ab05918070b33507b0d453ba9fb7d39338a3256c23cf9433dc68100774a
+ sha256: "9bf168bccdf179ce90450b5f37e36fe263f591c9338828d6bf09b6f8d0f57f86"
url: "https://pub.dev"
source: hosted
- version: "3.9.3"
+ version: "3.12.0"
win32:
dependency: transitive
description:
name: win32
- sha256: "350a11abd2d1d97e0cc7a28a81b781c08002aa2864d9e3f192ca0ffa18b06ed3"
+ sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8"
url: "https://pub.dev"
source: hosted
- version: "5.0.9"
+ version: "5.2.0"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
- sha256: "589ada45ba9e39405c198fe34eb0f607cddb2108527e658136120892beac46d2"
+ sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d
url: "https://pub.dev"
source: hosted
- version: "1.0.3"
+ version: "1.0.4"
xml:
dependency: transitive
description:
name: xml
- sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84"
+ sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226
url: "https://pub.dev"
source: hosted
- version: "6.3.0"
+ version: "6.5.0"
xml2json:
dependency: transitive
description:
name: xml2json
- sha256: "1cd5d23474f38e794fbcab262290bc638c59c985c34d29180fc4525eda24ea7d"
+ sha256: d97aed12d54193611c442c268155398f4170b52cfc0058aabbd79160c9c8eefb
url: "https://pub.dev"
source: hosted
- version: "6.2.0"
+ version: "6.2.2"
yaml:
dependency: transitive
description:
@@ -1091,5 +1099,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
- dart: ">=3.1.0 <4.0.0"
- flutter: ">=3.13.0"
+ dart: ">=3.3.0 <4.0.0"
+ flutter: ">=3.19.0"
diff --git a/pubspec.yaml b/pubspec.yaml
index ed2fecd..9132261 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
-version: 2.3.0+53
+version: 2.3.1+54
environment:
sdk: '>=3.1.0 <4.0.0'
@@ -43,14 +43,14 @@ dependencies:
quick_actions: ^1.0.5
platform_maps_flutter: ^1.0.2
material_floating_search_bar_2: ^0.5.0
- geolocator: ^10.0.0
+ geolocator: ^11.0.0
apple_maps_flutter: ^1.2.0
flutter_config: ^2.0.2
shared_preferences: ^2.2.1
back_button_interceptor: ^7.0.0
webview_flutter: ^4.4.2
share_plus: ^7.2.1
- flutter_i18n: ^0.34.0
+ flutter_i18n: ^0.35.1
flutter_localizations:
sdk: flutter
app_settings: ^5.1.1