How to give a CircleAvatar an image from assets

Use child property from CircleAvatar:

  CircleAvatar(
      child: Image.asset('assets/horse.png'),
   );

or if you want to use the backgroundImage property use the asset provider.

CircleAvatar(
  backgroundImage: AssetImage('assets/horse.png'),
);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)