I want to add my logo but logo doesn’t seem.
leading: Image.asset(
"assets/icons/belha-logo.jpg",
fit: BoxFit.cover,
height: 40,
width: 40,
),
I tried to give width,height and fit property of asset image but dont work
3
Answers
Add your file path on pubspec.yaml
example:
if you just added a file, u need to kill your app and re launch it
See the fact that you are using the image in the AppBar makes no effect if you increase the height or width of the image.
What you need to do is:-
Hope this helps!
Just add toolbarHeight and leadingWidth in AppBar according to your requirements and that will do the trick 🙂