-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.dart
71 lines (70 loc) · 2.74 KB
/
feed.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import 'package:flutter/material.dart';
class Feed extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Container(
width: double.infinity,
height: 400,
decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(20.0)),
color: Colors.blue[50],
),
margin: EdgeInsets.symmetric(vertical: 8.0, horizontal: 10.0),
child: new Padding(
padding: EdgeInsets.all(10),
child: new Column(
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
CircleAvatar(
backgroundImage: NetworkImage(
'https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRv6OAICet9D9DJXVEoq4D0vrz1uIpB-NpI0w&usqp=CAU'),
),
Expanded(
flex: 2,
child: Text('Aditya Pahilwani',
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 24),
textAlign: TextAlign.right),
),
],
),
Container(
margin: EdgeInsets.symmetric(vertical: 8.0),
width: double.infinity,
height: 270.0,
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
image: NetworkImage(
'https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcRv6OAICet9D9DJXVEoq4D0vrz1uIpB-NpI0w&usqp=CAU')),
borderRadius: BorderRadius.all(Radius.circular(8.0)),
color: Colors.redAccent,
),
),
Text.rich(
TextSpan(
children: <TextSpan>[
TextSpan(
text: 'Description : ', // default text style
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 24),
),
TextSpan(
text: 'Lorem sjdbnjkfdbnjkdfbnfjkdbnjkfdnjk ',
style: TextStyle(fontSize: 18),
),
],
),
)
],
),
)),
),
);
}
}