From 87841c3b1a31cff09e1a1db70de15158e48783e9 Mon Sep 17 00:00:00 2001 From: AhsanRns Date: Thu, 9 May 2024 17:20:12 +0500 Subject: [PATCH] feat: event class --- evently/lib/models/events.dart | 43 +++++++++++++++++++++++++++ evently/lib/screens/create_event.dart | 6 ++++ 2 files changed, 49 insertions(+) create mode 100644 evently/lib/models/events.dart diff --git a/evently/lib/models/events.dart b/evently/lib/models/events.dart new file mode 100644 index 0000000000..9b1d884f74 --- /dev/null +++ b/evently/lib/models/events.dart @@ -0,0 +1,43 @@ +class Event { + Event({ + required this.eventName, + required this.hostName, + required this.url, + required this.startDate, + required this.endDate, + required this.startTime, + required this.endTime, + required this.location, + required this.description, + required this.isFreeDrop, + required this.numberOfTickets, + required this.price, + required this.listOfPerks, + }); + + final String eventName; + + final String hostName; + + final String url; + + final String startDate; + + final String endDate; + + final String startTime; + + final String endTime; + + final String location; + + final String description; + + final String isFreeDrop; + + final String numberOfTickets; + + final String price; + + final List listOfPerks; +} diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index a9ab0a8633..eade9f2dfe 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -36,6 +36,12 @@ class _CreateEventState extends State { ), ); } + + @override + void dispose() { + createEventViewModel.disposeControllers(); + super.dispose(); + } } class CreateEventContent extends StatelessWidget {