-
Notifications
You must be signed in to change notification settings - Fork 77
Drag to dismiss bottom sheet: Some gesture Not working with a keyboard open #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @mazzonem! Thanks for the report. DO you have time to investigate and fix? Otherwise I will try to a maintainer to investigate. |
@TahaTesser can you check this? |
@mazzonem IMG_9595.movCode Sampleexpand to view the code sampleimport 'package:flutter/material.dart';
import 'package:wolt_modal_sheet/wolt_modal_sheet.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(
body: SafeArea(
child: Center(
child: Builder(
builder: (context) {
return FilledButton(
onPressed: () {
showWoltDialog(context);
},
child: Text('Show Wolt bottom sheet'),
);
},
),
),
),
),
);
}
}
void showWoltDialog(BuildContext context) {
WoltModalSheet.show(
context: context,
modalTypeBuilder: (context) => WoltModalType.bottomSheet(),
pageListBuilder:
(bottomSheetContext) => <SliverWoltModalSheetPage>[
WoltModalSheetPage(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: TextField(
decoration: InputDecoration(
hintText: 'Enter some text',
border: OutlineInputBorder(),
),
),
),
),
],
);
}
|
ScreenRecording_03-12-2025.19-52-10_1.MP4Hi @TahaTesser Check out this video—when the keyboard opens and you drag the sheet down, the sheet disappears, but the keyboard and the barrier remain. |
Bug report
Describe the bug
A clear and concise description of what the bug is. If applicable, please add screenshots/videos.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
The bottom sheet should close. At the moment the sheet collapsed but stays opened (the keyboard is still visible).
onModalDismissedWithDrag is not called.
Additional context
My guess is that onModalDismissedWithDrag is only called when lifting the finger, but it's not registered when above the opened keyboard.
The text was updated successfully, but these errors were encountered: