import 'package:image/image.dart' as img;
List<Book> _items = [
Book(
id: 'b0',
title: 'Subtle Art',
authors: ['Mark Manson'],
coverImage:
img.decodeJpg(new File('assets/Subtle Art.jpg').readAsBytesSync()),
)
];
error no 2 is showing: No such file or directory exists But there is assets folder with the image file in root folder and in pubspec.yaml both
assets:
- 'assets/Subtle Art.jpg'