mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-03-03 23:35:28 +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
|
//TODO: EventChannel might be better than the stream controller we are using now
|
||||||
|
|
||||||
class Main extends StatelessWidget {
|
class Main extends StatelessWidget {
|
||||||
|
const Main({super.key});
|
||||||
|
|
||||||
// This widget is the root of your application.
|
// This widget is the root of your application.
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) => App();
|
Widget build(BuildContext context) => App();
|
||||||
}
|
}
|
||||||
|
|
||||||
class App extends StatefulWidget {
|
class App extends StatefulWidget {
|
||||||
|
const App({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_AppState createState() => _AppState();
|
_AppState createState() => _AppState();
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
|
||||||
import 'package:mobile_scanner/mobile_scanner.dart';
|
import 'package:mobile_scanner/mobile_scanner.dart';
|
||||||
|
|
||||||
class ScanQRScreen extends StatefulWidget {
|
class ScanQRScreen extends StatefulWidget {
|
||||||
|
const ScanQRScreen({super.key});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<ScanQRScreen> createState() => _ScanQRScreenState();
|
State<ScanQRScreen> createState() => _ScanQRScreenState();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue