avatar_glow
Ein Flutter-Paket, das ein Avatar-Glow-Widget mit cooler Hintergrund-Glüh-Animation bereitstellt
1240Likes 36.40030-Tage-Downloads150Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
Ein Flutter-Paket, das den Avatar-Glow-Widget bereitstellt
{"sdk":"flutter"}^3.0.1Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
An Avatar Glow Flutter Widget with cool background glowing animation.
Live Demo: https://apgapg.github.io/avatar_glow/
PieChartIn the dependencies: section of your pubspec.yaml, add the following line:
dependencies:
avatar_glow: <latest version>
To use the latest changes:
avatar_glow:
git:
url: https://github.com/apgapg/avatar_glow
ref: master
import 'package:avatar_glow/avatar_glow.dart';
Usage is simple. Avatar Glow is a widget offering different customizable optional parameters with child displayed at its center.
AvatarGlow(
endRadius: 60.0,
child: Material( // Replace this child with your own
elevation: 8.0,
shape: CircleBorder(),
child: CircleAvatar(
backgroundColor: Colors.grey[100],
child: Image.asset(
'assets/images/dart.png',
height: 50,
),
radius: 30.0,
),
),
),
AvatarGlow(
startDelay: const Duration(milliseconds: 1000),
glowColor: Colors.white,
glowShape: BoxShape.circle,
animate: _animate,
curve: Curves.fastOutSlowIn,
child: const Material(
elevation: 8.0,
shape: CircleBorder(),
color: Colors.transparent,
child: CircleAvatar(
backgroundImage: AssetImage('assets/images/avatar.png'),
radius: 50.0,
),
),
),