avatar_glow
クールな背景の発光アニメーションを備えたアバター・グロー・ウィジェットを提供するFlutterパッケージ
1240いいね 3.6万30日間ダウンロード150Pub ポイント
AndroidiOSWebmacOSWindowsLinux
アバターのグロー効果を提供するFlutterパッケージ
{"sdk":"flutter"}^3.0.1以下は英語原文のスナップショットです。最新版は 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,
),
),
),