Background loading & RenderCache.drawingCommands (#326)

This commit is contained in:
Xavier H
2023-12-22 18:21:28 +01:00
committed by GitHub
parent 9f4a8d74d5
commit 08e9678dc3
56 changed files with 1328 additions and 915 deletions

View File

@ -18,6 +18,7 @@ class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
showPerformanceOverlay: true,
home: Scaffold(
appBar: AppBar(
title: const Text(''),
@ -136,6 +137,7 @@ class __LottieState extends State<_Lottie> with TickerProviderStateMixin {
decoration: BoxDecoration(border: Border.all(color: Colors.red)),
child: Lottie(
composition: widget.composition,
renderCache: RenderCache.raster,
controller: _controller,
width: widget.width,
height: widget.height,