UNABLE TO LOAD ASSET IMAGE FLUTTER problem solved for complete beginners step by step

preview_player
Показать описание
You might have facing the issue how to solve the unable to load asset image
error watch this video till end you will solve this problem ...
Рекомендации по теме
Комментарии
Автор

Hey giving path but Interrupt some debug console plz help

tejalsoni
Автор

import
// ignore: unused_import
import 'package:yash/main.dart';

void main() => runApp(const MaterialApp(
home: cricketer(),
));

// ignore: camel_case_types, must_be_immutable
class cricketer extends StatelessWidget {
var children;


const cricketer({super.key});

get child => null;

@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.grey[900],
appBar: AppBar(
title: const Text("Cricketerdetails"),
centerTitle: true,
backgroundColor: Colors.grey[600],
),
body: Column(
// ignore: prefer_const_constructors
children: Center(
crossAxisAlignment: CrossAxisAlignment.center,
child: Center(
child: Image(
image: AssetImage('assets/images/yash.png'),
),
child: Text("Virat Kohli");,
),
),
));
}
}

mahakalbhakatknowledge