Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

circular profile avatar

circularprofileavatar is a flutter package which allows developers to implement circular profile avatar with border, overlay, initialstext and many other awesome features, which simplifies developers job. it is an alternative to flutter’s circleavatar widget.

circular_profile_avatar

installation

add this to your package’s pubspec.yaml file:

dependencies:
   circular_profile_avatar: ^0.1.4

and run

 flutter packages get

usage

    circularprofileavatar(
          radius: 100, // sets radius, default 50.0              
          backgroundcolor: colors.green, // sets background color, default colors.white
          borderwidth: 10,  // sets border, default 0.0
          initialstext: text(
            "ad",
            style: textstyle(fontsize: 40, color: colors.white),
          ),  // sets initials text, set your own style, default text('')
          bordercolor: colors.brown, // sets border color, default colors.white
          elevation: 5.0, // sets elevation (shadow of the profile picture), default value is 0.0
          foregroundcolor: colors.brown.withopacity(0.5), //sets foreground colour, it works if showinitialtextabovepicture = true , default colors.transparent
          ontap: () {
            print('adil');
          }, // sets on tap 
          showinitialtextabovepicture: true, // setting it true will show initials text above profile picture, default false  
          imagepath:
              'https://avatars0.githubusercontent.com/u/8264639?s=460&v=4'), //sets image path, it should be a url string. default value is empty string, if path is empty it will display only initials
    )

if this project help you reduce time to develop, you can give me a cup of coffee 🙂


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top