Comments (6)
Hi,
Thanks for the report.
I'm not familiar with the CustomScrollView
widget. Could you post a small reproduction of your problem so I can reproduce it locally?
Thanks.
from lottie-flutter.
when I use the same Lottie file for multiple times, it doesn't cause an error.
CustomScrollView(
slivers: <Widget>[
SliverToBoxAdapter(
child: Container(
height: 180.0,
child: Lottie.asset('assets/loading.json'),
),
),
SliverToBoxAdapter(
child: Container(
height: 180.0,
child: Lottie.asset('assets/loading.json'),
),
),
],
);
but when I use different Lottie files, it crashes saying state: No element The relevant error-causing widget was Container
.
CustomScrollView(
slivers: <Widget>[
SliverToBoxAdapter(
child: Container(
height: 180.0,
child: Lottie.asset('assets/loading.json'),
),
),
SliverToBoxAdapter(
child: Container(
height: 180.0,
child: Lottie.asset('assets/shoot.json'),
),
),
],
);
from lottie-flutter.
I tried this program, but I'm not able to reproduce the error you have.
import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
void main() => runApp(App());
class App extends StatelessWidget {
const App({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: CustomScrollView(
slivers: <Widget>[
for (var i = 0; i < 10; i++)
SliverToBoxAdapter(
child: Container(
height: 180.0,
child: Lottie.asset('assets/AndroidWave.json'),
),
),
],
),
),
);
}
}
Can you paste here (or provide a link) a fully executable version of your code?
Thanks.
from lottie-flutter.
Instead of using same Lottie file, run using different Lottie files
from lottie-flutter.
Oh sorry, I miss read the problem.
But even with different files I'm not able to reproduce it. Can you provide a standalone program? Maybe also with your json files?
What version of Flutter do you use?
Thanks.
from lottie-flutter.
I'll close it since it's not actionable without a simple reproducible program.
from lottie-flutter.
Related Issues (20)
- Black lines appear when one animation overlaps another one
- how to Cache tgs file . HOT 1
- tgs lottie very slow on android HOT 5
- How should I playsegment? HOT 2
- RenderCache as Raster initializes animation with incorrect state HOT 1
- How to disable the implementation of auto-orient?
- Privacy Manifest file for IOS HOT 2
- Screen Stuck when try to load the lottie in flutter web
- The lottie files downloaded from lottiefiles can not render HOT 34
- lottie.netowkr how to cached?
- can't load json animation HOT 4
- The CPU usage is especially high
- Lottie not working in web since 3.1.2 HOT 6
- .lottie file not working on iOS HOT 1
- How can I let the click or slide event penetrate the lottie animation? HOT 2
- Not working on Windows 10
- How to show the last frame?
- Some lottie animations are not rendering correctly in Flutter HOT 2
- Strange lottie animation effect
- Animation flickering when updating to Flutter 3.22.x (iOS) HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lottie-flutter.