Skip to content

Commit b982ec5

Browse files
fix: 🐛 change static bottom height in chat_groupedlist_widget.dart
1 parent 4c9b6ad commit b982ec5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/src/widgets/chat_groupedlist_widget.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class _ChatGroupedListWidgetState extends State<ChatGroupedListWidget>
121121

122122
bool get isEnableSwipeToSeeTime => widget.isEnableSwipeToSeeTime;
123123

124-
double height = 0;
124+
double chatTextFieldHeight = 0;
125125

126126
@override
127127
void initState() {
@@ -140,7 +140,7 @@ class _ChatGroupedListWidgetState extends State<ChatGroupedListWidget>
140140
WidgetsBinding.instance.addPostFrameCallback((_) {
141141
if (!mounted) return;
142142
setState(() {
143-
height =
143+
chatTextFieldHeight =
144144
provide?.chatTextFieldViewKey.currentContext?.size?.height ?? 10;
145145
});
146146
});
@@ -245,7 +245,9 @@ class _ChatGroupedListWidgetState extends State<ChatGroupedListWidget>
245245

246246
// Adds bottom space to the message list, ensuring it is displayed
247247
// above the message text field.
248-
const SizedBox(height: 100),
248+
SizedBox(
249+
height: chatTextFieldHeight,
250+
),
249251
],
250252
),
251253
);

0 commit comments

Comments
 (0)