Untitled
profil_sayfasiunknown
dart
4 years ago
2.5 kB
4
Indexable
import 'package:flutter/material.dart';
class profilSayfasi extends StatefulWidget {
@override
State<profilSayfasi> createState() => _profilSayfasiState();
}
class _profilSayfasiState extends State<profilSayfasi> {
@override
Widget build(BuildContext context) {
return Center(
child: Padding(
padding: EdgeInsets.all(8.0),
child: Column(
children: [
CircleAvatar(
backgroundColor: Colors.lime,
radius: 75,
backgroundImage: AssetImage('assets/images/faytklab.jpg'),
),
SizedBox(height: 20),
Expanded(
child: Text(
'Tayyar Dürden',
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.bold,
),
),
),
Expanded(
flex: 1,
child: Container(
alignment: Alignment.center,
color: Colors.lime,
height: 50,
child: Text(
'Dönüşüme kazandırılan atık miktarı:82',
),
),
),
SizedBox(height: 20),
Expanded(
flex: 1,
child: Container(
alignment: Alignment.center,
color: Colors.green,
height: 50,
child: Text(
'En İyi Atık Toplama Sıralamasında #1324’inci sıradasın ',
style: TextStyle(fontSize: 15),
),
),
),
SizedBox(height: 20),
Expanded(
flex: 3,
child: Container(
color: Colors.lime,
child: Row(
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: Image.asset('assets/images/istatistikfoto.png'),
),
Text(
'''
21 kilo kagıt dönüştürdünüz.
11 kilo pil dönüştürdünüz.
50 kilo plastik dönüştürdünüz.''',
style: TextStyle(fontSize: 15),
),
],
),
),
),
SizedBox(height: 20),
],
),
),
);
}
}
Editor is loading...