fix non-final field on immutable class

This commit is contained in:
Dieter Plaetinck
2024-05-21 15:36:27 +02:00
parent abd531be1f
commit cb696cc585

View File

@@ -35,14 +35,11 @@ import 'package:wger/widgets/core/core.dart';
import 'package:wger/widgets/nutrition/helpers.dart';
class ScanReader extends StatelessWidget {
String? scannedr;
@override
Widget build(BuildContext context) => Scaffold(
body: ReaderWidget(
onScan: (result) {
scannedr = result.text;
Navigator.pop(context, scannedr);
Navigator.pop(context, result.text);
},
),
);