Skip to content

Commit 75ed65f

Browse files
committed
individual blog page page added
1 parent c0fc449 commit 75ed65f

File tree

1 file changed

+65
-7
lines changed

1 file changed

+65
-7
lines changed

lib/Blog/Blog.dart

+65-7
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,103 @@ class Blog extends StatelessWidget {
1010
@override
1111
Widget build(BuildContext context) {
1212
return Scaffold(
13-
// backgroundColor: Colors.black,
1413
body: ListView(
1514
children: [
1615
Container(
17-
height: 310,
16+
height: 365,
1817
width: MediaQuery.of(context).size.width,
1918
child: Card(
20-
// margin: EdgeInsets.all(0),
2119
elevation: 8,
2220
child: Column(
2321
children: [
2422
Container(
2523
height: 230,
2624
width: MediaQuery.of(context).size.width,
2725
decoration: BoxDecoration(
28-
color: Colors.black,
2926
image: DecorationImage(
3027
image: networkHandler.getImage(addBlogModel.id),
3128
fit: BoxFit.fill,
3229
),
3330
),
3431
),
35-
// SizedBox()
36-
Container(
32+
Padding(
3733
padding: const EdgeInsets.symmetric(
3834
horizontal: 20, vertical: 10),
3935
child: Text(
4036
addBlogModel.title,
41-
textAlign: TextAlign.center,
4237
style: TextStyle(
4338
fontSize: 16,
4439
fontWeight: FontWeight.bold,
4540
),
4641
),
4742
),
43+
Padding(
44+
padding: const EdgeInsets.symmetric(
45+
horizontal: 20, vertical: 10),
46+
child: Row(
47+
children: [
48+
Icon(
49+
Icons.chat_bubble,
50+
size: 18,
51+
),
52+
SizedBox(
53+
width: 5,
54+
),
55+
Text(
56+
addBlogModel.comment.toString(),
57+
style: TextStyle(fontSize: 15),
58+
),
59+
SizedBox(
60+
width: 15,
61+
),
62+
Icon(
63+
Icons.thumb_up,
64+
size: 18,
65+
),
66+
SizedBox(
67+
width: 8,
68+
),
69+
Text(
70+
addBlogModel.count.toString(),
71+
style: TextStyle(fontSize: 15),
72+
),
73+
SizedBox(
74+
width: 15,
75+
),
76+
Icon(
77+
Icons.share,
78+
size: 18,
79+
),
80+
SizedBox(
81+
width: 8,
82+
),
83+
Text(
84+
addBlogModel.share.toString(),
85+
style: TextStyle(fontSize: 15),
86+
),
87+
],
88+
),
89+
),
4890
],
4991
),
5092
),
5193
),
94+
SizedBox(
95+
height: 10,
96+
),
97+
Container(
98+
width: MediaQuery.of(context).size.width,
99+
child: Card(
100+
elevation: 15,
101+
child: Padding(
102+
padding: EdgeInsets.symmetric(
103+
horizontal: 10,
104+
vertical: 15,
105+
),
106+
child: Text(addBlogModel.body),
107+
),
108+
),
109+
),
52110
],
53111
),
54112
);

0 commit comments

Comments
 (0)