feat(diets) Diets create and edit API connect, TextController management and redirect

This commit is contained in:
2024-05-13 16:21:23 +03:00
parent 1ad58f8f42
commit e7e48905cf
19 changed files with 978 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
// ignore_for_file: must_be_immutable
import 'package:equatable/equatable.dart';
/// This class defines the variables used in the [diet_create_screen],
/// and is typically used to hold data that is passed between different parts of the application.
class DietCreateModel extends Equatable {
final String dietID;
DietCreateModel({required String dietID}) : dietID = dietID;
DietCreateModel copyWith(String dietID) {
return DietCreateModel(dietID: dietID);
}
@override
List<Object?> get props => [dietID];
}