FLUTTER KAHVECİSİ
//pubspec.yaml dosyasından image ve font ayarları yapılacak
import ‘package:flutter/material.dart’;
import ‘package:google_fonts/google_fonts.dart’;
void main(){
runApp(BenimUyg()
);
}
class BenimUyg extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
//theme: ThemeData(fontFamily: “Satisfy”), // Tüm uygulamaya yazı fontu ayarı için
home:Scaffold(
backgroundColor: Colors.brown[400],
body:SafeArea(
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center, // Kolonu dikeyde ortala
mainAxisSize: MainAxisSize.min, // Kolonu dikeyde daraltır
children:<Widget> [
CircleAvatar( // Yuvarlak resim ekleme
radius: 80.0,
backgroundColor: Colors.lime,
backgroundImage: AssetImage(“assets/images/kahve.jpeg”),
),
Text(“Flutter Kahvecisi”,
style: TextStyle(fontSize: 30, // TextStyle ile ayar
color: Colors.brown[800],
fontFamily: “Satisfy”,
),
),
Text(“BİR FİNCAN UZAĞINIZDA”,
style: GoogleFonts.dancingScript( //Google font çekimi
fontSize: 20,
color: Colors.white,
),
),
Container(
width: 300,
child: Divider(
height: 15,
color: Colors.brown[600],
),
),
Container(
margin:EdgeInsets.symmetric(horizontal: 45, vertical: 5), // ikon ve mail adresine dış sağ sol 45 px ile ortala
padding: EdgeInsets.all(10.0), //ikon ve mail adresine iç yanlardan 10 px ile boşluk
color: Colors.brown,
child: Row(
children: <Widget>[
Icon(
Icons.email,
color:Colors.white,
//size:50,
),
SizedBox(
width: 10,
),
Text(“siparis@kahveci.com”,
style:TextStyle(
color: Colors.white,
fontSize: 20.0),
),
],
),
),
SizedBox(
height: 10,
),
Container(
margin:EdgeInsets.symmetric(horizontal: 45), // ikon ve mail adresine dış sağ sol 45 px ile ortala
padding: EdgeInsets.all(10.0), //ikon ve mail adresine iç yanlardan 10 px ile boşluk
color: Colors.brown,
child: Row(
children: <Widget>[
Icon(
Icons.phone_android, // hazır flutter ikonlarını kullandık
color:Colors.white,
//size:50,
),
SizedBox(
width: 10,
),
Text(“05446773043”,
style:TextStyle(
color: Colors.white,
fontSize: 20.0),
),
],
),
),
],
),
),
),
),
);
}
}