Flutter Camera Plugin
问题 I'm new to both Flutter and Dart, and I'm trying to use the Camera Plugin to understand how things work. All examples I find have this part: List<CameraDescription> cameras; Future<Null> main() async { cameras = await availableCameras(); runApp(new CameraApp()); } Is there some way I could do this inside the initState() method? I guess this is also a more general question regarding async work required before the initState -method is run. (As the initState -method cannot be async). My goal is