ネットワーク画像を表示する必要がある gridView があります。そのすべての要素は、複数の要素を持つ List で定義されます。今は AssetImage を呼び出していますが、ネットワーク イメージに変更したいと考えています。これは、リストの要素の宣言です。imagePathを変更したいのですが、宣言がわかりません。
class Category {
Category({
this.title = '',
this.imagePath = '',
this.lessonCount = '',
this.money = 0,
this.rating = 0.0,
});
String title;
String lessonCount;
int money;
double rating;
String imagePath;
static List<Category> offerwallList = <Category>[
Category(
imagePath: 'assets/app/games.png',
title: 'Games',
lessonCount: 'Play Games',
money: 18,
rating: 4.6,
),
];
また、以下のように他のいくつかの場所でも定義されていますが、これも変更する必要があります。
child: Image.asset(category.imagePath)