修改登陆页面

master
zhangmeng1334717033 2020-06-11 09:51:06 +08:00
parent 80b7de4d30
commit 5526ab2d6a
2 changed files with 20 additions and 9 deletions

View File

@ -19,11 +19,15 @@ class _ChattingDetailsPageState extends State<ChattingBuildPage> {
void initState() {
super.initState();
getChattingfriednList();
print(11111);
}
getChattingfriednList() async {
List<MessageData> messageList = await chattingApi.getChattingList();
setState(() {
messageData.addAll(messageList);
print(messageData);
});
}
@override

View File

@ -35,6 +35,7 @@ class _ChattingPageState extends State<ChattingPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("微信"),
@ -72,7 +73,13 @@ class _ChattingPageState extends State<ChattingPage> {
))
],
),
body: ChattingBuildPage()
body: ChattingBuildPage(),
);
}
@override
void initState() {
super.initState();
chattingApi.getChattingList();
}
}