Generate required flutter app screenshots for different devices

Automated screenshots for Flutter app could be generated by your tests. These would be a easy way to get screenshots for app store if you are impatient by different size requirements the app store asks.

Firstly, you should add flutter_driver, test, screenshots in the dev_dependencies part of pubspec.yaml, and flutter pub get.

dev_dependencies:
flutter_driver:
sdk: flutter
test: any
screenshots: ^2.1.