Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency flutter_lints to v3 #76

Merged
merged 2 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class MyApp extends StatelessWidget {
final String? code;

const MyApp({
Key? key,
super.key,
required this.code,
}) : super(key: key);
});

// This widget is the root of your application.
@override
Expand Down Expand Up @@ -44,9 +44,9 @@ class BlocPage extends StatelessWidget {
final String? code;

const BlocPage({
Key? key,
super.key,
required this.code,
}) : super(key: key);
});

@override
Widget build(BuildContext context) {
Expand All @@ -61,7 +61,7 @@ class BlocPage extends StatelessWidget {
}

class MainPage extends StatelessWidget {
const MainPage({Key? key}) : super(key: key);
const MainPage({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -95,7 +95,7 @@ class MainPage extends StatelessWidget {
}

class SpinContent extends StatelessWidget {
const SpinContent({Key? key}) : super(key: key);
const SpinContent({super.key});

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -143,7 +143,7 @@ class SpinContent extends StatelessWidget {
}

class QrScanner extends StatefulWidget {
const QrScanner({Key? key}) : super(key: key);
const QrScanner({super.key});

@override
State<QrScanner> createState() => _QrScannerState();
Expand Down
4 changes: 2 additions & 2 deletions lib/motion.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ class Motion {
final eventListener = _EventListener(controller);
controller.onListen = () => window.addEventListener(
kDeviceMotionEventType,
eventListener,
eventListener.call,
);
controller.onCancel = () => window.removeEventListener(
kDeviceMotionEventType,
eventListener,
eventListener.call,
);

return controller.stream.listen(handler);
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
url: "https://pub.dev"
source: hosted
version: "2.0.3"
version: "3.0.1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down Expand Up @@ -340,10 +340,10 @@ packages:
dependency: transitive
description:
name: lints
sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "3.0.0"
logging:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.0.0
flutter_lints: ^2.0.0
flutter_lints: ^3.0.0
flutter_test:
sdk: flutter

Expand Down