feat:增加查询朋友朋友圈功能

This commit is contained in:
2025-11-25 19:16:53 +08:00
parent 8cff5228ae
commit ed0ceb29d3
10 changed files with 374 additions and 135 deletions

View File

@@ -0,0 +1,21 @@
import 'package:flutter/material.dart';
import 'package:food_hub_app/models/moment.dart';
import 'package:food_hub_app/widgets/moment/card.dart';
class MomentList extends StatelessWidget {
final List<Moment> momentList;
final bool isUser;
const MomentList({super.key, required this.momentList, required this.isUser});
@override
Widget build(BuildContext context) {
return ListView.separated(
itemCount: momentList.length,
separatorBuilder: (context, index) => SizedBox(height: 8),
itemBuilder: (context, index) {
return MomentCard(moment: momentList[index], isUser: isUser);
},
);
}
}