Skip to content

a dart package to make a fading out avatar in a scroll view

License

Notifications You must be signed in to change notification settings

ViraCode/fading_avatar

Repository files navigation

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

About

a dart package to make a fading out avatar in a scroll view

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages