ошибка:
Невозможно получить статус файла "C:\Users\gio\Desktop\flutter\TodoAppV2\assets\Magic_Menu_Image.webp": file not found.
, но я не могу его загрузить. Ниже мой код.
main.dart:
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Home'),
),
drawer: Drawer(
child: ListView(
padding: EdgeInsets.all(0),
children: <Widget>[
DrawerHeader(
child: null,//Image.asset('assets/Magic_Menu_Image.jpg'),
decoration: BoxDecoration(color: Colors.black),
),
ListTile(
title: Container(
color: Colors.orange[900],
child: Row(
children: <Widget>[
Icon(
Icons.home,
size: 30,
),
Text(
'Home',
style: TextStyle(fontSize: 20,),
)
]
)
),
)
]
)
),
);
}}
и отсутствует в файле pubspe c .yaml:
flutter:
assets:
- assets/Magic_Menu_Image.jpg
Если кто-то может помочь с исправлением этой ошибки.