File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class AddCommentView extends StatefulWidget {
3434
3535class _AddCommentViewState extends State <AddCommentView > {
3636 static const int _maxCommentLength = 250 ;
37+ static const double _keyboardActionsBarHeight = 45 ;
3738
3839 final TextEditingController commentTextEditingController =
3940 TextEditingController ();
@@ -123,7 +124,11 @@ class _AddCommentViewState extends State<AddCommentView> {
123124 @override
124125 Widget build (BuildContext context) {
125126 final theme = Theme .of (context);
127+ final keyboardViewInsets = MediaQuery .viewInsetsOf (context).bottom;
128+ final keyboardActionsPadding =
129+ keyboardViewInsets > 0 ? _keyboardActionsBarHeight : 0 ;
126130 return Scaffold (
131+ resizeToAvoidBottomInset: false ,
127132 appBar: _appBar (theme),
128133 body: KeyboardActions (
129134 disableScroll: true ,
@@ -224,7 +229,7 @@ class _AddCommentViewState extends State<AddCommentView> {
224229 duration: const Duration (milliseconds: 180 ),
225230 curve: Curves .easeOut,
226231 padding: EdgeInsets .only (
227- bottom: MediaQuery . of (context).viewInsets.bottom ,
232+ bottom: keyboardViewInsets + keyboardActionsPadding ,
228233 ),
229234 child: SafeArea (
230235 top: false ,
You can’t perform that action at this time.
0 commit comments