Created
August 15, 2019 19:41
-
-
Save adityadroid/ea7cc92f42b2938686212e61597ed0f7 to your computer and use it in GitHub Desktop.
ChatListWidget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'ChatItemWidget.dart'; | |
class ChatListWidget extends StatelessWidget{ | |
final ScrollController listScrollController = new ScrollController(); | |
@override | |
Widget build(BuildContext context) { | |
// TODO: implement build | |
return Flexible( | |
child: ListView.builder( | |
padding: EdgeInsets.all(10.0), | |
itemBuilder: (context, index) => ChatItemWidget(index), | |
itemCount: 20, | |
reverse: true, | |
controller: listScrollController, | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment