history_list

Last updated:

0 purchases

history_list Image
history_list Images
Add to Cart

Description:

history list

This is a component used to display the message list. When you need to load more historical messages and obtain new messages, you may need to use it to load data off the screen.
Features #
This is a component used to display the message list
Getting started #
flutter pub add history_list
Usage #
import 'package:history_list/history_list.dart';
Stack(
children: [
HistoryMessageList(
newBuilder: (p0, p1) {
var item = messageList[p1];
if (item['type'] == "Right") {
return newRightItem(item);
} else {
return newRightItem(item);
}
},
oldBuilder: (p0, p1) {
var item = oldMessageList[p1];
if (item['type'] == "Right") {
return rightItem(item);
} else {
return rightItem(item);
}
},
newHardle: (() {
return Future.delayed(Duration(seconds: 2), () {
addMessage();
});
}),
oldHardle: (() {
return Future.delayed(Duration(seconds: 2), () {
addOldMessage();
});
}),
oldCount: oldMessageList.length,
newCount: messageList.length,
oldloadingWidget: Padding(
padding: EdgeInsets.all(20),
child: Text('获取更多历史消息'),
),
),
],
)
Additional information #
find more infomation here: https://github.com/db5433/history_list.git

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.