mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-03-03 15:25:27 +00:00
dart fix --apply --code=use_key_in_widget_constructors
This commit is contained in:
parent
7b0441aeeb
commit
ca4f55ca93
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue