Closed maxouille closed 5 years ago
Hi, try this:
import 'package:flare_splash_screen/flare_splash_screen.dart';
.
.
.
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: SplashScreen(
'assets/splash.flr',
HomeView(),
startAnimation: 'fail',
backgroundColor: Color(0xff181818)
)
);
Hi, try this:
import 'package:flare_splash_screen/flare_splash_screen.dart'; . . . return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: SplashScreen( 'assets/splash.flr', HomeView(), startAnimation: 'fail', backgroundColor: Color(0xff181818) ) );
It's working thx, I thought Android and Flutter had a default background color ^^
I have another problem. When the method loadData()
is running, it loads data from json to a database. This freezes the animation. Do you know why and how to solve this ?
Thx !
If it freezes you have two possibility:
In any case nothing related to this package :) closing the issue
Hi,
Your plugin seems pretty cool but I can't make it work prperly. While the data is loading, the flare animation that I created is not displayed and I got a black screen with the "debug" banner. For info, my animation is working as I tried to display it with a F
lareActor
and it's working.I've done like your example :
And put the anim.flr into assets and add it to the pubspec.yaml :
When my code is running, I got no error and the next screen is displayed after the data is loaded.
Here is my flutter doctor output:
Thanks for your help, I really want to make your plugin work :)