Skip to content

Commit

Permalink
feat: event class
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 9, 2024
1 parent b6743ce commit 87841c3
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
43 changes: 43 additions & 0 deletions evently/lib/models/events.dart
Original file line number Diff line number Diff line change
@@ -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<String> listOfPerks;
}
6 changes: 6 additions & 0 deletions evently/lib/screens/create_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ class _CreateEventState extends State<CreateEvent> {
),
);
}

@override
void dispose() {
createEventViewModel.disposeControllers();
super.dispose();
}
}

class CreateEventContent extends StatelessWidget {
Expand Down

0 comments on commit 87841c3

Please sign in to comment.