Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlareActor color parameter is ignored #39

Closed
furkantektas opened this issue Feb 4, 2019 · 2 comments
Closed

FlareActor color parameter is ignored #39

furkantektas opened this issue Feb 4, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@furkantektas
Copy link

Hello,
I created a Flare animation a few months ago : https://www.2dimensions.com/a/tektas/files/flare/literda-logo/preview

I was using this particular animation with FlareActor's color parameter. After updating the latest version (v1.2.1), FlareActor's color parameter does not work.
Here is a minimal example which should paint the animation on a yellow background with an Indigo color:

import 'package:flutter/material.dart';
import "package:flare_flutter/flare_actor.dart";

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flare Demo',
      theme: ThemeData(
        primarySwatch: Colors.yellow,
      ),
      home: MainPage(),
    );
  }
}

class MainPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        color: Colors.yellow,
        width: 100.0,
        height: 100.0,
        child: FlareActor(
          "assets/literda_logo_anim.flr",
          alignment: Alignment.center,
          fit: BoxFit.contain,
          animation: "Reveal",
          color: Colors.indigo,
        ));
  }
}

Here is the output:

flare-color-demo

Here is the flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.1.8, on Mac OS X 10.13.6 17G5019, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1.2)
[✓] VS Code (version 1.30.2)
[✓] Connected device (1 available)
@luigi-rosso luigi-rosso self-assigned this Feb 4, 2019
@luigi-rosso
Copy link
Contributor

Thanks for reporting this issue, we have fixed this in 1.2.2, please give this a try!

@luigi-rosso luigi-rosso added the bug Something isn't working label Feb 4, 2019
luigi-rosso added a commit that referenced this issue Feb 4, 2019
@furkantektas
Copy link
Author

Wow! That was fast! 🚀
I tested and it's working now. Thank you for this great platform, plugin, and blazing fast support 👏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants