CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2019-12-27
by Jaydeep chatrola

Original Post

Original - Posted on 2018-04-25
by Mohit Suthar



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

its works for me
Widget build(BuildContext context) { print(sizWidth); return Scaffold( appBar: AppBar( title: const Text('Sample Code'), ), body: Transform.scale( scale: 0.5, child: Container( color: Colors.red, width: fitWidth != 0?fitWidth:MediaQuery.of(context).size.width, height: 400, ), ), floatingActionButton: FloatingActionButton( onPressed: () { setState(() { fitWidth = 800; }); // Add your onPressed code here! }, backgroundColor: Colors.green, )); }
cheers...
After some research, I found out some solution, and thanks to @Günter Zöchbauer,
I used column instead of Container and
set the property to column **CrossAxisAlignment.stretch** to Fill match parent of Button
new Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ new RaisedButton( child: new Text( "Submit", style: new TextStyle( color: Colors.white, ) ), colorBrightness: Brightness.dark, onPressed: () { _loginAttempt(context); }, color: Colors.blue, ), ], ),

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