add bg image to scaffold flutter code example
Example: add bg image to scaffold flutter
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new Stack(
children: [
new Container(
decoration: new BoxDecoration(
image: new DecorationImage(image: new AssetImage("images/background.jpg"), fit: BoxFit.cover,),
),
),
new Center(
child: new Text("Hello background"),
)
],
)
);
}