flutter slider with icon and text code example
Example: flutter banner with icon and text
Container(
padding: EdgeInsets.all(0),
margin: new EdgeInsets.all(0),
color: Colors.green[400],
child: Padding(
padding: const EdgeInsets.all(15.0),
child: Row(
children: [
Padding(
padding: const EdgeInsets.only(right: 8.0),
child: CircleAvatar(
backgroundColor: Colors.white,
radius: 30,
child: Icon(Icons.add),
),
),
Container(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
element.title,
style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold, color: Colors.white),
),
Text(
element.subTitle,
style: TextStyle(fontSize: 15, color: Colors.white),
),
],
),
)
],
),
),
);