From 2f82da46a75c6fbc41e4f6ebdc8affb4acac9ea8 Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 5 Jun 2024 16:59:58 +0100 Subject: [PATCH] v1.4.0 --- .flutter-plugins | 2 +- .flutter-plugins-dependencies | 2 +- CHANGELOG.md | 4 + README.md | 2 +- example/.flutter-plugins | 4 +- example/.flutter-plugins-dependencies | 2 +- example/pubspec.lock | 22 +- lib/widgets/error_stack_debug_widget.dart | 462 ++++++++++---------- lib/widgets/error_stack_release_widget.dart | 62 +-- pubspec.yaml | 4 +- 10 files changed, 300 insertions(+), 266 deletions(-) diff --git a/.flutter-plugins b/.flutter-plugins index 9e7e750..3b860d0 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -9,7 +9,7 @@ path_provider_android=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_and path_provider_foundation=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/ path_provider_linux=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ path_provider_windows=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/ -url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.2.6/ +url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.3.0/ url_launcher_android=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.1/ url_launcher_ios=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/ url_launcher_linux=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 5fa655f..bcd547b 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.1/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_secure_storage_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.2/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_macos-3.1.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.1/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]},{"name":"url_launcher_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.1/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.1/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2024-05-22 15:21:07.396063","version":"3.22.0"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.1/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_secure_storage_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.2/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_macos-3.1.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.1/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]},{"name":"url_launcher_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.1/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.1/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2024-06-05 15:01:58.839986","version":"3.22.1"} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 95a6e55..be308e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.4.0] - 2024-06-05 + +* Update debug and release widget to support responsive design. + ## [1.3.4] - 2024-05-22 * Update pubspec.yaml diff --git a/README.md b/README.md index 9e047ff..d3a3ada 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Add the following to your `pubspec.yaml` file: ``` yaml dependencies: - error_stack: ^1.3.4 + error_stack: ^1.4.0 ``` or with Dart: diff --git a/example/.flutter-plugins b/example/.flutter-plugins index a5d48e5..d204ad0 100644 --- a/example/.flutter-plugins +++ b/example/.flutter-plugins @@ -9,8 +9,8 @@ path_provider_android=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_and path_provider_foundation=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.4/ path_provider_linux=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.7/ path_provider_windows=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.7/ -url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.2.6/ -url_launcher_android=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.2.2/ +url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.3.0/ +url_launcher_android=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.3/ url_launcher_ios=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/ url_launcher_linux=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/ url_launcher_macos=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_macos-3.1.0/ diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index 9ba683d..72c6745 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.4/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_android-2.0.27/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.2.2/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_secure_storage_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.2/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.4/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_macos-3.1.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.1/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.7/","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.7/","native_build":false,"dependencies":[]},{"name":"url_launcher_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.1/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.1/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2024-05-22 15:21:07.445415","version":"3.22.0"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.4/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_android-2.0.27/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.3/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_secure_storage_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.2/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.4/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_macos-3.1.0/","native_build":true,"dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.1/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.7/","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.7/","native_build":false,"dependencies":[]},{"name":"url_launcher_windows","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.1/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.1/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2024-06-05 15:01:58.903097","version":"3.22.1"} \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock index b0f2f5c..104bf32 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -47,7 +47,7 @@ packages: path: ".." relative: true source: path - version: "1.3.3" + version: "1.3.4" fake_async: dependency: transitive description: @@ -259,10 +259,10 @@ packages: dependency: transitive description: name: plugin_platform_interface - sha256: dbf0f707c78beedc9200146ad3cb0ab4d5da13c246336987be6940f026500d3a + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.8" process: dependency: transitive description: @@ -328,18 +328,18 @@ packages: dependency: transitive description: name: url_launcher - sha256: "6ce1e04375be4eed30548f10a315826fd933c1e493206eab82eed01f438c8d2e" + sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3" url: "https://pub.dev" source: hosted - version: "6.2.6" + version: "6.3.0" url_launcher_android: dependency: transitive description: name: url_launcher_android - sha256: "507dc655b1d9cb5ebc756032eb785f114e415f91557b73bf60b7e201dfedeb2f" + sha256: ceb2625f0c24ade6ef6778d1de0b2e44f2db71fded235eb52295247feba8c5cf url: "https://pub.dev" source: hosted - version: "6.2.2" + version: "6.3.3" url_launcher_ios: dependency: transitive description: @@ -368,10 +368,10 @@ packages: dependency: transitive description: name: url_launcher_platform_interface - sha256: "4aca1e060978e19b2998ee28503f40b5ba6226819c2b5e3e4d1821e8ccd92198" + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.3.2" url_launcher_web: dependency: transitive description: @@ -429,5 +429,5 @@ packages: source: hosted version: "0.2.0+3" sdks: - dart: ">=3.3.3 <4.0.0" - flutter: ">=3.19.0" + dart: ">=3.4.0 <4.0.0" + flutter: ">=3.22.0" diff --git a/lib/widgets/error_stack_debug_widget.dart b/lib/widgets/error_stack_debug_widget.dart index b20d60e..b97ee07 100644 --- a/lib/widgets/error_stack_debug_widget.dart +++ b/lib/widgets/error_stack_debug_widget.dart @@ -21,7 +21,6 @@ class ErrorStackDebugWidget extends StatefulWidget { } class _ErrorStackDebugWidget extends State { - /// The theme mode String? _themeMode; @@ -69,202 +68,233 @@ class _ErrorStackDebugWidget extends State { backgroundColor: _themeMode == "light" ? Colors.white : _hexColor("#282c34"), body: SafeArea( - child: Stack( + child: Center( + child: ListView( + shrinkWrap: true, + padding: EdgeInsets.zero, children: [ - Positioned.fill( - child: Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Icon( - Icons.error_outline, - color: Colors.red, - size: 50.0, - ), - const SizedBox(height: 10.0), - Text( - 'Error Occurred!', - style: TextStyle( - fontSize: 18.0, - fontWeight: FontWeight.bold, - color: _themeMode == "light" - ? Colors.black - : Colors.white), - ), - const SizedBox(height: 16.0), - const Divider(), - Container( - margin: const EdgeInsets.symmetric(horizontal: 8), - padding: const EdgeInsets.symmetric(vertical: 8), - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8.0), - color: _themeMode == "light" - ? Colors.grey.shade100 - : _hexColor("#13151a"), - ), - child: Column( - children: [ - Container( - height: 30, - padding: - const EdgeInsets.symmetric(horizontal: 8), - width: double.infinity, - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: - MainAxisAlignment.spaceBetween, + SizedBox( + height: 550, + child: Stack( + children: [ + Positioned.fill( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Icon( + Icons.error_outline, + color: Colors.red, + size: 50.0, + ), + const SizedBox(height: 10.0), + Text( + 'Error Occurred!', + style: TextStyle( + fontSize: 18.0, + fontWeight: FontWeight.bold, + color: _themeMode == "light" + ? Colors.black + : Colors.white), + ), + const SizedBox(height: 16.0), + const Divider(), + Container( + margin: const EdgeInsets.symmetric(horizontal: 8), + padding: const EdgeInsets.symmetric(vertical: 8), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8.0), + color: _themeMode == "light" + ? Colors.grey.shade100 + : _hexColor("#13151a"), + ), + child: Column( children: [ - Expanded( - child: Container( - width: double.infinity, - padding: const EdgeInsets.only(bottom: 8), - decoration: BoxDecoration( - borderRadius: - BorderRadius.circular(8.0), - ), + Container( + height: 30, + padding: const EdgeInsets.symmetric( + horizontal: 8), + width: double.infinity, + child: Row( + crossAxisAlignment: + CrossAxisAlignment.center, + mainAxisAlignment: + MainAxisAlignment.spaceBetween, + children: [ + Expanded( + child: Container( + width: double.infinity, + padding: const EdgeInsets.only( + bottom: 8), + decoration: BoxDecoration( + borderRadius: + BorderRadius.circular(8.0), + ), + child: Text( + className(), + textAlign: TextAlign.left, + maxLines: 1, + style: TextStyle( + fontSize: 12.0, + color: Colors.grey.shade600, + fontWeight: FontWeight.bold, + ), + ), + ), + ), + IconButton( + padding: EdgeInsets.zero, + icon: Icon(Icons.copy, + size: 15, + color: _themeMode == 'light' + ? Colors.black + : Colors.white), + onPressed: () { + Clipboard.setData(ClipboardData( + text: + "${widget.errorDetails.exceptionAsString()} flutter")) + .then((_) { + ScaffoldMessenger.of(context) + .showSnackBar(const SnackBar( + content: Text( + 'Copied to your clipboard!', + style: TextStyle( + fontWeight: + FontWeight.w600), + ))); + }); + }, + ) + ], + ), + ), + Container( + padding: const EdgeInsets.symmetric( + vertical: 16), + margin: const EdgeInsets.symmetric( + horizontal: 8), + width: double.infinity, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(8.0), + color: _themeMode == 'light' + ? _hexColor("#282c34") + : Colors.white.withOpacity(0.2), + ), + child: Padding( + padding: const EdgeInsets.symmetric( + horizontal: 16), child: Text( - className(), - textAlign: TextAlign.left, - maxLines: 1, + widget.errorDetails.exceptionAsString(), + textAlign: TextAlign.center, style: TextStyle( - fontSize: 12.0, - color: Colors.grey.shade600, + fontSize: 16.0, + color: _hexColor("#d8b576"), fontWeight: FontWeight.bold, ), ), ), ), - IconButton( - padding: EdgeInsets.zero, - icon: Icon(Icons.copy, - size: 15, - color: _themeMode == 'light' - ? Colors.black - : Colors.white), - onPressed: () { - Clipboard.setData(ClipboardData( - text: - "${widget.errorDetails.exceptionAsString()} flutter")) - .then((_) { - ScaffoldMessenger.of(context) - .showSnackBar(const SnackBar( - content: Text( - 'Copied to your clipboard!', - style: TextStyle( - fontWeight: FontWeight.w600), - ))); - }); - }, - ) ], - ), - ), - Container( - padding: const EdgeInsets.symmetric(vertical: 16), - margin: const EdgeInsets.symmetric(horizontal: 8), - width: double.infinity, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(8.0), - color: _themeMode == 'light' - ? _hexColor("#282c34") - : Colors.white.withOpacity(0.2), - ), - child: Padding( - padding: - const EdgeInsets.symmetric(horizontal: 16), - child: Text( - widget.errorDetails.exceptionAsString(), + )), + const SizedBox(height: 20.0), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + "Operating System Version", + style: TextStyle( + color: _themeMode == "light" + ? Colors.black54 + : Colors.grey, + fontSize: 14, + ), textAlign: TextAlign.center, + ), + Text( + Platform.operatingSystemVersion, style: TextStyle( - fontSize: 16.0, - color: _hexColor("#d8b576"), - fontWeight: FontWeight.bold, + color: _themeMode == "light" + ? Colors.black + : Colors.white, + fontSize: 14, ), + textAlign: TextAlign.center, ), - ), - ), - ], - )), - const SizedBox(height: 20.0), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 16), - child: Column( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Text( - "Operating System Version", - style: TextStyle( - color: _themeMode == "light" - ? Colors.black54 - : Colors.grey, - fontSize: 14, - ), - textAlign: TextAlign.center, - ), - Text( - Platform.operatingSystemVersion, - style: TextStyle( - color: _themeMode == "light" - ? Colors.black - : Colors.white, - fontSize: 14, - ), - textAlign: TextAlign.center, - ), - const SizedBox(height: 10.0), - Text( - "Operating System", - style: TextStyle( - color: _themeMode == "light" - ? Colors.black54 - : Colors.grey, - fontSize: 14, + const SizedBox(height: 10.0), + Text( + "Operating System", + style: TextStyle( + color: _themeMode == "light" + ? Colors.black54 + : Colors.grey, + fontSize: 14, + ), + textAlign: TextAlign.center, + ), + Text( + Platform.operatingSystem, + style: TextStyle( + color: _themeMode == "light" + ? Colors.black + : Colors.white, + fontSize: 14, + ), + textAlign: TextAlign.center, + ), + ], ), - textAlign: TextAlign.center, ), - Text( - Platform.operatingSystem, - style: TextStyle( - color: _themeMode == "light" - ? Colors.black - : Colors.white, - fontSize: 14, + const SizedBox(height: 20.0), + Container( + decoration: BoxDecoration( + color: _themeMode == "light" + ? Colors.grey.shade50 + : Colors.white.withOpacity(0.2), + borderRadius: BorderRadius.circular(8)), + margin: const EdgeInsets.symmetric(horizontal: 16), + child: Row( + crossAxisAlignment: CrossAxisAlignment.center, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Icon(Icons.search), + CupertinoButton( + onPressed: () { + String exception = + "${widget.errorDetails.exceptionAsString()}%20flutter"; + String encodedQuery = + Uri.encodeQueryComponent(exception); + + launchUrl(Uri.parse( + "https://www.google.com/search?q=$encodedQuery")); + }, + child: Text( + "Search Google for this error", + style: TextStyle( + fontWeight: FontWeight.w600, + color: _themeMode == "light" + ? _hexColor("#0045a0") + : Colors.white, + ), + ), + ), + ], ), - textAlign: TextAlign.center, ), - ], - ), - ), - const SizedBox(height: 20.0), - Container( - decoration: BoxDecoration( - color: _themeMode == "light" - ? Colors.grey.shade50 - : Colors.white.withOpacity(0.2), - borderRadius: BorderRadius.circular(8)), - margin: const EdgeInsets.symmetric(horizontal: 16), - child: Row( - crossAxisAlignment: CrossAxisAlignment.center, - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Icon(Icons.search), - CupertinoButton( + TextButton( onPressed: () { - String exception = - "${widget.errorDetails.exceptionAsString()}%20flutter"; - String encodedQuery = - Uri.encodeQueryComponent(exception); - - launchUrl(Uri.parse( - "https://www.google.com/search?q=$encodedQuery")); + String initialRoute = + ErrorStack.instance.initialRoute; + Navigator.pushNamedAndRemoveUntil( + context, initialRoute, (_) => false); }, child: Text( - "Search Google for this error", + "Restart app", style: TextStyle( - fontWeight: FontWeight.w600, color: _themeMode == "light" - ? _hexColor("#0045a0") + ? Colors.grey : Colors.white, ), ), @@ -272,64 +302,52 @@ class _ErrorStackDebugWidget extends State { ], ), ), - TextButton( - onPressed: () { - String initialRoute = ErrorStack.instance.initialRoute; - Navigator.pushNamedAndRemoveUntil( - context, initialRoute, (_) => false); - }, - child: Text( - "Restart app", - style: TextStyle( + ), + Positioned( + right: 0, + top: 0, + child: IconButton( + // dark mode / light mode + icon: Icon( + _themeMode == "light" + ? Icons.brightness_4 + : Icons.brightness_7, color: _themeMode == "light" - ? Colors.grey + ? Colors.black : Colors.white, ), + onPressed: () async { + _themeMode == 'light' + ? _themeMode = 'dark' + : _themeMode = 'light'; + await ErrorStack.instance.storage.write( + key: '${ErrorStack.storageKey}_theme_mode', + value: _themeMode!); + ErrorStack.instance.themeMode = _themeMode!; + setState(() {}); + }), + ), + Positioned( + bottom: 10, + left: 0, + right: 0, + child: Text( + "ErrorStack v1.4.0", + style: TextStyle( + color: _themeMode == 'light' + ? Colors.black54 + : Colors.white70, + fontSize: 10, ), + textAlign: TextAlign.center, ), - ], - ), - ), - ), - Positioned( - right: 0, - top: 0, - child: IconButton( - // dark mode / light mode - icon: Icon( - _themeMode == "light" - ? Icons.brightness_4 - : Icons.brightness_7, - color: _themeMode == "light" ? Colors.black : Colors.white, ), - onPressed: () async { - _themeMode == 'light' - ? _themeMode = 'dark' - : _themeMode = 'light'; - await ErrorStack.instance.storage.write( - key: '${ErrorStack.storageKey}_theme_mode', - value: _themeMode!); - ErrorStack.instance.themeMode = _themeMode!; - setState(() {}); - }), - ), - Positioned( - bottom: 10, - left: 0, - right: 0, - child: Text( - "ErrorStack v1.0.0", - style: TextStyle( - color: - _themeMode == 'light' ? Colors.black54 : Colors.white70, - fontSize: 10, - ), - textAlign: TextAlign.center, + ], ), ), ], ), - ), + )), ); } diff --git a/lib/widgets/error_stack_release_widget.dart b/lib/widgets/error_stack_release_widget.dart index bace3eb..c74eab1 100644 --- a/lib/widgets/error_stack_release_widget.dart +++ b/lib/widgets/error_stack_release_widget.dart @@ -15,37 +15,49 @@ class ErrorStackReleaseWidget extends StatefulWidget { class _ErrorStackReleaseWidget extends State { @override Widget build(BuildContext context) { - return const Scaffold( + return Scaffold( body: SafeArea( - child: Stack( - children: [ - Positioned.fill( - child: Center( - child: Column( - mainAxisAlignment: MainAxisAlignment.center, + child: Center( + child: ListView( + shrinkWrap: true, + padding: EdgeInsets.zero, + children: const [ + SizedBox( + height: 450, + child: Stack( children: [ - Icon( - Icons.error_outline, - color: Colors.red, - size: 50.0, - ), - SizedBox(height: 10.0), - Text( - 'Oops, something went wrong!', - style: TextStyle( - fontSize: 18.0, - fontWeight: FontWeight.bold, + Positioned.fill( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Icon( + Icons.error_outline, + color: Colors.red, + size: 50.0, + ), + SizedBox(height: 10.0), + Text( + 'Oops, something went wrong!', + style: TextStyle( + fontSize: 18.0, + fontWeight: FontWeight.bold, + ), + ), + SizedBox(height: 16.0), + Divider(), + Text("An error occurred."), + Text( + "Please restart the app or report this issue."), + ], + ), ), ), - SizedBox(height: 16.0), - Divider(), - Text("An error occurred."), - Text("Please restart the app or report this issue."), ], ), - ), - ), - ], + ) + ], + ), ), ), ); diff --git a/pubspec.yaml b/pubspec.yaml index f8f2344..dc8143e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: error_stack description: "ErrorStack helps you swiftly deal with errors in your Flutter applications! Custom error handling UI and logging to keep you productive." -version: 1.3.4 +version: 1.4.0 homepage: https://nylo.dev repository: https://github.com/nylo-core/error-stack/tree/1.x issue_tracker: https://github.com/nylo-core/error-stack/issues @@ -19,7 +19,7 @@ environment: dependencies: flutter_secure_storage: ^9.2.2 - url_launcher: ^6.2.6 + url_launcher: ^6.3.0 flutter: sdk: flutter