CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2019-10-15
by Richard Heap

Original Post

Original - Posted on 2019-10-03
by Sanjayrajsinh



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

If you want the item to update automatically, without clicking submit, use this:
class _AddCashFormState extends State<AddCashForm> { final selectedDate = DateTime.now(); final chipList = <String>[ 'one', 'two', 'three', 'four', ]; String item; @override Widget build(BuildContext context) { return Scaffold( body: Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Row( children: chipList .map<Widget>((s) => ChoiceChip( label: Text(s), selected: s == item, onSelected: (bool selected) { setState(() { item = selected ? s : null; }); }, )) .toList(), ), Text(item ?? ''), ], ), ); } }
You want to wrap your card in Column because inner Column take full height
Column(children: <Widget>[ Card( margin: const EdgeInsets.all(10.0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ AspectRatio( aspectRatio: 18.0 / 13.0, child: Image.network( "https://i.stack.imgur.com/mDkkT.png", fit: BoxFit.fill, ), ), Padding( padding: EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 8.0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "Demo", textAlign: TextAlign.center, ), ], ), ), ], ), ) ])

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