Open LorenzoMioso opened 10 months ago
Thanks for the issue, in my case this was exactly what i wanted :D If i understand correctly you don't want to move when the keyboard shows up? Just remove the padding.
import 'package:flutter/cupertino.dart';
import 'package:sheet/sheet.dart';
class SheetTest extends StatelessWidget {
const SheetTest({super.key});
@override
Widget build(BuildContext context) {
return CupertinoPageScaffold(
child: SheetMediaQuery(
child: SafeArea(
child: Padding(
padding:
// just remove this line, should be working then.
// EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),
child: const Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
CupertinoTextField(
placeholder: 'Enter your name',
),
]),
)),
));
}
}
In not able to figure out why in my project the sheet behaves in this way:
https://github.com/jamesblasco/modal_bottom_sheet/assets/29272035/9d729f3f-cdc5-434b-b470-91fd27de406d
I wrote the following code :
I tried to put a text field in example project and it works correctly. There are no significant differences between the example and my project, other then that i'm using auto_route (but i doubt its the problem). Any help will be appreciated.