fading_avatar 1.0.3+1 copy "fading_avatar: ^1.0.3+1" to clipboard
fading_avatar: ^1.0.3+1 copied to clipboard

A new Flutter project.

Fading Avatar #

[Demo CountPages alpha]

A fading avatar #

Simply use it with properties #

top:

    The space from the top of the screen

left:

    The space from the left side of the screen

radius:

    Radius of circle avatar

expandTimes:

    Lenght of widget animation. default value is 1

child:

    Background widget. It should be Scrollable

controller:

    Controller which attached to your child list view

reverse:

    Set it true if you want it to be from min size to max size. its default value is false

image:

    The Avatar image you want to use

border:

    BoxBorder of your image

Example using: #

[Demo CountPages alpha]

    ScrollController controller = ScrollController();
    ...
    AvatarStack(
    controller: controller,
    top: 200,
    radius: 150,
    child: ListView(
      controller: controller,
      children: [
        ...[
          Colors.red,
          Colors.blue,
          Colors.blueGrey,
          Colors.deepPurple,
          Colors.green,
          Colors.amber,
          Colors.black,
          Colors.purple,
          Colors.yellow,
          Colors.brown
        ].map((e) => Container(width: 450, height: 200, color: e))
      ],
    ),
  ),

VIRA CODE #

Github #

2
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A new Flutter project.

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on fading_avatar