Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
MIT License
Bot releases are visible (Hide)
Published by xvrh over 2 years ago
ValueDelegate
)Example:
Lottie.asset(
'assets/DynamicText.json',
delegates: LottieDelegates(values: [
ValueDelegate.text(
['Text layer'], // The path to the text element to change
value: 'The new text',
),
]),
)
Published by xvrh over 2 years ago
Published by xvrh about 3 years ago
fix: Revert Cubic to PathInterpolator.cubic
Published by xvrh about 3 years ago
Example to blur some elements dynamically:
Lottie.asset(
'assets/AndroidWave.json',
delegates: LottieDelegates(values: [
ValueDelegate.blurRadius(
['**'], // The path to the element to blur
value: 20,
),
]),
)
Example to add a shadow dynamically:
Lottie.asset(
'assets/animation.json',
delegates: LottieDelegates(values: [
ValueDelegate.dropShadow(
['**'], // The path to the elements with shadow
value: const DropShadow(
color: Colors.blue,
direction: 140,
distance: 60,
radius: 10,
),
),
]),
)
Published by xvrh over 3 years ago
errorBuilder
callback to provide an alternative widget in case an error occurs during loading.Lottie.network(
'https://example.does.not.exist/lottie.json',
errorBuilder: (context, exception, stackTrace) {
return const Text('😢');
},
);
onWarning
to be notified when a warning occurs during the animation parsing or painting.logger
.
Lottie.asset('animation.json'
onWarning: (warning) {
_logger.info(warning);
},
);
Published by xvrh over 3 years ago
RenderBox.computeDryLayout
Published by xvrh over 3 years ago
Published by xvrh over 3 years ago
Published by xvrh over 3 years ago
LottieDelegates
imageProviderFactory
to work with zip filesPublished by xvrh over 3 years ago
Published by xvrh over 3 years ago
Published by xvrh over 3 years ago
Migrate to null safety
Published by xvrh almost 4 years ago
Fix Flutter Web compilation error
Published by xvrh almost 4 years ago
Performance improvement for complex animations.
Published by xvrh about 4 years ago
frameRate
property allows to opt-out this behaviour and have the widget to repaint at the device frame rate (FrameRate.max).addRepaintBoundary
allows to opt-out this behaviour.markNeedPaint
when the animation was not changing. This removes unnecessary paints in animations with static periods.Published by xvrh about 4 years ago
Remove direct dependencies on dart:io to support Flutter Web
Published by xvrh about 4 years ago
Published by xvrh over 4 years ago
Published by xvrh over 4 years ago
characters
packagePublished by xvrh over 4 years ago
Merge paths can be enabled with:
Lottie.asset('file.json', options: LottieOptions(enableMergePaths: true));