flutter_profile_picture 2.0.0
flutter_profile_picture: ^2.0.0 copied to clipboard
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.
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,
);
copied to clipboard
Random Color #
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
random: true,
);
copied to clipboard
Max letter #
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
count: 3,
);
copied to clipboard
Empty Name / Blank #
ProfilePicture(
name: '',
radius: 31,
fontsize: 21,
);
copied to clipboard
With Images #
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
radius: 31,
fontsize: 21,
img: 'https://avatars.githubusercontent.com/u/37553901?v=4',
);
copied to clipboard
Tooltips without role #
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
role: '',
radius: 31,
fontsize: 21,
tooltip: true,
);
copied to clipboard
Tooltips with role #
ProfilePicture(
name: 'Aditya Dharmawan Saputra',
role: 'ADMINISTRATOR',
radius: 31,
fontsize: 21,
tooltip: true,
);
copied to clipboard
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',
);
copied to clipboard