Musa BAL
1 min readSep 9, 2021

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),

),

],

),

),

],

),

),

),

),

);

}

}

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Musa BAL
Musa BAL

No responses yet

Write a response