АС
Size: a a a
АС
АС
YM
return Container(
margin: EdgeInsets.symmetric(horizontal: 10, vertical: 5),
height: 110,
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(15),
boxShadow: [
BoxShadow(
offset: Offset(0, 1),
blurRadius: 5,
color: Color(0xFF12153D).withOpacity(0.2),
),
],
),
child: Container(
margin: EdgeInsets.all(10),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15),
),
child: Row(
children: <Widget>[
//Image
Container(
child: Image.asset(
"assets/images/1.jpg",
height: 100,
width: 100,
fit: BoxFit.cover,
),
),
//Desc
Container(
margin: EdgeInsets.only(left: 10),
child: Column(
children: <Widget>[
//title
Container(
alignment: Alignment.centerLeft,
margin: EdgeInsets.only(bottom: 5),
child: Text(
"${article.title}",
style:
TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
textAlign: TextAlign.left,
),
),
//meta
Container(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
//Author
Container(
child: Row(
children: <Widget>[
//icon
Icon(Icons.person, size: 16, color: Colors.black54,),
SizedBox(width: 5,),
//Author
Text(userName, style: TextStyle(color: Colors.black54, fontWeight: FontWeight.w500),)
],
),
),
// SizedBox(width: 15,),
//Category
Container(
child: Row(
children: <Widget>[
//icon
Icon(Icons.category,size: 16, color: Colors.black54,),
SizedBox(width: 5,),
//Author
Text(article.category)
],
),
),
// SizedBox(width: 15,),
//Category
Container(
child: Row(
children: <Widget>[
//icon
Icon(Icons.access_time,size: 16, color: Colors.black54,),
SizedBox(width: 5,),
//Author
Text(article.created)
],
),
),
//TimeCreated
],
),
)
],
),
)
],
),
),
);
АС
АС
АС
Ю
АС
S
S
АС
SM
L
YM
АС
YM
YM
АС