Skip to content

Commit 4db23ea

Browse files
committed
fix: fixed missing lints
1 parent ae5b66b commit 4db23ea

28 files changed

+44
-44
lines changed

example/lib/basic_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ void main() {
66
ConsoleHandler(),
77
]);
88
final releaseOptions = CatcherOptions(PageReportMode(), [
9-
EmailManualHandler(['recipient@e mail.com'])
9+
EmailManualHandler(['recipient@e mail.com']),
1010
]);
1111

1212
Catcher(

example/lib/change_custom_parameters_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void main() {
1414
customParameters: customParameters,
1515
);
1616
final releaseOptions = CatcherOptions(PageReportMode(), [
17-
EmailManualHandler(['recipient@email.com'])
17+
EmailManualHandler(['recipient@email.com']),
1818
]);
1919

2020
catcher = Catcher(
@@ -67,7 +67,7 @@ class ChildWidget extends StatelessWidget {
6767
ElevatedButton(
6868
onPressed: generateError,
6969
child: const Text('Generate error'),
70-
)
70+
),
7171
],
7272
);
7373
}

example/lib/cupertino_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ void main() {
1010
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
1111
printLogs: true,
1212
),
13-
ConsoleHandler()
13+
ConsoleHandler(),
1414
]);
1515
final releaseOptions = CatcherOptions(PageReportMode(), [
16-
EmailManualHandler(['recipient@email.com'])
16+
EmailManualHandler(['recipient@email.com']),
1717
]);
1818

1919
Catcher(

example/lib/custom_logger_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main() {
1010
logger: CustomCatcherLogger(),
1111
);
1212
final releaseOptions = CatcherOptions(PageReportMode(), [
13-
EmailManualHandler(['recipient@email.com'])
13+
EmailManualHandler(['recipient@email.com']),
1414
]);
1515

1616
Catcher(

example/lib/custom_navigator_key_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import 'package:flutter/material.dart';
44
void main() {
55
final debugOptions = CatcherOptions(DialogReportMode(), [
66
EmailManualHandler(['recipient@email.com']),
7-
ConsoleHandler()
7+
ConsoleHandler(),
88
]);
99
final releaseOptions = CatcherOptions(PageReportMode(), [
10-
EmailManualHandler(['recipient@email.com'])
10+
EmailManualHandler(['recipient@email.com']),
1111
]);
1212

1313
final navigatorKey = GlobalKey<NavigatorState>();

example/lib/custom_report_mode_example.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import 'package:flutter/material.dart';
55
void main() {
66
final debugOptions = CatcherOptions(CustomPageReportMode(), [
77
EmailManualHandler(['recipient@email.com']),
8-
ConsoleHandler()
8+
ConsoleHandler(),
99
]);
1010
final releaseOptions = CatcherOptions(PageReportMode(), [
11-
EmailManualHandler(['recipient@email.com'])
11+
EmailManualHandler(['recipient@email.com']),
1212
]);
1313

1414
Catcher(
@@ -118,7 +118,7 @@ class CustomPage extends StatelessWidget {
118118
reportMode.onActionRejected(report);
119119
Navigator.pop(context);
120120
},
121-
)
121+
),
122122
],
123123
),
124124
);

example/lib/discord_handler_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void main() {
1313
),
1414
]);
1515
final releaseOptions = CatcherOptions(PageReportMode(), [
16-
EmailManualHandler(['recipient@email.com'])
16+
EmailManualHandler(['recipient@email.com']),
1717
]);
1818

1919
Catcher(

example/lib/email_manual_handler_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ void main() {
1010
emailTitle: 'Sample Title',
1111
emailHeader: 'Sample Header',
1212
printLogs: true,
13-
)
13+
),
1414
],
1515
customParameters: <String, dynamic>{
1616
'Test': 'Test12345',
17-
'Test2': 'Test54321'
17+
'Test2': 'Test54321',
1818
},
1919
);
2020

example/lib/error_widget_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ void main() {
66
ConsoleHandler(),
77
]);
88
final releaseOptions = CatcherOptions(PageReportMode(), [
9-
EmailManualHandler(['recipient@email.com'])
9+
EmailManualHandler(['recipient@email.com']),
1010
]);
1111

1212
Catcher(

example/lib/excluded_parameters_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ void main() {
1212
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
1313
printLogs: true,
1414
),
15-
ConsoleHandler()
15+
ConsoleHandler(),
1616
],
1717

1818
//Exclude these parameters from report. These params are device info params.
1919
excludedParameters: ['androidId', 'model'],
2020
);
2121
final releaseOptions = CatcherOptions(PageReportMode(), [
22-
EmailManualHandler(['recipient@email.com'])
22+
EmailManualHandler(['recipient@email.com']),
2323
]);
2424

2525
Catcher(

example/lib/explicit_error_report_handler_map_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ void main() {
1111
HttpRequestType.post,
1212
Uri.parse('https://httpstat.us/200'),
1313
printLogs: true,
14-
)
14+
),
1515
],
1616
explicitExceptionHandlersMap: explicitMap,
1717
);
1818
final releaseOptions = CatcherOptions(PageReportMode(), [
19-
EmailManualHandler(['recipient@email.com'])
19+
EmailManualHandler(['recipient@email.com']),
2020
]);
2121

2222
Catcher(

example/lib/explicit_error_report_mode_map_example.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ void main() {
1111
HttpRequestType.post,
1212
Uri.parse('https://httpstat.us/200'),
1313
printLogs: true,
14-
)
14+
),
1515
],
1616
explicitExceptionReportModesMap: explicitReportModesMap,
1717
);
1818
final releaseOptions = CatcherOptions(PageReportMode(), [
19-
EmailManualHandler(['recipient@email.com'])
19+
EmailManualHandler(['recipient@email.com']),
2020
]);
2121

2222
Catcher(
@@ -69,7 +69,7 @@ class ChildWidget extends StatelessWidget {
6969
TextButton(
7070
onPressed: generateSecondError,
7171
child: const Text('Generate second error'),
72-
)
72+
),
7373
],
7474
);
7575
}

example/lib/file_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ChildWidget extends StatelessWidget {
7474
TextButton(
7575
onPressed: generateError,
7676
child: const Text('Generate error'),
77-
)
77+
),
7878
],
7979
);
8080
}

example/lib/filter_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void main() {
1717
},
1818
);
1919
final releaseOptions = CatcherOptions(PageReportMode(), [
20-
EmailManualHandler(['recipient@email.com'])
20+
EmailManualHandler(['recipient@email.com']),
2121
]);
2222

2323
Catcher(

example/lib/http_handler_update_headers_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void main() {
1616
final debugOptions =
1717
CatcherOptions(DialogReportMode(), [httpHandler, ConsoleHandler()]);
1818
final releaseOptions = CatcherOptions(PageReportMode(), [
19-
EmailManualHandler(['recipient@email.com'])
19+
EmailManualHandler(['recipient@email.com']),
2020
]);
2121

2222
Catcher(

example/lib/local_notification_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import 'package:flutter_local_notifications/flutter_local_notifications.dart';
66
void main() {
77
final debugOptions = CatcherOptions(NotificationReportMode(), [
88
EmailManualHandler(['recipient@email.com']),
9-
ConsoleHandler()
9+
ConsoleHandler(),
1010
]);
1111
final releaseOptions = CatcherOptions(PageReportMode(), [
12-
EmailManualHandler(['recipient@email.com'])
12+
EmailManualHandler(['recipient@email.com']),
1313
]);
1414

1515
Catcher(

example/lib/localization_example.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void main() {
1111
HttpRequestType.post,
1212
Uri.parse('https://httpstat.us/200'),
1313
printLogs: true,
14-
)
14+
),
1515
],
1616
localizationOptions: [
1717
LocalizationOptions(
@@ -40,11 +40,11 @@ void main() {
4040
' wysłać raport lub odrzuć aby odrzucić raport.',
4141
pageReportModeAccept: 'Akceptuj',
4242
pageReportModeCancel: 'Odrzuć',
43-
)
43+
),
4444
],
4545
);
4646
final releaseOptions = CatcherOptions(PageReportMode(), [
47-
EmailManualHandler(['recipient@email.com'])
47+
EmailManualHandler(['recipient@email.com']),
4848
]);
4949

5050
Catcher(

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void main() {
1616
),
1717

1818
///Print logs in console
19-
ConsoleHandler()
19+
ConsoleHandler(),
2020
],
2121
);
2222

example/lib/occurences_timeout_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void main() {
1111
reportOccurrenceTimeout: 30000,
1212
);
1313
final releaseOptions = CatcherOptions(PageReportMode(), [
14-
EmailManualHandler(['recipient@email.com'])
14+
EmailManualHandler(['recipient@email.com']),
1515
]);
1616

1717
Catcher(

example/lib/screenshot_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ void main() async {
2626
emailTitle: 'Sample Title',
2727
emailHeader: 'Sample Header',
2828
printLogs: true,
29-
)
29+
),
3030
],
3131
customParameters: <String, dynamic>{
3232
'Test': 'Test12345',
33-
'Test2': 'Test54321'
33+
'Test2': 'Test54321',
3434
},
3535
screenshotsPath: path,
3636
);

example/lib/sentry_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ void main() {
66
final debugOptions = CatcherOptions(DialogReportMode(), [
77
SentryHandler(
88
SentryClient(SentryOptions(dsn: 'YOUR DSN HERE')),
9-
)
9+
),
1010
]);
1111
final releaseOptions = CatcherOptions(PageReportMode(), [
12-
EmailManualHandler(['recipient@email.com'])
12+
EmailManualHandler(['recipient@email.com']),
1313
]);
1414

1515
Catcher(

example/lib/slack_handler_example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void main() {
1717
//ConsoleHandler()
1818
]);
1919
final releaseOptions = CatcherOptions(PageReportMode(), [
20-
EmailManualHandler(['recipient@email.com'])
20+
EmailManualHandler(['recipient@email.com']),
2121
]);
2222

2323
Catcher(

example/lib/update_config_example.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ void main() {
1111
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
1212
printLogs: true,
1313
),
14-
ConsoleHandler()
14+
ConsoleHandler(),
1515
]);
1616
final releaseOptions = CatcherOptions(PageReportMode(), [
17-
EmailManualHandler(['recipient@email.com'])
17+
EmailManualHandler(['recipient@email.com']),
1818
]);
1919

2020
catcher = Catcher(

lib/handlers/discord_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class DiscordHandler extends ReportHandler {
115115
final screenshotPath = screenshot.path;
116116
final formData = FormData.fromMap(<String, dynamic>{
117117
'content': content,
118-
'file': await MultipartFile.fromFile(screenshotPath)
118+
'file': await MultipartFile.fromFile(screenshotPath),
119119
});
120120
response = await _dio.post<dynamic>(webhookUrl, data: formData);
121121
} else {

lib/handlers/http_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class HttpHandler extends ReportHandler {
7575
final screenshotPath = report.screenshot?.path ?? '';
7676
final formData = FormData.fromMap(<String, dynamic>{
7777
'payload_json': json,
78-
'file': await MultipartFile.fromFile(screenshotPath)
78+
'file': await MultipartFile.fromFile(screenshotPath),
7979
});
8080
response = await _dio.post<dynamic>(
8181
endpointUri.toString(),

lib/handlers/slack_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class SlackHandler extends ReportHandler {
5454
'text': message,
5555
'channel': channel,
5656
'username': username,
57-
'icon_emoji': iconEmoji
57+
'icon_emoji': iconEmoji,
5858
};
5959
_printLog('Sending request to Slack server...');
6060
final response = await _dio.post<dynamic>(webhookUrl, data: data);

lib/mode/page_report_mode.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class PageWidgetState extends State<PageWidget> {
146146
),
147147
),
148148
],
149-
)
149+
),
150150
],
151151
),
152152
);

lib/utils/catcher_error_widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class CatcherErrorWidget extends StatelessWidget {
5757
textAlign: TextAlign.center,
5858
),
5959
const SizedBox(height: 10),
60-
_buildStackTraceWidget()
60+
_buildStackTraceWidget(),
6161
],
6262
),
6363
),

0 commit comments

Comments
 (0)