2d-inc / Flare-Flutter

Load and get full control of your Rive files in a Flutter project using this library.
https://rive.app/
MIT License
2.55k stars 469 forks source link

Image position deviation #277

Open bing6 opened 3 years ago

bing6 commented 3 years ago

image

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

void main() { WidgetsFlutterBinding.ensureInitialized(); runApp(Material( child: MyHomePage(), )); }

class MyHomePage extends StatefulWidget { @override _MyHomePageState createState() => new _MyHomePageState(); }

class _MyHomePageState extends State { @override Widget build(BuildContext context) { return new FlareActor("assets/Penguin.flr", alignment: Alignment.center, fit: BoxFit.contain, animation: "walk"); } }

Do you have the same problems as me?

zhangyc commented 3 years ago

me too

umberto-sonnino commented 3 years ago

I just ran the snippet you posted, and it seems to be running correctly on my side. What Flutter version are you using? Are you running the latest Flare-Flutter?