buildLivePhotoIndicator method
Implementation
Widget buildLivePhotoIndicator(BuildContext context, Asset asset) {
return Align(
alignment: AlignmentDirectional.bottomCenter,
child: Container(
width: double.maxFinite,
height: 26,
alignment: AlignmentDirectional.bottomStart,
padding: const EdgeInsets.symmetric(horizontal: 2, vertical: 2),
decoration: BoxDecoration(
gradient: LinearGradient(
begin: AlignmentDirectional.bottomCenter,
end: AlignmentDirectional.topCenter,
colors: <Color>[
theme.canvasColor.withAlpha(80),
Colors.transparent,
],
),
),
child: Image.asset(
'assets/icon/indicator-live-photos.png',
package: packageName,
gaplessPlayback: true,
color: Colors.white,
),
),
);
}