Skip to content

Commit

Permalink
fixed dart analyze issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Apr 26, 2024
1 parent 593279d commit 255eb37
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,13 @@ class _ChatBottomSheetState extends State<ChatBottomSheet> {

void _scrollToEnd() {
if (_scrollController.hasClients) {
WidgetsBinding.instance.addPostFrameCallback((_) => {
if (_scrollController.positions.isNotEmpty)
{
_scrollController.animateTo(
_scrollController.position.maxScrollExtent,
duration: const Duration(milliseconds: 200),
curve: Curves.easeInOut)
}
});
WidgetsBinding.instance.addPostFrameCallback((_) =>
_scrollController.positions.isNotEmpty
? _scrollController.animateTo(
_scrollController.position.maxScrollExtent,
duration: const Duration(milliseconds: 200),
curve: Curves.easeInOut)
: null);
}
}

Expand Down

0 comments on commit 255eb37

Please sign in to comment.