CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2023-04-01
by Sania Developer

Original Post

Original - Posted on 2021-03-15
by Harsh Chovatiya



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

**Try this Code:** ``` class Home extends StatelessWidget { const Home({Key? key}) : super(key: key);
@override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text('Home'), ), body: ListView( children: [ Card( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10.0), side: BorderSide(color: Color(0xff727C8F), width: 1.25), ), margin: EdgeInsets.all(8.0), child: Padding( padding: const EdgeInsets.all(0.0), child: ListTile( leading: Icon(Icons.location_on,color: Color(0xff727C8F),), title: Padding( padding: const EdgeInsets.only(top: 10.0), child: Text( 'Plan B', style: TextStyle( fontWeight: FontWeight.bold, color: Color(0xff727C8F), fontSize: 18 ), ), ), subtitle: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ SizedBox(height: 5), Text('1234 Address, City, State\nPincode: 1234', style: TextStyle( color: Color(0xff727C8F), fontSize: 16, ), ), SizedBox(height: 5), ], ), trailing: IconButton( icon: Icon(Icons.close,color: Color(0xff727C8F)), onPressed: () {}, ), ), ), ), ], ), ); } } ``` **Output**:
[![o][1]][1]

[1]: https://i.stack.imgur.com/Xdwp6.png
*I hope this work for you!*
You can try as well as my code. ``` Widget ListItem({ String imageUrl, String text, String caption, double imageSize = 50, double horizontalSpacing = 15, double verticalspacing = 20, bool showDetailIndicatorIcon = true, GestureTapCallback onTap, }) { return InkWell( onTap: onTap, child: Container( margin: EdgeInsets.only(top: 2), padding: EdgeInsets.symmetric( horizontal: horizontalSpacing, vertical: verticalspacing), child: Row( children: [ ClipRRect( child: Image.network( imageUrl, fit: BoxFit.cover, height: imageSize, width: imageSize, ), borderRadius: BorderRadius.circular(imageSize / 2), ), Expanded( child: Container( margin: EdgeInsets.symmetric(horizontal: 10), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Container( child: Text( text, style: TextStyle( color: ColorRes.lightWhite, fontSize: 14, fontWeight: FontWeight.bold, ), ), ), SizedBox(height: 5), Text( caption, style: TextStyle( color: ColorRes.grey, fontSize: 12, fontWeight: FontWeight.normal, ), maxLines: 3, ), ], ), ), ), ], ), ), ); } ``` I hope it's work. Please let me know.

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