I am trying to implement simple one-two line text. Text will have a starting text then icon and ending text.Due to different styles i am using row with text,icon and text widgets. I am getting A RenderFlex overflowed by 16 pixels on the right. error. i enclose the row in flexible and expanded but still not working. i just want the text to drop at the end of line to next line.
Container( padding: EdgeInsets.only( left: 20, right: 20, ), width: mdq.size.width, child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Expanded( child: Row( mainAxisAlignment: MainAxisAlignment.start, mainAxisSize: MainAxisSize.min, children: <Widget>[ Text( 'Tap ', style: TextStyle( fontSize: 17, ), ), Icon(Icons.add), Text( 'on the right hand corner to start a new chat.', style: TextStyle( fontSize: 17, ), ), ], ), ), Container( margin: EdgeInsets.symmetric( vertical: 15, ), child: Text( 'You can communicate with the user who have installed Just Meetups and Deals app', style: TextStyle( color: Colors.grey, fontSize: 16, ), ), ), Container( margin: EdgeInsets.symmetric( vertical: 15, ), child: InkWell( onTap: () {}, child: Text( 'Start communicating', textAlign: TextAlign.left, style: TextStyle( color: Colors.blue, fontSize: 20, fontWeight: FontWeight.bold, ), ), ), ), ], ), );