I have an image in my assets folder and want to set as background for circle Avatar how should I do this?
CircleAvatar(
backgroundImage: AssetImage('assets/image.png'),
);
This will work for you.
Make sure you have added an image in the asset folder and path inside pubspec.yaml file
like
assets:
- assets/image.png