feat:增加朋友圈表单功能

This commit is contained in:
2025-11-19 20:04:45 +08:00
parent 07180965cc
commit 5151430132
5 changed files with 176 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import 'package:food_hub_app/utils/index.dart';
class FoodProvider with ChangeNotifier {
late FoodRecord recordFormItem;
late Moment momentFormItem;
late bool isEditing;
bool isLoading = false;
@@ -50,6 +51,16 @@ class FoodProvider with ChangeNotifier {
notifyListeners();
}
void resetMomentForm() {
momentFormItem = Moment.getEmpty();
notifyListeners();
}
void initMomentForm(Moment moment) {
momentFormItem = moment;
notifyListeners();
}
Future<void> queryCategoryList() async {
try {
error = null;