1.
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: Scaffold(
backgroundColor:Colors.brown,// background
appBar:AppBar(title: Text('hello'),
backgroundColor: Colors.brown,),
body:Center(child: Image(image: NetworkImage('https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885__480.jpg'),)) // img
),
),
);
2.
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: Scaffold(
backgroundColor:Colors.brown,// background
appBar:AppBar(title: Text('hello'),
backgroundColor: Colors.brown,),
body:const Center(child: Image(image: AssetImage('images/music.png'),)) // img
),
),
);
3.
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: Scaffold(
backgroundColor:Colors.brown,// background
appBar:AppBar(title: const Text("flutter"),
backgroundColor: Colors.brown,),
body: Container(
height: 200,
width: double.infinity,
//color: Colors.purple,
alignment: Alignment.center,
margin: const EdgeInsets.all(20),
padding: const EdgeInsets.all(50),
transform: Matrix4.rotationZ(0.1),// rotation widget
decoration: BoxDecoration( border: Border.all(color: Colors.white, width: 3),
),
child: const Text("Android flutter",
style: TextStyle(fontSize: 20,color:Colors.white)))),// img
// ),
// ),
),);
4.
import 'package:flutter/material.dart';
void main() => runApp(
MaterialApp(
home: Scaffold(
//backgroundColor:Colors.brown,// background
appBar:AppBar(title: Text('hello'),
backgroundColor: Colors.deepPurple,),
body:Column(
children: [
Container(
height: 200,
width: 1000,
child: Center(child: Image(image: NetworkImage("https://mir-s3-cdn-cf.behance.net/project_modules/2800_opt_1/aa8625109287767.5fd08439c7676.jpg"))),
),
Center(child:Image(image: NetworkImage("https://mir-s3-cdn-cf.behance.net/project_modules/2800_opt_1/aa8625109287767.5fd08439c7676.jpg" ))),
Container(
height: 100,
width: 1000,
child:Image(image: NetworkImage("https://mir-s3-cdn-cf.behance.net/project_modules/2800_opt_1/aa8625109287767.5fd08439c7676.jpg" )),
),
],
),
// child: // Foreground widget here
//Container(child: Image(image: AssetImage('images/music.png'),)) // img
),
),
);
5.
6.