Comments (16)
I just changed the package to version ^1.3.0, and the error is still there, please investigate further. I wonder if it's the same error with 2d-inc/support#148
from flare-flutter.
Thanks, I'll look into this right now. Will report back soon.
from flare-flutter.
This is what I see right now, could you share your code?
from flare-flutter.
I caught the issue with the color override. That should work now too. Version 1.3.2
from flare-flutter.
Let me know if you can confirm it, then we can close the issue! Thanks again for reporting it.
from flare-flutter.
We did have an update last week, if you exported the file this week, you'll need to update the runtime to the latest package. We're going to get better about detecting this condition and notifying you that you likely need to update the package.
Let me know if that still doesn't work for you, I can do a more in depth investigation with your actual file.
from flare-flutter.
fyi, everytime I want to edit the https://www.2dimensions.com/a/uggy/files/flare/burgersplash-2/preview I have to go to the "circle" object and click (tick) on Fill (color) in order for the "circle to appear in the animation and then it would appear.
from flare-flutter.
this is what shows in the app (for the whole lifetime of the widget). I do have another animation showing and it is working flawlessly.
from flare-flutter.
did the animation work as expected?
import 'package:flare_flutter/flare_actor.dart';
FlareActor("assets/BurgerSplash 2.flr",
animation: "new_splash",
color: Colors.white,
fit: BoxFit.contain,
alignment: Alignment.center),`
this is the code that I have used.
from flare-flutter.
Yes the animation worked correctly, but I was able to break it as in #49 by reloading the file. I've pushed a fix, try package 1.3.1.
from flare-flutter.
Zip file attached with the flr file I used.
from flare-flutter.
nope, nothing is working. is there any way I could revert back to 11 December version of this?
https://www.2dimensions.com/a/uggy/files/flare/burgersplash/preview
I feel like you are correct. something is off with the package. I changed the color to black (from white). it showed the whole thing but without the animation. with the animation, everything breaks, and back to square one.
from flare-flutter.
this is the whole code. sorry I had to clean it up.
import 'dart:core';
import 'dart:async';
import 'package:change_app/ui/common/constants.dart';
import 'package:flare_flutter/flare_actor.dart';
import 'package:flutter/material.dart';
import 'package:flare_flutter/flare.dart';
import 'package:flare_dart/math/mat2d.dart';
import 'package:flare_flutter/flare_actor.dart';
class SplashScreen extends StatefulWidget {
final int seconds;
final Color backgroundColor;
final dynamic navigateAfterSeconds;
SplashScreen({
@required this.seconds,
this.navigateAfterSeconds,
this.backgroundColor = Colors.white,
});
@override
_SplashScreenState createState() => _SplashScreenState();
}
class _SplashScreenState extends State<SplashScreen> {
@override
void initState() {
super.initState();
Timer(Duration(seconds: widget.seconds), () {
Navigator.of(context).pushReplacement(
PageRouteBuilder(
pageBuilder: (_, __, ___) => widget.navigateAfterSeconds,
transitionsBuilder: (context, animation, secondaryAnimation, child) =>
FadeTransition(opacity: animation, child: child),
),
);
});
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: widget.backgroundColor,
body: InkWell(
child: Stack(
// fit: StackFit.expand,
children: <Widget>[
FlareActor("assets/BurgerSplash.flr",
// animation: "new_splash",
color: Colors.white10,
fit: BoxFit.contain,
alignment: Alignment.center),
new Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
new Expanded(
flex: 2,
child: new Container(),
),
Expanded(
flex: 2,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
sloganTextAr,
Padding(
padding: const EdgeInsets.only(top: 20.0),
),
sloganTextEn
],
),
),
],
),
],
),
),
);
}
}
from flare-flutter.
I found the problem. it was the
''' color: Colors.white10 '''
if I remove that line everything works.
from flare-flutter.
Thanks for the code, I will try it out in a few minutes and see why the color value is causing problems...
from flare-flutter.
yes it works now, thanks champ!
from flare-flutter.
Related Issues (20)
- Migrate to null safety HOT 8
- Add debug mode HOT 1
- Migration to Null-Safety HOT 3
- Request for Clarification: Flare-Flutter vs Rive Flutter Runtime Use Cases HOT 4
- LateInitializationError HOT 8
- Null Safety for flare_dart HOT 3
- Placeholder widget while animation is loading
- 3.0.0 antialiasing no longer working HOT 13
- IK Constraints not working HOT 4
- Difference between flare-flutter and rive-flutter HOT 4
- FlutterActorImage not visible FlareActor
- Clear Memory after finish an animation HOT 2
- Can't load FlareActor.bundle on Android HOT 2
- Unhandled Exception: Exception: LateInitializationError: Field '_paint@235459774' has not been initialized HOT 2
- LateInitializationError: Field '_paint@xxxxxx' has not been initialized HOT 2
- LateInitializationError: Field '_setupAABB@43245341' has not been initialized HOT 1
- Flutter 2.10 & 3.0 throw warnings during compilation HOT 3
- Warning: Operand of null-aware operation '?.' has type 'SchedulerBinding' which excludes null. HOT 4
- update HOT 1
- Flutter3 Error HOT 2
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 flare-flutter.