Skip to content

Commit

Permalink
hotfix: Load more history
Browse files Browse the repository at this point in the history
  • Loading branch information
drminh2807 committed Dec 8, 2023
1 parent 59ae6f2 commit 1918161
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lib/pages/chat/chat_event_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,15 @@ class ChatEventList extends StatelessWidget {
child: CircularProgressIndicator.adaptive(strokeWidth: 2),
);
}
if (controller.timeline!.canRequestFuture) {
Center(
child: OutlinedButton(
style: OutlinedButton.styleFrom(
backgroundColor:
Theme.of(context).scaffoldBackgroundColor,
),
if (controller.timeline!.canRequestHistory) {
return Center(
child: IconButton(
onPressed: controller.requestHistory,
child: Text(L10n.of(context)!.loadMore),
icon: const Icon(Icons.refresh_outlined),
),
);
}
return Container();
return const SizedBox.shrink();
}
index--;
// The message at this index:
Expand Down

0 comments on commit 1918161

Please sign in to comment.