flutter tilelist like customized
Stack(
children: [
Container(
width: double.infinity,
margin: EdgeInsets.only(right: 100.0, left: 50.0,bottom: 10.0),
child: Material(
borderRadius: BorderRadius.circular(5.0),
elevation: 5.0,
child: Container(
padding: EdgeInsets.all(16.0),
child: Row(
children: [
// row children
showImage(),
// row children
SizedBox(width: 10.0),
// row children
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
showText(true),
SizedBox(height:30),
showText(false),
],
),
),
],
),
),
),
),
// delete button upper right hand
Positioned(
top: 20, right:80, child: Container(
height:40, width:40,
alignment: Alignment.center,
child: MaterialButton(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0)),
padding: EdgeInsets.all(0.0),
color: Colors.pinkAccent,
child: Icon(Icons.clear, color:Colors.white),
onPressed:(){},
),
),
),
],
),
])));
}//widget build
Widget showImage(){
return Container(height: 150, child: Image.network('https://picsum.photos/250?image=9'));
}
Widget showText(bool showFirst){
if (showFirst)
{return Text('first line', style:TextStyle(fontSize: 30));}
else {return Text('first line', style:TextStyle(fontSize: 16));}
}