dart fix --apply --code=use_key_in_widget_constructors

This commit is contained in:
Caleb Jasik 2025-02-13 11:13:51 -06:00
parent 7b0441aeeb
commit ca4f55ca93
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View file

@ -31,12 +31,16 @@ Future<void> main() async {
//TODO: EventChannel might be better than the stream controller we are using now
class Main extends StatelessWidget {
const Main({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) => App();
}
class App extends StatefulWidget {
const App({super.key});
@override
_AppState createState() => _AppState();
}

View file

@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
import 'package:mobile_scanner/mobile_scanner.dart';
class ScanQRScreen extends StatefulWidget {
const ScanQRScreen({super.key});
@override
State<ScanQRScreen> createState() => _ScanQRScreenState();
}