How to test ImagePicker in Flutter Driver?
问题 In Flutter integration testing, how can we handle ImagePicker? as well as other platform related plugins? 回答1: Finally, I got a solution for this question. this is the code in app.dart: prepare an image file in assets, for example: images/sample.png. import 'dart:io'; import 'dart:typed_data'; import 'package:path_provider/path_provider.dart'; import 'package:image_picker_test/main.dart' as app; import 'package:flutter_driver/driver_extension.dart'; import 'package:flutter/services.dart';