Skip to content

Commit 29f14e7

Browse files
authored
Merge pull request #1 from nylo-core/main
Merge Main
2 parents b888ea4 + 51115c0 commit 29f14e7

File tree

81 files changed

+2102
-334
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2102
-334
lines changed

.flutter-plugins

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# This is a generated file; do not edit or check into version control.
2-
flutter_secure_storage=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.0.0/
3-
flutter_secure_storage_linux=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.0/
4-
flutter_secure_storage_macos=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.0.1/
5-
flutter_secure_storage_web=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.1.2/
6-
flutter_secure_storage_windows=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.0.0/
2+
flutter_secure_storage=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/
3+
flutter_secure_storage_linux=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.1/
4+
flutter_secure_storage_macos=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.2/
5+
flutter_secure_storage_web=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/
6+
flutter_secure_storage_windows=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/
77
path_provider=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider-2.1.3/
88
path_provider_android=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_android-2.2.4/
99
path_provider_foundation=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/
1010
path_provider_linux=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
1111
path_provider_windows=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/
12-
url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.2.6/
12+
url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.3.0/
1313
url_launcher_android=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.1/
1414
url_launcher_ios=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/
1515
url_launcher_linux=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/

.flutter-plugins-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +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.0.0/","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.0.0/","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.0.1/","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.0/","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.0.0/","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.1.2/","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-01 21:53:11.774330","version":"3.19.5"}
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-06-05 15:01:58.839986","version":"3.22.1"}

CHANGELOG.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,62 @@
1+
## [1.7.3] - 2024-06-15
2+
3+
* Update README.md
4+
5+
## [1.7.2] - 2024-06-15
6+
7+
* Update README.md
8+
9+
## [1.7.1] - 2024-06-14
10+
11+
* Add extra check in `ErrorWidget.builder` to get file name from the stack trace
12+
13+
## [1.7.0] - 2024-06-14
14+
15+
* Fix error with Web not working
16+
* Add new Regex to catch more `classNames` in the stack trace
17+
* `ErrorStackLogLevel.verbose` (default)
18+
* Fix example project
19+
* Update README.md
20+
21+
## [1.6.0] - 2024-06-12
22+
23+
* Update screenshots
24+
25+
## [1.5.0] - 2024-06-10
26+
27+
* Add `errorWidget` to ErrorStack init method. This allows you to set a custom error widget to be displayed when an error occurs in production.
28+
29+
## [1.4.0] - 2024-06-05
30+
31+
* Update debug and release widget to support responsive design.
32+
33+
## [1.3.4] - 2024-05-22
34+
35+
* Update pubspec.yaml
36+
37+
## [1.3.3] - 2024-05-17
38+
39+
* Update pubspec.yaml
40+
41+
## [1.3.2] - 2024-05-14
42+
43+
* Update pubspec.yaml
44+
45+
## [1.3.1] - 2024-05-12
46+
47+
* Update pubspec.yaml
48+
* Update workflow
49+
50+
## [1.3.0] - 2024-05-11
51+
52+
* Update pubspec.yaml
53+
54+
## [1.2.1] - 2024-05-04
55+
56+
* Update logo
57+
* Update README.md
58+
* Small tweak to storage key
59+
160
## [1.2.0] - 2024-05-01
261

362
* Update README.md

README.md

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
[![pub package](https://img.shields.io/pub/v/permission_policy.svg)](https://pub.dartlang.org/packages/permission_policy)
44
[![License: MIT](https://img.shields.io/badge/license-MIT-purple.svg)](https://opensource.org/licenses/MIT)
55

6-
## Usage
7-
86
<img src="https://raw.githubusercontent.com/nylo-core/error-stack/main/screenshots/error_stack.png" height="400" />
97

108
### Simple to use
@@ -33,9 +31,9 @@ class AppProvider {
3331
...
3432
import 'package:error_stack/error_stack.dart';
3533
36-
void main() {
34+
void main() async {
3735
WidgetsFlutterBinding.ensureInitialized();
38-
ErrorStack.init(); // Initialize Error Stack
36+
await ErrorStack.init(); // Initialize Error Stack
3937
runApp(MyApp());
4038
}
4139
```
@@ -44,10 +42,11 @@ Once you have added Error Stack to your application, it will override the defaul
4442

4543
## Features
4644

45+
- [x] Instant Google search to resolve error
4746
- [x] Copy error message to clipboard
48-
- [x] Search fix for error via Google
4947
- [x] Modern UI for debug and release mode
5048
- [x] Light and Dark mode support
49+
- [x] Customizable Production Error Page
5150

5251
## Getting started
5352

@@ -57,7 +56,7 @@ Add the following to your `pubspec.yaml` file:
5756

5857
``` yaml
5958
dependencies:
60-
error_stack: ^1.2.0
59+
error_stack: ^1.7.3
6160
```
6261
6362
or with Dart:
@@ -72,8 +71,8 @@ The package is very simple to use.
7271

7372
### Log Levels
7473

75-
- `ErrorStackLogLevel.minimal` (default)
76-
- `ErrorStackLogLevel.verbose` (shows more information)
74+
- `ErrorStackLogLevel.verbose` (default)
75+
- `ErrorStackLogLevel.minimal` (shows less information)
7776

7877
You can set the log level when initializing Error Stack.
7978

@@ -87,7 +86,7 @@ class AppProvider {
8786
@override
8887
boot(Nylo nylo) async {
8988
...
90-
nylo.useErrorStack(logLevel: ErrorStackLogLevel.verbose);
89+
nylo.useErrorStack(logLevel: ErrorStackLogLevel.minimal);
9190
}
9291
}
9392
```
@@ -98,13 +97,32 @@ class AppProvider {
9897
import 'package:flutter/material.dart';
9998
import 'package:error_stack/error_stack.dart';
10099
101-
void main() {
100+
void main() async {
102101
WidgetsFlutterBinding.ensureInitialized();
103-
ErrorStack.init(logLevel: ErrorStackLogLevel.verbose); // Initialize Error Stack
102+
await ErrorStack.init(logLevel: ErrorStackLogLevel.minimal); // Initialize Error Stack
104103
runApp(MyApp());
105104
}
106105
```
107106

107+
### Full Parameters
108+
109+
``` dart
110+
ErrorStack.init(
111+
level: ErrorStackLogLevel.verbose, // The ErrorStackLogLevel.verbose | ErrorStackLogLevel.minimal
112+
initialRoute: "/", // Navigate to this route when tapping "Restart app"
113+
errorWidget: (errorDetails) { // The error widget you want to show in release mode
114+
return Scaffold(
115+
appBar: AppBar(
116+
title: Text("Error"),
117+
),
118+
body: Center(
119+
child: Text("An error occurred"),
120+
),
121+
);
122+
}
123+
);
124+
```
125+
108126
Try the [example](/example) app to see how it works.
109127

110128
## Changelog

example/.flutter-plugins

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# This is a generated file; do not edit or check into version control.
2-
flutter_secure_storage=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.0.0/
3-
flutter_secure_storage_linux=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.0/
4-
flutter_secure_storage_macos=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.0.1/
5-
flutter_secure_storage_web=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.1.2/
6-
flutter_secure_storage_windows=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.0.0/
2+
flutter_secure_storage=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.2.2/
3+
flutter_secure_storage_linux=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.1/
4+
flutter_secure_storage_macos=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.1.2/
5+
flutter_secure_storage_web=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.2.1/
6+
flutter_secure_storage_windows=/Users/anthony/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.1.2/
77
path_provider=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider-2.0.15/
88
path_provider_android=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_android-2.0.27/
99
path_provider_foundation=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_foundation-2.2.4/
1010
path_provider_linux=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.7/
1111
path_provider_windows=/Users/anthony/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.7/
12-
url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.2.6/
13-
url_launcher_android=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.2.2/
12+
url_launcher=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher-6.3.0/
13+
url_launcher_android=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.3/
1414
url_launcher_ios=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.5/
1515
url_launcher_linux=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_linux-3.1.1/
1616
url_launcher_macos=/Users/anthony/.pub-cache/hosted/pub.dev/url_launcher_macos-3.1.0/

0 commit comments

Comments
 (0)