Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernPetersen committed Nov 9, 2023
1 parent 45199f6 commit d7b3b9e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
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

0 comments on commit d7b3b9e

Please sign in to comment.