Skip to content

Commit 3ad66e4

Browse files
Bump flutter_lints from 2.0.3 to 3.0.0 in /flutter (#1698)
* Bump flutter_lints from 2.0.3 to 3.0.0 in /flutter Bumps [flutter_lints](https://github.com/flutter/packages/tree/main/packages) from 2.0.3 to 3.0.0. - [Release notes](https://github.com/flutter/packages/releases) - [Commits](https://github.com/flutter/packages/commits/pigeon-v3.0.0/packages) --- updated-dependencies: - dependency-name: flutter_lints dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Satisfy analyzer * Satisfy dart analyzer --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Giancarlo Buenaflor <[email protected]>
1 parent f275487 commit 3ad66e4

10 files changed

+17
-21
lines changed

flutter/lib/sentry_flutter.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// ignore: invalid_export_of_internal_element
21
/// A Flutter client for Sentry.io crash reporting.
2+
library sentry_flutter;
3+
4+
// ignore: invalid_export_of_internal_element
35
export 'package:sentry/sentry.dart';
46

57
export 'src/integrations/load_release_integration.dart';

flutter/lib/src/flutter_sentry_attachment.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class FlutterSentryAttachment extends SentryAttachment {
1616
String? filename,
1717
AssetBundle? bundle,
1818
String? type,
19-
String? contentType,
20-
bool? addToTransactions,
19+
super.contentType,
20+
super.addToTransactions,
2121
}) : super.fromLoader(
2222
loader: () async {
2323
final data = await (bundle ?? rootBundle).load(key);
@@ -28,7 +28,5 @@ class FlutterSentryAttachment extends SentryAttachment {
2828
? Uri.parse(key).pathSegments.last
2929
: 'unknown'),
3030
attachmentType: type,
31-
contentType: contentType,
32-
addToTransactions: addToTransactions,
3331
);
3432
}

flutter/lib/src/navigation/sentry_navigator_observer.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,12 @@ class RouteObserverBreadcrumb extends Breadcrumb {
283283
dynamic fromArgs,
284284
String? to,
285285
dynamic toArgs,
286-
SentryLevel? level,
287-
DateTime? timestamp,
286+
super.level,
287+
super.timestamp,
288288
Map<String, dynamic>? data,
289289
}) : super(
290290
category: _navigationKey,
291291
type: _navigationKey,
292-
level: level,
293-
timestamp: timestamp,
294292
data: <String, dynamic>{
295293
'state': navigationType,
296294
if (from != null) 'from': from,

flutter/lib/src/screenshot/sentry_screenshot_widget.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ final sentryScreenshotWidgetGlobalKey =
2222
/// - You can only have one [SentryScreenshotWidget] widget in your widget tree at all
2323
/// times.
2424
class SentryScreenshotWidget extends StatefulWidget {
25-
const SentryScreenshotWidget({Key? key, required this.child})
26-
: super(key: key);
25+
const SentryScreenshotWidget({super.key, required this.child});
2726

2827
final Widget child;
2928

flutter/lib/src/sentry_flutter_options.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import 'screenshot/sentry_screenshot_quality.dart';
1010
/// Note that some of these options require native Sentry integration, which is
1111
/// not available on all platforms.
1212
class SentryFlutterOptions extends SentryOptions {
13-
SentryFlutterOptions({String? dsn, PlatformChecker? checker})
14-
: super(dsn: dsn, checker: checker) {
13+
SentryFlutterOptions({super.dsn, super.checker}) {
1514
enableBreadcrumbTrackingForCurrentPlatform();
1615
}
1716

flutter/lib/src/user_interaction/sentry_user_interaction_widget.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ Element? _clickTrackerElement;
234234
/// [SentryUserInteractionWidget] as a child of [SentryScreenshotWidget].
235235
class SentryUserInteractionWidget extends StatefulWidget {
236236
SentryUserInteractionWidget({
237-
Key? key,
237+
super.key,
238238
required this.child,
239239
@internal Hub? hub,
240-
}) : super(key: key) {
240+
}) {
241241
_hub = hub ?? HubAdapter();
242242

243243
if (_options?.enableUserInteractionTracing ?? false) {

flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dev_dependencies:
2626
sdk: flutter
2727
mockito: ^5.1.0
2828
yaml: ^3.1.0 # needed for version match (code and pubspec)
29-
flutter_lints: ^2.0.0
29+
flutter_lints: ^3.0.0
3030
collection: ^1.16.0
3131
remove_from_coverage: ^2.0.0
3232
flutter_localizations:

flutter/test/user_interaction/sentry_user_interaction_widget_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ class Fixture {
327327
}
328328

329329
class MyApp extends StatelessWidget {
330-
const MyApp({Key? key}) : super(key: key);
330+
const MyApp({super.key});
331331

332332
@override
333333
Widget build(BuildContext context) {
@@ -340,7 +340,7 @@ class MyApp extends StatelessWidget {
340340
}
341341

342342
class Page1 extends StatelessWidget {
343-
const Page1({Key? key}) : super(key: key);
343+
const Page1({super.key});
344344

345345
@override
346346
Widget build(BuildContext context) {
@@ -416,7 +416,7 @@ class Page1 extends StatelessWidget {
416416
}
417417

418418
class Page2 extends StatelessWidget {
419-
const Page2({Key? key}) : super(key: key);
419+
const Page2({super.key});
420420

421421
@override
422422
Widget build(BuildContext context) {

flutter/test/view_hierarchy/sentry_tree_walker_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ bool _findWidget(
172172
}
173173

174174
class MyApp extends StatelessWidget {
175-
const MyApp({Key? key}) : super(key: key);
175+
const MyApp({super.key});
176176

177177
@override
178178
Widget build(BuildContext context) {

flutter/test/view_hierarchy/view_hierarchy_event_processor_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class Fixture {
107107
}
108108

109109
class MyApp extends StatelessWidget {
110-
const MyApp({Key? key}) : super(key: key);
110+
const MyApp({super.key});
111111

112112
@override
113113
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)