CopyPastor

Detecting plagiarism made easy.

Score: 0.8142938613891602; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2022-12-26
by Ali Altiyev

Original Post

Original - Posted on 2022-05-21
by Roya Rastgar



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You shuld wrap your widget with Expanded

**Row( children: [ Image.asset("images/movie_example_image.png"), const SizedBox( width: 10, ),[enter image description here][1] Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ const Text( ("Mortal Kombat"), style: TextStyle( color: Colors.black, fontWeight: FontWeight.bold, fontSize: 20), overflow: TextOverflow.ellipsis, ), const SizedBox( height: 10, ), Text( ("12/10/2022"), style: TextStyle(color: Colors.black.withOpacity(0.4)), ), const SizedBox( height: 10, ), const Text( ("Express yourself with a custom text design created just fo`r you by a professional designer. Need ideas? We’ve collected some amazing examples of text images from our global community of designers. Get inspired and start planning the perfect text design today."), // style: TextStyle(overflow: TextOverflow.ellipsis),
maxLines: 2, overflow: TextOverflow.ellipsis, ), ], ), ), ], )**

[1]: https://i.stack.imgur.com/pUX9n.jpg
you should wrap your listview.builders with Expanded widget
Here is sample code snippet :
Column( children: [ Expanded( child: ListView.builder( padding: EdgeInsets.only( top: AppBar().preferredSize.height + MediaQuery.of(context).padding.top + 24, bottom: 62 + MediaQuery.of(context).padding.bottom, ), scrollDirection: Axis.vertical, itemCount: list.length, itemBuilder: (BuildContext context, int index) { return ListItem(item: list[index]); }), ), Expanded( child: ListView.builder( padding: EdgeInsets.only( top: AppBar().preferredSize.height + MediaQuery.of(context).padding.top + 24, bottom: 62 + MediaQuery.of(context).padding.bottom, ), scrollDirection: Axis.vertical, itemCount: list.length, itemBuilder: (BuildContext context, int index) { return ListItem(item: list[index]); }), ), ], );

        
Present in both answers; Present only in the new answer; Present only in the old answer;