A demo project for using the emulators
package to generate screenshots.
- Make sure you have xcode and Android Studio setup correctly.
flutter doctor
should report no issues. - Setup flutter project as usual (
flutter pub get
etc). - Run
dart tools/screenshots.dart
.
This will update the images in the screenshots/
directory.
This example is generated from flutter create
with no modifications.
The following files were added to make the screenshot generation work:
emulators
,test
andflutter_driver
dependencies were added topubspec.yaml
.- The
test_driver
directory was added. - The
tools
directory was added.