FLUTTER PROFILE PICTURE
Automatically generate profile picture with random first name and background color. But you can still provide pictures if you have them. As the default color, based on the name of the first letter.
Style
Default Style
ProfilePicture(
name: 'Dees',
radius: 31,
fontsize: 21,
);
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
);
Random Color
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
random: true,
);
Max letter
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
count: 3,
);
Empty Name / Blank
ProfilePicture(
name: '',
radius: 31,
fontsize: 21,
);
With Images
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
img: 'https://avatars.githubusercontent.com/u/37553901?v=4',
);
Tooltips without role
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
role: '',
radius: 31,
fontsize: 21,
tooltip: true,
);
Tooltips with role
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
role: 'ADMINISTRATOR',
radius: 31,
fontsize: 21,
tooltip: true,
);
Tooltips with role and images
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
role: 'ADMINISTRATOR',
radius: 31,
fontsize: 21,
tooltip: true,
img: 'https://avatars.githubusercontent.com/u/37553901?v=4',
);