Here I am trying to create a website using flutter which will work on the mobile and laptop & every other device. I am trying to fetch Profile-image and name and user biography. #Biography field in a cloud-firestore contain big paragraph or long text data. The fetching of every data from a firestore is done well and displaying inside a website.
But the problem is with #biography field which is storing a content in the form of big paragraph and that big text paragraph is overflow from the card . How can i arrange the Biography field data so that it look good in the mobile & laptop or any other devices & stop overflowing from a card .
Pic 1 : is in the size of mobile screen.https://photos.app.goo.gl/cBmfixYFiPNCvqi78
pic 2: is in the size of laptop screen.https://photos.app.goo.gl/TNviCekgRRNUFYoLA
Widget buildResultCard(data) {
return Scaffold(
body: SingleChildScrollView(
child:
Container(
child: Card(
color: Colors.white,
shape: RoundedRectangleBorder(
side: BorderSide(color: Colors.blue,width: 2),
borderRadius: BorderRadius.circular(10),
),
child: Padding(
padding: const EdgeInsets.all(16.0),
child: Row(
children: <Widget>[
Container(
width:100,
//height: 400,
padding: const EdgeInsets.only(top: 2.0, bottom: 5.0),
child: Row(children: <Widget>[
Image.network(data['image'], height: 120,fit: BoxFit.cover,),
Spacer(),
]),
),
SizedBox(width: 5),
Text('\n${data['fname']},\n\n${data['biography']}'),
],
),
),
),
),
),
);
}