@@ -57,12 +57,14 @@ class _MyHomePageState extends State<MyHomePage> {
5757                    padding:  EdgeInsets .symmetric (horizontal:  10 , vertical:  10 ),
5858                    child:  Row (
5959                      children:  [
60+                         // if there is only one word. 
6061                        ProfilePicture (
6162                          name:  'Dees' ,
6263                          radius:  31 ,
6364                          fontsize:  21 ,
6465                        ),
6566                        SizedBox (width:  5 ),
67+                         // if more than one word. 
6668                        ProfilePicture (
6769                          name:  'Aditya Dharmawan Saputra' ,
6870                          radius:  31 ,
@@ -97,6 +99,8 @@ class _MyHomePageState extends State<MyHomePage> {
9799                ),
98100                Container (
99101                  padding:  EdgeInsets .symmetric (horizontal:  10 , vertical:  10 ),
102+                   // set random = true 
103+                   // default is false 
100104                  child:  ProfilePicture (
101105                    name:  'Aditya Dharmawan Saputra' ,
102106                    radius:  31 ,
@@ -131,6 +135,10 @@ class _MyHomePageState extends State<MyHomePage> {
131135                ),
132136                Container (
133137                  padding:  EdgeInsets .symmetric (horizontal:  10 , vertical:  10 ),
138+                   // set limit letter 
139+                   // use count = 'your_limit' 
140+                   // default is 2 if more than one words 
141+                   // default is 1 if less than two words 
134142                  child:  ProfilePicture (
135143                    name:  'Aditya Dharmawan Saputra' ,
136144                    radius:  31 ,
@@ -165,6 +173,9 @@ class _MyHomePageState extends State<MyHomePage> {
165173                ),
166174                Container (
167175                  padding:  EdgeInsets .symmetric (horizontal:  10 , vertical:  10 ),
176+                   // for handling user without name 
177+                   // set name = '' (empty string) 
178+                   // will set default background color without name 
168179                  child:  ProfilePicture (
169180                    name:  '' ,
170181                    radius:  31 ,
@@ -198,6 +209,8 @@ class _MyHomePageState extends State<MyHomePage> {
198209                ),
199210                Container (
200211                  padding:  EdgeInsets .symmetric (horizontal:  10 , vertical:  10 ),
212+                   // change background color to image 
213+                   // set img = 'your_url_img' 
201214                  child:  ProfilePicture (
202215                    name:  'Aditya Dharmawan Saputra' ,
203216                    radius:  31 ,
@@ -232,6 +245,11 @@ class _MyHomePageState extends State<MyHomePage> {
232245                ),
233246                Container (
234247                  padding:  EdgeInsets .symmetric (horizontal:  10 , vertical:  10 ),
248+                   // enable tooltip feature 
249+                   // set tooltip = true 
250+                   // default is false 
251+                   // when you click the picture 
252+                   // name will be appear 
235253                  child:  ProfilePicture (
236254                    name:  'Aditya Dharmawan Saputra' ,
237255                    role:  '' ,
@@ -267,6 +285,10 @@ class _MyHomePageState extends State<MyHomePage> {
267285                ),
268286                Container (
269287                  padding:  EdgeInsets .symmetric (horizontal:  10 , vertical:  10 ),
288+                   // enable tooltip feature with role 
289+                   // same as example 6 
290+                   // but you can add parameter role = 'your_role' 
291+                   // role will be appear under name 
270292                  child:  ProfilePicture (
271293                    name:  'Aditya Dharmawan Saputra' ,
272294                    role:  'ADMINISTRATOR' ,
@@ -302,6 +324,10 @@ class _MyHomePageState extends State<MyHomePage> {
302324                ),
303325                Container (
304326                  padding:  EdgeInsets .symmetric (horizontal:  10 , vertical:  10 ),
327+                   // enable tooltip feature with role and image 
328+                   // same as example 7 
329+                   // but you can add parameter img = 'your_img' 
330+                   // background color and initial name will be replaced with the image 
305331                  child:  ProfilePicture (
306332                    name:  'Aditya Dharmawan Saputra' ,
307333                    role:  'ADMINISTRATOR' ,
0 commit comments