DPLYR-dev / SplashScreenFlutterPackage

A small splashscreen used as intro for flutter applications easily with a lot of customizations ❤️🥳
MIT License
294 stars 123 forks source link

How I set an asset image as background? #28

Closed mhsampaio closed 4 years ago

mhsampaio commented 5 years ago

class _WelcomePageState extends State { @override Widget build(BuildContext context) { return SplashScreen( seconds: 25, navigateAfterSeconds: HomePage(), title: Text('Ace Squad', style: TextStyle( fontWeight: FontWeight.bold, fontSize: 30.0 ),), image: Image.asset("images/skull.png", height: 250.0, width: 250.0 ), imageBackground: , //backgroundColor: Colors.black, styleTextUnderTheLoader: TextStyle(), photoSize: 100.0, onClick: ()=>print("Flutter Egypt"), loaderColor: Colors.white
); } }

cadrogui commented 5 years ago

same question here...

KarimMohamed20 commented 5 years ago

Sorry for everyone stayed longtime with issues I was busy but now I will work on it until i fix all issues and publish a new release thx for anyone.

SonQBChau commented 5 years ago

This has been answered #19, you can use backgroundImage property

juaniyyo commented 5 years ago

@mhsampaio, this is my solution: Captura de pantalla 2019-09-17 a las 17 42 49 And result: Captura de pantalla 2019-09-17 a las 17 39 43