feat:增加朋友圈表单功能
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user