@@ -10,45 +10,103 @@ class Blog extends StatelessWidget {
10
10
@override
11
11
Widget build (BuildContext context) {
12
12
return Scaffold (
13
- // backgroundColor: Colors.black,
14
13
body: ListView (
15
14
children: [
16
15
Container (
17
- height: 310 ,
16
+ height: 365 ,
18
17
width: MediaQuery .of (context).size.width,
19
18
child: Card (
20
- // margin: EdgeInsets.all(0),
21
19
elevation: 8 ,
22
20
child: Column (
23
21
children: [
24
22
Container (
25
23
height: 230 ,
26
24
width: MediaQuery .of (context).size.width,
27
25
decoration: BoxDecoration (
28
- color: Colors .black,
29
26
image: DecorationImage (
30
27
image: networkHandler.getImage (addBlogModel.id),
31
28
fit: BoxFit .fill,
32
29
),
33
30
),
34
31
),
35
- // SizedBox()
36
- Container (
32
+ Padding (
37
33
padding: const EdgeInsets .symmetric (
38
34
horizontal: 20 , vertical: 10 ),
39
35
child: Text (
40
36
addBlogModel.title,
41
- textAlign: TextAlign .center,
42
37
style: TextStyle (
43
38
fontSize: 16 ,
44
39
fontWeight: FontWeight .bold,
45
40
),
46
41
),
47
42
),
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
+ ),
48
90
],
49
91
),
50
92
),
51
93
),
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
+ ),
52
110
],
53
111
),
54
112
);
0 commit comments