Skip to content

Commit

Permalink
fix: fixed missing lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jhomlala committed Nov 9, 2023
1 parent ae5b66b commit 4db23ea
Show file tree
Hide file tree
Showing 28 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion example/lib/basic_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void main() {
ConsoleHandler(),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['recipient@e mail.com'])
EmailManualHandler(['recipient@e mail.com']),
]);

Catcher(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/change_custom_parameters_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void main() {
customParameters: customParameters,
);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

catcher = Catcher(
Expand Down Expand Up @@ -67,7 +67,7 @@ class ChildWidget extends StatelessWidget {
ElevatedButton(
onPressed: generateError,
child: const Text('Generate error'),
)
),
],
);
}
Expand Down
4 changes: 2 additions & 2 deletions example/lib/cupertino_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ void main() {
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
printLogs: true,
),
ConsoleHandler()
ConsoleHandler(),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/custom_logger_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void main() {
logger: CustomCatcherLogger(),
);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/custom_navigator_key_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import 'package:flutter/material.dart';
void main() {
final debugOptions = CatcherOptions(DialogReportMode(), [
EmailManualHandler(['[email protected]']),
ConsoleHandler()
ConsoleHandler(),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

final navigatorKey = GlobalKey<NavigatorState>();
Expand Down
6 changes: 3 additions & 3 deletions example/lib/custom_report_mode_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import 'package:flutter/material.dart';
void main() {
final debugOptions = CatcherOptions(CustomPageReportMode(), [
EmailManualHandler(['[email protected]']),
ConsoleHandler()
ConsoleHandler(),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down Expand Up @@ -118,7 +118,7 @@ class CustomPage extends StatelessWidget {
reportMode.onActionRejected(report);
Navigator.pop(context);
},
)
),
],
),
);
Expand Down
2 changes: 1 addition & 1 deletion example/lib/discord_handler_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void main() {
),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/email_manual_handler_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ void main() {
emailTitle: 'Sample Title',
emailHeader: 'Sample Header',
printLogs: true,
)
),
],
customParameters: <String, dynamic>{
'Test': 'Test12345',
'Test2': 'Test54321'
'Test2': 'Test54321',
},
);

Expand Down
2 changes: 1 addition & 1 deletion example/lib/error_widget_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void main() {
ConsoleHandler(),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/excluded_parameters_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ void main() {
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
printLogs: true,
),
ConsoleHandler()
ConsoleHandler(),
],

//Exclude these parameters from report. These params are device info params.
excludedParameters: ['androidId', 'model'],
);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/explicit_error_report_handler_map_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ void main() {
HttpRequestType.post,
Uri.parse('https://httpstat.us/200'),
printLogs: true,
)
),
],
explicitExceptionHandlersMap: explicitMap,
);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
6 changes: 3 additions & 3 deletions example/lib/explicit_error_report_mode_map_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ void main() {
HttpRequestType.post,
Uri.parse('https://httpstat.us/200'),
printLogs: true,
)
),
],
explicitExceptionReportModesMap: explicitReportModesMap,
);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down Expand Up @@ -69,7 +69,7 @@ class ChildWidget extends StatelessWidget {
TextButton(
onPressed: generateSecondError,
child: const Text('Generate second error'),
)
),
],
);
}
Expand Down
2 changes: 1 addition & 1 deletion example/lib/file_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class ChildWidget extends StatelessWidget {
TextButton(
onPressed: generateError,
child: const Text('Generate error'),
)
),
],
);
}
Expand Down
2 changes: 1 addition & 1 deletion example/lib/filter_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {
},
);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/http_handler_update_headers_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void main() {
final debugOptions =
CatcherOptions(DialogReportMode(), [httpHandler, ConsoleHandler()]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/local_notification_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import 'package:flutter_local_notifications/flutter_local_notifications.dart';
void main() {
final debugOptions = CatcherOptions(NotificationReportMode(), [
EmailManualHandler(['[email protected]']),
ConsoleHandler()
ConsoleHandler(),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
6 changes: 3 additions & 3 deletions example/lib/localization_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void main() {
HttpRequestType.post,
Uri.parse('https://httpstat.us/200'),
printLogs: true,
)
),
],
localizationOptions: [
LocalizationOptions(
Expand Down Expand Up @@ -40,11 +40,11 @@ void main() {
' wysłać raport lub odrzuć aby odrzucić raport.',
pageReportModeAccept: 'Akceptuj',
pageReportModeCancel: 'Odrzuć',
)
),
],
);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void main() {
),

///Print logs in console
ConsoleHandler()
ConsoleHandler(),
],
);

Expand Down
2 changes: 1 addition & 1 deletion example/lib/occurences_timeout_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ void main() {
reportOccurrenceTimeout: 30000,
);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/screenshot_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ void main() async {
emailTitle: 'Sample Title',
emailHeader: 'Sample Header',
printLogs: true,
)
),
],
customParameters: <String, dynamic>{
'Test': 'Test12345',
'Test2': 'Test54321'
'Test2': 'Test54321',
},
screenshotsPath: path,
);
Expand Down
4 changes: 2 additions & 2 deletions example/lib/sentry_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ void main() {
final debugOptions = CatcherOptions(DialogReportMode(), [
SentryHandler(
SentryClient(SentryOptions(dsn: 'YOUR DSN HERE')),
)
),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/slack_handler_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void main() {
//ConsoleHandler()
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

Catcher(
Expand Down
4 changes: 2 additions & 2 deletions example/lib/update_config_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ void main() {
Uri.parse('https://jsonplaceholder.typicode.com/posts'),
printLogs: true,
),
ConsoleHandler()
ConsoleHandler(),
]);
final releaseOptions = CatcherOptions(PageReportMode(), [
EmailManualHandler(['[email protected]'])
EmailManualHandler(['[email protected]']),
]);

catcher = Catcher(
Expand Down
2 changes: 1 addition & 1 deletion lib/handlers/discord_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class DiscordHandler extends ReportHandler {
final screenshotPath = screenshot.path;
final formData = FormData.fromMap(<String, dynamic>{
'content': content,
'file': await MultipartFile.fromFile(screenshotPath)
'file': await MultipartFile.fromFile(screenshotPath),
});
response = await _dio.post<dynamic>(webhookUrl, data: formData);
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/handlers/http_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class HttpHandler extends ReportHandler {
final screenshotPath = report.screenshot?.path ?? '';
final formData = FormData.fromMap(<String, dynamic>{
'payload_json': json,
'file': await MultipartFile.fromFile(screenshotPath)
'file': await MultipartFile.fromFile(screenshotPath),
});
response = await _dio.post<dynamic>(
endpointUri.toString(),
Expand Down
2 changes: 1 addition & 1 deletion lib/handlers/slack_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SlackHandler extends ReportHandler {
'text': message,
'channel': channel,
'username': username,
'icon_emoji': iconEmoji
'icon_emoji': iconEmoji,
};
_printLog('Sending request to Slack server...');
final response = await _dio.post<dynamic>(webhookUrl, data: data);
Expand Down
2 changes: 1 addition & 1 deletion lib/mode/page_report_mode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class PageWidgetState extends State<PageWidget> {
),
),
],
)
),
],
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/catcher_error_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class CatcherErrorWidget extends StatelessWidget {
textAlign: TextAlign.center,
),
const SizedBox(height: 10),
_buildStackTraceWidget()
_buildStackTraceWidget(),
],
),
),
Expand Down

0 comments on commit 4db23ea

Please sign in to comment.