design: Make load more button an elevated button

onboarding
Christian Pauly 4 years ago
parent 8724e41545
commit 40ccfd75e8

@ -277,20 +277,14 @@ class ChatView extends StatelessWidget {
child: CircularProgressIndicator(), child: CircularProgressIndicator(),
) )
: controller.canLoadMore : controller.canLoadMore
? TextButton( ? Center(
onPressed: child: OutlinedButton(
controller.requestHistory, onPressed:
child: Text( controller.requestHistory,
L10n.of(context).loadMore, child: Text(
style: TextStyle( L10n.of(context).loadMore),
color: Theme.of(context)
.primaryColor,
fontWeight: FontWeight.bold,
decoration: TextDecoration
.underline,
),
), ),
) )
: Container() : Container()
: i == 0 : i == 0
? StreamBuilder( ? StreamBuilder(

Loading…
Cancel
Save