You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone!
I'm facing a problem when I try to render frl files exported as JSON. I tested with the same file exported as binary and it works well but with JSON not and I did not find anywhere that this is a restriction.
Create a flutter project and add the flare_flutter dependency and the assets:
Put the following code in the main.dart:
import'package:flutter/material.dart';import'package:flare_flutter/flare_actor.dart';voidmain(){runApp(MyApp());}classMyAppextendsStatelessWidget{// This widget is the root of your application.
@overrideWidgetbuild(BuildContextcontext){returnMaterialApp(title: 'Flutter Demo',theme: ThemeData(primarySwatch: Colors.blue,visualDensity: VisualDensity.adaptivePlatformDensity,),home: FlareDemo(),);}}classFlareDemoextendsStatefulWidget{
@override_FlareDemoStatecreateState()=>_FlareDemoState();}class_FlareDemoStateextendsState<FlareDemo>{boolisOpen=false;
@overrideWidgetbuild(BuildContextcontext){returnScaffold(body: InkWell(onTap: (){setState((){
isOpen =!isOpen;print('on tap pressed');});},child: Center(child: FlareActor('assets/FilipBinary.flr',animation: isOpen ? 'phone_sway' : ''),),),);}}
Execute in any device.
Context (Environment)
I'm working in macOS Catalina 10.15.6 and executing in and Iphone 11 simulator and Samsung Galaxy A10.
Possible Solution
I didn't find any workaround yet, I was trying with the different properties of the flare actor without success.
If anyone knows a workaround or which work should be done in the library to make it work it will helpful.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi everyone!
I'm facing a problem when I try to render frl files exported as JSON. I tested with the same file exported as binary and it works well but with JSON not and I did not find anywhere that this is a restriction.
Expected Behavior
Current Behavior
Steps to Reproduce
Context (Environment)
I'm working in macOS Catalina 10.15.6 and executing in and Iphone 11 simulator and Samsung Galaxy A10.
Possible Solution
I didn't find any workaround yet, I was trying with the different properties of the flare actor without success.
If anyone knows a workaround or which work should be done in the library to make it work it will helpful.
Thanks!
The text was updated successfully, but these errors were encountered: