Skip to content

Commit cae15cd

Browse files
committed
action bar/buttons higher
1 parent 3515c0e commit cae15cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/features/threads/presentation/comments/add_comment/view/add_comment_view.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class AddCommentView extends StatefulWidget {
3434

3535
class _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,

0 commit comments

Comments
 (0)