flutter background image
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage("images/logo.png"), fit: BoxFit.cover)),
child: Scaffold(
backgroundColor: Colors.transparent,
appBar: AppBar(
elevation: 0,
backgroundColor: Colors.transparent,
title: Text('My App'),
centerTitle: true,
leading: IconButton(
icon: Icon(
Icons.list,
color: Colors.white,
),
onPressed: () {}),
),
),
),
);
}@override
Widget build(BuildContext context) {
return new Scaffold(
body: new Stack(
children: <Widget>[
new Container(
decoration: new BoxDecoration(
image: new DecorationImage(image: new AssetImage("images/background.jpg"), fit: BoxFit.cover,),
),
),
new Center(
child: new Text("Hello background"),
)
],
)
);
}
Also in JavaScript:
- javascript object property + multilevel + optional chaining
- node.js crypto.createcipheriv
- how to make input type date supported on all browsers
- array length for boolean in javascript
- super slider js
- bring to front svg html
- javascript variable declaration
- get input value in angular 7
- conditionally add key to object javascript
- JQuery .hasClass for multiple values in an if statement
- redux action to hit api and assign data in stateless component
- add parameter submit form javascript
- react check if browser is in dark mode
- stack overflow reverese array js
- javascript includes method getting 'hi' and 'high' problem
- visual studio code create react component shortcut
- how to add shadow to text in canvas nodejs
- react dark mode npm
- jquery continue in loop each
- how to make a array in javascript
- javascript count down with wile loop
- material ui align icon with text
- javascript draw circle on canvas
- what is es11