From 758d42865d72e74a6e5dbb3ca0cb859fe3d556b6 Mon Sep 17 00:00:00 2001 From: AhsanAli13503 Date: Mon, 20 May 2024 16:51:46 +0500 Subject: [PATCH] feat: create event with overView screen data --- evently/lib/screens/create_event.dart | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/evently/lib/screens/create_event.dart b/evently/lib/screens/create_event.dart index 4c13785a05..b50f5fc41e 100644 --- a/evently/lib/screens/create_event.dart +++ b/evently/lib/screens/create_event.dart @@ -18,10 +18,12 @@ class CreateEvent extends StatefulWidget { } class _CreateEventState extends State { + late EventlyProvider eventlyProvider; CreateEventViewModel createEventViewModel = sl(); @override void initState() { + eventlyProvider = Provider.of(context, listen: false); super.initState(); WidgetsBinding.instance.addPostFrameCallback((timeStamp) { @@ -29,12 +31,9 @@ class _CreateEventState extends State { }); createEventViewModel.init(setTextField: () { - - - - - - + eventlyProvider.setEventName = createEventViewModel.events!.eventName; + eventlyProvider.setHostName = createEventViewModel.events!.hostName; + eventlyProvider.setThumbnail = createEventViewModel.events!.thumbnail; }); }