Fix load more

This commit is contained in:
Christian Pauly 2020-05-09 12:57:48 +02:00
parent a46a3a3c1d
commit 51c060f954
4 changed files with 8 additions and 2 deletions

View file

@ -679,6 +679,11 @@
"type": "text", "type": "text",
"placeholders": {} "placeholders": {}
}, },
"Load more...": "Lade mehr ...",
"@Load more...": {
"type": "text",
"placeholders": {}
},
"loadCountMoreParticipants": "{count} weitere Teilnehmer laden", "loadCountMoreParticipants": "{count} weitere Teilnehmer laden",
"@loadCountMoreParticipants": { "@loadCountMoreParticipants": {
"type": "text", "type": "text",

View file

@ -1,5 +1,5 @@
{ {
"@@last_modified": "2020-05-09T11:48:21.714805", "@@last_modified": "2020-05-09T12:56:54.540935",
"About": "About", "About": "About",
"@About": { "@About": {
"type": "text", "type": "text",

View file

@ -227,6 +227,7 @@ class MessageLookup extends MessageLookupByLibrary {
"Left the chat" : MessageLookupByLibrary.simpleMessage("Hat den Chat verlassen"), "Left the chat" : MessageLookupByLibrary.simpleMessage("Hat den Chat verlassen"),
"License" : MessageLookupByLibrary.simpleMessage("Lizenz"), "License" : MessageLookupByLibrary.simpleMessage("Lizenz"),
"Light" : MessageLookupByLibrary.simpleMessage("Hell"), "Light" : MessageLookupByLibrary.simpleMessage("Hell"),
"Load more..." : MessageLookupByLibrary.simpleMessage("Lade mehr ..."),
"Loading... Please wait" : MessageLookupByLibrary.simpleMessage("Lade ... Bitte warten"), "Loading... Please wait" : MessageLookupByLibrary.simpleMessage("Lade ... Bitte warten"),
"Login" : MessageLookupByLibrary.simpleMessage("Login"), "Login" : MessageLookupByLibrary.simpleMessage("Login"),
"Logout" : MessageLookupByLibrary.simpleMessage("Logout"), "Logout" : MessageLookupByLibrary.simpleMessage("Logout"),

View file

@ -456,7 +456,7 @@ class _ChatState extends State<_Chat> {
controller: _scrollController, controller: _scrollController,
itemBuilder: (BuildContext context, int i) { itemBuilder: (BuildContext context, int i) {
return i == timeline.events.length + 1 return i == timeline.events.length + 1
? _canLoadMore ? _canLoadMore && !_loadingHistory
? FlatButton( ? FlatButton(
child: Text( child: Text(
L10n.of(context).loadMore, L10n.of(context).loadMore,