From 6ab0b02c6b5e48b8d0d99d49d1b6acb6d1315f82 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 20 Jun 2021 14:05:47 +0200 Subject: [PATCH] design: Make load more button an elevated button --- lib/pages/views/chat_view.dart | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/lib/pages/views/chat_view.dart b/lib/pages/views/chat_view.dart index 084aff94..85305f60 100644 --- a/lib/pages/views/chat_view.dart +++ b/lib/pages/views/chat_view.dart @@ -277,20 +277,14 @@ class ChatView extends StatelessWidget { child: CircularProgressIndicator(), ) : controller.canLoadMore - ? TextButton( - onPressed: - controller.requestHistory, - child: Text( - L10n.of(context).loadMore, - style: TextStyle( - color: Theme.of(context) - .primaryColor, - fontWeight: FontWeight.bold, - decoration: TextDecoration - .underline, - ), + ? Center( + child: OutlinedButton( + onPressed: + controller.requestHistory, + child: Text( + L10n.of(context).loadMore), ), - ) + ) : Container() : i == 0 ? StreamBuilder(