I am adding an background image to the Splash screen, but is not rendering the image. Sometime it load sometime not.If I load in the Second screen it loads properly. The issue is in iOS not in Android. Here is a sample code:
import 'dart:async';
import 'package:flutter/material.dart';
void main() {
//runApp()
// SplashWidget
runApp(MaterialApp(
debugShowCheckedModeBanner: false,
theme: UIData.buildTheme(),
home: SplashS(),
));
}
class SplashS extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(body:Container(
color: Colors.yellow,
child: Center(
child: Container(
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child:Image.asset(
"images/image_name.png",
fit: BoxFit.fill,
)),
),
));
}
}
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)