CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2025-12-10
by romu2000

Original Post

Original - Posted on 2021-09-13
by Vishal\_VE



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

I used LAyoutbuilder with AnimatedPadding and it works fine for me :-).
``` showModalBottomSheet( context: context, isScrollControlled: true, backgroundColor: AppColors.lightGreen, builder: (ctx) { return LayoutBuilder( builder: (context, constraints) { return AnimatedPadding( duration: const Duration(milliseconds: 150), padding: EdgeInsets.only( bottom: MediaQuery.of(context).viewInsets.bottom, ), child: SingleChildScrollView( child: Container( ........... ), ); }, ); }, ); ```
You need to pass the height after wrapping the Column widget with a container.
``` return Container( height: 80, // add here height of your container, hope it will work. child: Column( children: [ const _Title(), Stack( children: [ ListView( shrinkWrap: true, children: const [ _Message(), ], ), const TextField( decoration: InputDecoration( enabledBorder: OutlineInputBorder( borderSide: BorderSide( color: Colors.grey, ), ), border: OutlineInputBorder(), hintText: 'Enter a search term', ), ), ], ), ], ), ) ```

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