Skip to content

Commit

Permalink
feat: create event with overView screen data
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed May 20, 2024
1 parent 5fc2275 commit 758d428
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions evently/lib/screens/create_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,22 @@ class CreateEvent extends StatefulWidget {
}

class _CreateEventState extends State<CreateEvent> {
late EventlyProvider eventlyProvider;
CreateEventViewModel createEventViewModel = sl<CreateEventViewModel>();

@override
void initState() {
eventlyProvider = Provider.of<EventlyProvider>(context, listen: false);
super.initState();

WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
context.read<EventlyProvider>().initStore();
});

createEventViewModel.init(setTextField: () {






eventlyProvider.setEventName = createEventViewModel.events!.eventName;
eventlyProvider.setHostName = createEventViewModel.events!.hostName;
eventlyProvider.setThumbnail = createEventViewModel.events!.thumbnail;
});
}

Expand Down

0 comments on commit 758d428

Please sign in to comment.