avatar_glow
Um pacote Flutter que fornece um widget de brilho de avatar com animação de brilho de fundo legal
1,2 milCurtidas 36,4 milDownloads em 30 dias150Pontos Pub
AndroidiOSWebmacOSWindowsLinux
Um pacote Flutter que fornece o widget de brilho do avatar
{"sdk":"flutter"}^3.0.1Texto original em inglês. Visite o GitHub para a versão atual.
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,
),
),
),