You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Abdi-Adan There are exist workaround, you need add check that your application run under dreiver test and setup custom AssetBundle instead of runApp(FlApp());
change for this runApp(DefaultAssetBundle( bundle: TestAssetBundle(), child: YourApp(), ));
and TestAssetBundle implementation:
`class TestAssetBundle extends CachingAssetBundle { @OverRide
Future loadString(String key, {bool cache = true}) async {
final ByteData data = await load(key);
if (data == null) throw FlutterError('Unable to load asset');
return utf8.decode(data.buffer.asUint8List());
}
After adding this library my driver test start failing and images from assets did not display
The text was updated successfully, but these errors were encountered: