CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2022-09-06
by eamirho3ein

Original Post

Original - Posted on 2020-09-09
by Salim Murshed



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

Try this:
Container( decoration: const BoxDecoration( color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(15)), boxShadow: null, ), padding: const EdgeInsets.all(20), child: Column( children: [ Row( children: [ Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Claim ID', style: TextStyle( fontSize: 12, fontWeight: FontWeight.w500, color: Colors.grey, ), ), Padding( padding: const EdgeInsets.only(top: 4.0), child: Text( 'widget.claimNumber', style: const TextStyle( fontSize: 14, fontWeight: FontWeight.w600, ), ), ), ], ), ), SizedBox( width: 16, ), Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( 'Contract No.', style: TextStyle( fontSize: 12, fontWeight: FontWeight.w500, color: Colors.grey, ), ), Padding( padding: const EdgeInsets.only(top: 4.0), child: Text( 'KP2207514735', style: TextStyle( fontSize: 14, fontWeight: FontWeight.w600, ), ), ), ], ), ), ], ), Divider( color: Colors.black, height: 20, thickness: 1, ), Row( mainAxisSize: MainAxisSize.min, children: [ Container( height: 59, width: 59, decoration: const BoxDecoration( borderRadius: BorderRadius.all(Radius.circular(10)), color: Colors.blueAccent // image: DecorationImage( // image: AssetImage("lib/Assets/Images/car.png"), // fit: BoxFit.cover, // ), ), ), SizedBox( width: 12, ), Expanded( child: Column( mainAxisSize: MainAxisSize.max, children: [ Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Expanded( child: Text( 'Toyota yaris', overflow: TextOverflow.fade, style: const TextStyle( fontSize: 16, fontWeight: FontWeight.w700, ), ), ), Container( margin: const EdgeInsets.only(left: 16), decoration: BoxDecoration( color: Colors.black, borderRadius: const BorderRadius.all( Radius.circular(5))), padding: const EdgeInsets.all(3), child: Text( '2019', style: TextStyle( color: Colors.blueAccent, fontSize: 10, fontWeight: FontWeight.w500), ), ), ], ), SizedBox( height: 12, ), Row( children: [ Expanded( child: Text.rich( softWrap: false, overflow: TextOverflow.fade, TextSpan( text: 'Model: ', style: TextStyle( fontSize: 12, fontWeight: FontWeight.w500, color: Colors.grey), children: <InlineSpan>[ TextSpan( text: 'snapshot.data.model', style: TextStyle( fontSize: 12, fontWeight: FontWeight.w700, color: Colors.black), ), ]), ), ), SizedBox( width: 16, ), Expanded( child: Text.rich( softWrap: false, overflow: TextOverflow.fade, TextSpan( text: 'Make: ', style: TextStyle( fontSize: 12, fontWeight: FontWeight.w500, color: Colors.grey), children: <InlineSpan>[ TextSpan( text: 'snapshot.data.make', style: TextStyle( fontSize: 12, fontWeight: FontWeight.w700, color: Colors.black), ) ])), ), ], ), ], ), ) ], ), ], ), )
[![enter image description here][1]][1]

[1]: https://i.stack.imgur.com/PWVE5.png
Please check the full code edit from your code. Actually you are using two FloatingActionButton. So you need to use two heroTag with different name. I already added in the code. No problem with NewTrip class.
import 'package:flutter/material.dart'; class MyHomePage extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( home: Page0(), ); } } class Page0 extends StatefulWidget { @override _Page0State createState() => _Page0State(); } class _Page0State extends State { @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Color(0xFF493597), body: ListView( children: [ Padding( padding: EdgeInsets.only(top: 15.0, left: 10.0), ), SizedBox( height: 25.0, ), Padding( padding: EdgeInsets.only(left: 40.0), child: Row( children: [ Text( 'Expense', style: TextStyle( fontFamily: 'Montserrat', color: Colors.white, fontWeight: FontWeight.bold, fontSize: 25.0), ), SizedBox( width: 10.0, ), Text( 'What', style: TextStyle( fontFamily: 'Montserrat', color: Colors.white, fontSize: 25.0, ), ), ], ), ), SizedBox(height: 60.0), Container( margin: EdgeInsets.only( left: 10.0, right: 10.0, ), height: MediaQuery.of(context).size.height - 150, decoration: BoxDecoration( color: Color(0xFFFCFCFC), borderRadius: BorderRadius.only( topLeft: Radius.circular(75.0), topRight: Radius.circular(75.0), ), ), child: ListView( primary: false, padding: EdgeInsets.only( left: 15.0, right: 20.0, top: 25.0, ), children: [ Padding( padding: const EdgeInsets.only( top: 30.0, ), child: Column( children: [ //greeting text Row( children: [ Expanded( child: Center( child: Text( 'Hello! :)', style: TextStyle( fontFamily: 'Permanent-Marker', color: Colors.black, fontSize: 30.0, ), ), ), ), ], ), SizedBox( height: 30.0, ), //add button Row(children: [ Expanded( flex: 1, child: Container( height: 100.0, width: 100.0, child: FittedBox( child: FloatingActionButton( heroTag: "btn", elevation: 10.0, backgroundColor: Colors.white, child: Icon( Icons.add, color: Colors.black, ), onPressed: () { Navigator.push( context, MaterialPageRoute( builder: (context) => NewTrip()), ); }, ), ), ), ), //add text Expanded( flex: 1, child: Text( 'New trip', style: TextStyle( fontFamily: 'Nanum', fontSize: 30.0, ), ), ), ]), SizedBox( height: 30.0, ), //previous trip button Row( children: [ Expanded( flex: 1, child: Container( height: 100.0, width: 100.0, child: FittedBox( child: FloatingActionButton( heroTag: "btn1", elevation: 10.0, backgroundColor: Colors.white, onPressed: () {}, child: Icon( Icons.assessment, color: Colors.black, ), ), ), ), ), //previous trip text Expanded( flex: 1, child: Text( 'Previous trips', style: TextStyle( fontFamily: 'Nanum', fontSize: 30.0, ), ), ) ], ), SizedBox( height: 50.0, ), ], ), ), ], ), ), ], ), ); } }
NewTrip class
class NewTrip extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( body: Text('NEW TRIP'), ); } }


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