Nazo_2004
Decapat
- Katılım
- 8 Temmuz 2021
- Mesajlar
- 259
Daha fazla
- Cinsiyet
- Erkek
Kod:
class AnaEkran extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: SafeArea(
child: Scaffold(
appBar: AppBar(backgroundColor: Colors.white, title: Text("BlockMedia", style: TextStyle(color: Colors.black))),
body: SingleChildScrollView(
child: Column(
children: <Widget>[
//İmages ve Thoughts alanı
SafeArea(
child: Container(
height: 50,
width: 610,
child: Row(
children: <Widget>[
Container(
width: 175,
child: TextButton(child: Text("Resimler"), onPressed: () {}),
),
SizedBox(width: 1),
Container(
width: 174,
child: TextButton(
child: Text("Düşünceler"),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Thougths(),
));
}),
),
],
),
),
),
UserPosts(name: "Nezirhan Şenel"),
],
)))),
);
}
}
/// PROFİLE EKRANI ///
class YourProfile extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
appBar: AppBar(
backgroundColor: Colors.white,
leading: IconButton(
icon: Icon(
Icons.arrow_left_outlined,
color: Colors.black,
),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Home(),
));
})),
body: SingleChildScrollView(
child: Column(
children: <Widget>[
Container(
child: Column(children: <Widget>[
Container(
child: Row(
children: <Widget>[
Padding(
padding: EdgeInsets.fromLTRB(20, 20, 0, 0),
child: Container(
width: 100,
height: 100,
decoration: new BoxDecoration(
borderRadius: new BorderRadius.circular(80),
color: Colors.grey[350],
),
child: IconButton(icon: Icon(Icons.person), onPressed: () {}),
),
),
SizedBox(width: 15),
Text("", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold)),
Text("", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold)),
],
),
),
SizedBox(height: 10),
Container(
child: Row(
children: <Widget>[
SizedBox(width: 15),
Text("Takipçiler", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold)),
SizedBox(width: 30),
Text("Takip Edilenler", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold)),
SizedBox(width: 30),
Text("Paylaşımlar", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold)),
SizedBox(width: 15),
],
),
),
Container(
child: Row(
children: <Widget>[
SizedBox(width: 35),
Text("75", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold)),
SizedBox(width: 105),
Text("75", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold)),
SizedBox(width: 105),
Text("75", style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold)),
],
),
),
SizedBox(height: 10),
Row(
children: [
FlatButton(
child: Text("Takip Et", style: TextStyle(fontSize: 25, color: Colors.white)),
minWidth: 150,
height: 60,
color: Colors.lightBlue,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
),
onPressed: () {},
),
FlatButton(
child: Text("Mesaj gönder", style: TextStyle(fontSize: 25, color: Colors.black)),
minWidth: 100,
height: 60,
//color: Colors.lightBlue,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(18.0),
),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => Mesaj(),
));
},
),
],
),
SizedBox(height: 10),
Container(
child: Row(
children: <Widget>[
Container(
child: FlatButton(
minWidth: 185,
height: 60,
child: Icon(Icons.photo),
onPressed: () {},
),
),
Container(
child: FlatButton(
minWidth: 185,
height: 60,
child: Icon(Icons.comment),
onPressed: () {},
),
),
],
),
),
]),
)
],
),
),
),
);
}
}