CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2023-03-14
by Harjinder Bains

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;

Hi @priya you need to use Stack instead of Column. Please try this code:-
Stack( children: [ Padding( padding: const EdgeInsets.only(top: 30, left: 5, right: 5), child: Container( decoration: BoxDecoration( border: Border.all( width: 1, color: Color(0xffececec), ), borderRadius: const BorderRadius.all(Radius.circular(10))), child:Padding( padding: const EdgeInsets.only(top: 10), child: Image( width: 120, height:120 image: AssetImage( "images/logo.png", ), Positioned(top:10, right:10, child:Image( width: 30, image: AssetImage( "add here your check image", )) ], ),
Please let me know if you still face any issue
You want to wrap your card in a `Column` because the 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://picsum.photos/200", fit: BoxFit.fill, ), ), Padding( padding: EdgeInsets.fromLTRB(16.0, 12.0, 16.0, 8.0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( "Just add your desired image size (width & height) after our URL, and you'll get a random image.", textAlign: TextAlign.center, ), ], ), ), ], ), ) ])
[![enter image description here][1]][1]

[1]: https://i.stack.imgur.com/DCeSM.png

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