uitgaansevenement_aanmaken_widget.dart 180 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256
  1. import '/backend/api_requests/api_calls.dart';
  2. import '/components/fotoboek_grid_component_widget.dart';
  3. import '/components/header_buttons_component_widget.dart';
  4. import '/flutter_flow/flutter_flow_drop_down.dart';
  5. import '/flutter_flow/flutter_flow_theme.dart';
  6. import '/flutter_flow/flutter_flow_util.dart';
  7. import '/flutter_flow/flutter_flow_widgets.dart';
  8. import '/flutter_flow/form_field_controller.dart';
  9. import '/flutter_flow/upload_data.dart';
  10. import '/shared/drawer_component/drawer_component_widget.dart';
  11. import 'dart:ui';
  12. import '/custom_code/actions/index.dart' as actions;
  13. import '/flutter_flow/custom_functions.dart' as functions;
  14. import 'package:flutter/foundation.dart';
  15. import 'package:flutter/material.dart';
  16. import 'package:flutter/scheduler.dart';
  17. import 'package:flutter_spinkit/flutter_spinkit.dart';
  18. import 'package:google_fonts/google_fonts.dart';
  19. import 'package:provider/provider.dart';
  20. import 'uitgaansevenement_aanmaken_model.dart';
  21. export 'uitgaansevenement_aanmaken_model.dart';
  22. class UitgaansevenementAanmakenWidget extends StatefulWidget {
  23. const UitgaansevenementAanmakenWidget({
  24. super.key,
  25. this.horecagelegenheidNid,
  26. });
  27. final String? horecagelegenheidNid;
  28. static String routeName = 'uitgaansevenementAanmaken';
  29. static String routePath = '/uitgaansevenementAanmaken';
  30. @override
  31. State<UitgaansevenementAanmakenWidget> createState() =>
  32. _UitgaansevenementAanmakenWidgetState();
  33. }
  34. class _UitgaansevenementAanmakenWidgetState
  35. extends State<UitgaansevenementAanmakenWidget> with RouteAware {
  36. late UitgaansevenementAanmakenModel _model;
  37. final scaffoldKey = GlobalKey<ScaffoldState>();
  38. @override
  39. void initState() {
  40. super.initState();
  41. _model = createModel(context, () => UitgaansevenementAanmakenModel());
  42. // On page load action.
  43. SchedulerBinding.instance.addPostFrameCallback((_) async {
  44. _model.mijnHorecaResp = await MijnHorecagelegenhedenCall.call(
  45. sessionName: FFAppState().userSessionname,
  46. sessid: FFAppState().userSessionid,
  47. );
  48. _model.createHorecagelegenheidNid = functions.horecaVoorselectie(
  49. (_model.mijnHorecaResp?.jsonBody ?? ''),
  50. widget!.horecagelegenheidNid);
  51. _model.createEntreeTid =
  52. functions.kloonTekst(FFAppState().kloonBron, 'entree_tid');
  53. _model.createLogoFid =
  54. functions.kloonTekst(FFAppState().kloonBron, 'logo_fid');
  55. _model.createCategorieTids = functions
  56. .kloonLijst(FFAppState().kloonBron, 'categorie_tids')
  57. .toList()
  58. .cast<String>();
  59. _model.createFotosFids = functions
  60. .kloonLijst(FFAppState().kloonBron, 'fotos_fids')
  61. .toList()
  62. .cast<String>();
  63. _model.createLogoUrl =
  64. functions.kloonBeeld(FFAppState().kloonBron, 'logo_url');
  65. _model.createFotosUrls = functions
  66. .kloonBeelden(FFAppState().kloonBron, 'fotos_urls')
  67. .toList()
  68. .cast<String>();
  69. safeSetState(() {});
  70. });
  71. _model.textFieldTitelTextController ??= TextEditingController(
  72. text: functions.kloonTekst(FFAppState().kloonBron, 'titel'))
  73. ..addListener(() {
  74. debugLogWidgetClass(_model);
  75. });
  76. _model.textFieldTitelFocusNode ??= FocusNode();
  77. _model.textFieldOmschrijvingTextController ??= TextEditingController(
  78. text: functions.kloonTekst(FFAppState().kloonBron, 'omschrijving'))
  79. ..addListener(() {
  80. debugLogWidgetClass(_model);
  81. });
  82. _model.textFieldOmschrijvingFocusNode ??= FocusNode();
  83. _model.textFieldDatumStartTextController ??= TextEditingController()
  84. ..addListener(() {
  85. debugLogWidgetClass(_model);
  86. });
  87. _model.textFieldDatumStartFocusNode ??= FocusNode();
  88. _model.textFieldDatumEindTextController ??= TextEditingController()
  89. ..addListener(() {
  90. debugLogWidgetClass(_model);
  91. });
  92. _model.textFieldDatumEindFocusNode ??= FocusNode();
  93. _model.textFieldWebsiteURLTextController ??= TextEditingController(
  94. text: functions.kloonTekst(FFAppState().kloonBron, 'website_url'))
  95. ..addListener(() {
  96. debugLogWidgetClass(_model);
  97. });
  98. _model.textFieldWebsiteURLFocusNode ??= FocusNode();
  99. _model.textFieldTicketsURLTextController ??= TextEditingController(
  100. text: functions.kloonTekst(FFAppState().kloonBron, 'tickets_url'))
  101. ..addListener(() {
  102. debugLogWidgetClass(_model);
  103. });
  104. _model.textFieldTicketsURLFocusNode ??= FocusNode();
  105. _model.textFieldToelichtingEntreeTextController ??= TextEditingController(
  106. text:
  107. functions.kloonTekst(FFAppState().kloonBron, 'toelichting_entree'))
  108. ..addListener(() {
  109. debugLogWidgetClass(_model);
  110. });
  111. _model.textFieldToelichtingEntreeFocusNode ??= FocusNode();
  112. _model.textFieldEntreeprijsTextController ??= TextEditingController(
  113. text: functions.kloonTekst(FFAppState().kloonBron, 'entree_prijs'))
  114. ..addListener(() {
  115. debugLogWidgetClass(_model);
  116. });
  117. _model.textFieldEntreeprijsFocusNode ??= FocusNode();
  118. }
  119. @override
  120. void dispose() {
  121. routeObserver.unsubscribe(this);
  122. _model.dispose();
  123. super.dispose();
  124. }
  125. @override
  126. void didUpdateWidget(UitgaansevenementAanmakenWidget oldWidget) {
  127. super.didUpdateWidget(oldWidget);
  128. _model.widget = widget;
  129. }
  130. @override
  131. void didChangeDependencies() {
  132. super.didChangeDependencies();
  133. final route = DebugModalRoute.of(context);
  134. if (route != null) {
  135. routeObserver.subscribe(this, route);
  136. }
  137. debugLogGlobalProperty(context);
  138. }
  139. @override
  140. void didPopNext() {
  141. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  142. setState(() => _model.isRouteVisible = true);
  143. debugLogWidgetClass(_model);
  144. }
  145. }
  146. @override
  147. void didPush() {
  148. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  149. setState(() => _model.isRouteVisible = true);
  150. debugLogWidgetClass(_model);
  151. }
  152. }
  153. @override
  154. void didPop() {
  155. _model.isRouteVisible = false;
  156. }
  157. @override
  158. void didPushNext() {
  159. _model.isRouteVisible = false;
  160. }
  161. @override
  162. Widget build(BuildContext context) {
  163. DebugFlutterFlowModelContext.maybeOf(context)
  164. ?.parentModelCallback
  165. ?.call(_model);
  166. context.watch<FFAppState>();
  167. return GestureDetector(
  168. onTap: () {
  169. FocusScope.of(context).unfocus();
  170. FocusManager.instance.primaryFocus?.unfocus();
  171. },
  172. child: Scaffold(
  173. key: scaffoldKey,
  174. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  175. drawer: Drawer(
  176. elevation: 16.0,
  177. child: wrapWithModel(
  178. model: _model.drawerComponentModel,
  179. updateCallback: () => safeSetState(() {}),
  180. child: Builder(builder: (_) {
  181. return DebugFlutterFlowModelContext(
  182. rootModel: _model.rootModel,
  183. child: DrawerComponentWidget(),
  184. );
  185. }),
  186. ),
  187. ),
  188. appBar: PreferredSize(
  189. preferredSize: Size.fromHeight(80.0),
  190. child: AppBar(
  191. backgroundColor: FlutterFlowTheme.of(context).primaryText,
  192. automaticallyImplyLeading: false,
  193. actions: [],
  194. flexibleSpace: FlexibleSpaceBar(
  195. background: wrapWithModel(
  196. model: _model.headerButtonsComponentModel,
  197. updateCallback: () => safeSetState(() {}),
  198. child: Builder(builder: (_) {
  199. return DebugFlutterFlowModelContext(
  200. rootModel: _model.rootModel,
  201. child: HeaderButtonsComponentWidget(
  202. showBackButton: true,
  203. ),
  204. );
  205. }),
  206. ),
  207. centerTitle: true,
  208. expandedTitleScale: 1.0,
  209. ),
  210. bottom: PreferredSize(
  211. preferredSize: Size.fromHeight(70.0),
  212. child: Container(),
  213. ),
  214. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  215. elevation: 2.0,
  216. ),
  217. ),
  218. body: SafeArea(
  219. top: true,
  220. child: Padding(
  221. padding: EdgeInsets.all(16.0),
  222. child: SingleChildScrollView(
  223. child: Column(
  224. mainAxisSize: MainAxisSize.max,
  225. children: [
  226. Align(
  227. alignment: AlignmentDirectional(-1.0, 0.0),
  228. child: Padding(
  229. padding: EdgeInsets.all(16.0),
  230. child: Text(
  231. FFLocalizations.of(context).getText(
  232. 'vkjvzuqz' /* Meld hier een evenement aan va... */,
  233. ),
  234. style: FlutterFlowTheme.of(context).bodyMedium.override(
  235. font: GoogleFonts.roboto(
  236. fontWeight: FlutterFlowTheme.of(context)
  237. .bodyMedium
  238. .fontWeight,
  239. fontStyle: FlutterFlowTheme.of(context)
  240. .bodyMedium
  241. .fontStyle,
  242. ),
  243. letterSpacing: 0.0,
  244. fontWeight: FlutterFlowTheme.of(context)
  245. .bodyMedium
  246. .fontWeight,
  247. fontStyle: FlutterFlowTheme.of(context)
  248. .bodyMedium
  249. .fontStyle,
  250. ),
  251. ),
  252. ),
  253. ),
  254. Align(
  255. alignment: AlignmentDirectional(-1.0, 0.0),
  256. child: Padding(
  257. padding: EdgeInsets.all(16.0),
  258. child: Container(
  259. width: double.infinity,
  260. decoration: BoxDecoration(
  261. color:
  262. FlutterFlowTheme.of(context).secondaryBackground,
  263. borderRadius: BorderRadius.only(),
  264. border: Border.all(
  265. color: FlutterFlowTheme.of(context).alternate,
  266. width: 3.0,
  267. ),
  268. ),
  269. child: Column(
  270. mainAxisSize: MainAxisSize.max,
  271. children: [
  272. Align(
  273. alignment: AlignmentDirectional(-1.0, 0.0),
  274. child: Text(
  275. FFLocalizations.of(context).getText(
  276. 'opgbl8g0' /* Wat */,
  277. ),
  278. style: FlutterFlowTheme.of(context)
  279. .bodyMedium
  280. .override(
  281. font: GoogleFonts.roboto(
  282. fontWeight: FontWeight.w600,
  283. fontStyle: FlutterFlowTheme.of(context)
  284. .bodyMedium
  285. .fontStyle,
  286. ),
  287. fontSize: 16.0,
  288. letterSpacing: 0.0,
  289. fontWeight: FontWeight.w600,
  290. fontStyle: FlutterFlowTheme.of(context)
  291. .bodyMedium
  292. .fontStyle,
  293. ),
  294. ),
  295. ),
  296. Align(
  297. alignment: AlignmentDirectional(-1.0, 0.0),
  298. child: Container(
  299. width: double.infinity,
  300. child: TextFormField(
  301. controller:
  302. _model.textFieldTitelTextController,
  303. focusNode: _model.textFieldTitelFocusNode,
  304. autofocus: false,
  305. enabled: true,
  306. obscureText: false,
  307. decoration: InputDecoration(
  308. isDense: true,
  309. labelText:
  310. FFLocalizations.of(context).getText(
  311. 'vc80d3lh' /* Titel * */,
  312. ),
  313. labelStyle: FlutterFlowTheme.of(context)
  314. .labelMedium
  315. .override(
  316. font: GoogleFonts.roboto(
  317. fontWeight:
  318. FlutterFlowTheme.of(context)
  319. .labelMedium
  320. .fontWeight,
  321. fontStyle:
  322. FlutterFlowTheme.of(context)
  323. .labelMedium
  324. .fontStyle,
  325. ),
  326. letterSpacing: 0.0,
  327. fontWeight:
  328. FlutterFlowTheme.of(context)
  329. .labelMedium
  330. .fontWeight,
  331. fontStyle:
  332. FlutterFlowTheme.of(context)
  333. .labelMedium
  334. .fontStyle,
  335. ),
  336. hintText:
  337. FFLocalizations.of(context).getText(
  338. 'vu6qv8cj' /* Titel evenement */,
  339. ),
  340. hintStyle: FlutterFlowTheme.of(context)
  341. .labelMedium
  342. .override(
  343. font: GoogleFonts.roboto(
  344. fontWeight:
  345. FlutterFlowTheme.of(context)
  346. .labelMedium
  347. .fontWeight,
  348. fontStyle:
  349. FlutterFlowTheme.of(context)
  350. .labelMedium
  351. .fontStyle,
  352. ),
  353. letterSpacing: 0.0,
  354. fontWeight:
  355. FlutterFlowTheme.of(context)
  356. .labelMedium
  357. .fontWeight,
  358. fontStyle:
  359. FlutterFlowTheme.of(context)
  360. .labelMedium
  361. .fontStyle,
  362. ),
  363. enabledBorder: OutlineInputBorder(
  364. borderSide: BorderSide(
  365. color: Color(0x00000000),
  366. width: 1.0,
  367. ),
  368. borderRadius: BorderRadius.circular(0.0),
  369. ),
  370. focusedBorder: OutlineInputBorder(
  371. borderSide: BorderSide(
  372. color: Color(0x00000000),
  373. width: 1.0,
  374. ),
  375. borderRadius: BorderRadius.circular(0.0),
  376. ),
  377. errorBorder: OutlineInputBorder(
  378. borderSide: BorderSide(
  379. color:
  380. FlutterFlowTheme.of(context).error,
  381. width: 1.0,
  382. ),
  383. borderRadius: BorderRadius.circular(0.0),
  384. ),
  385. focusedErrorBorder: OutlineInputBorder(
  386. borderSide: BorderSide(
  387. color:
  388. FlutterFlowTheme.of(context).error,
  389. width: 1.0,
  390. ),
  391. borderRadius: BorderRadius.circular(0.0),
  392. ),
  393. filled: true,
  394. fillColor: FlutterFlowTheme.of(context)
  395. .primaryBackground,
  396. ),
  397. style: FlutterFlowTheme.of(context)
  398. .bodyMedium
  399. .override(
  400. font: GoogleFonts.roboto(
  401. fontWeight:
  402. FlutterFlowTheme.of(context)
  403. .bodyMedium
  404. .fontWeight,
  405. fontStyle:
  406. FlutterFlowTheme.of(context)
  407. .bodyMedium
  408. .fontStyle,
  409. ),
  410. letterSpacing: 0.0,
  411. fontWeight: FlutterFlowTheme.of(context)
  412. .bodyMedium
  413. .fontWeight,
  414. fontStyle: FlutterFlowTheme.of(context)
  415. .bodyMedium
  416. .fontStyle,
  417. ),
  418. cursorColor:
  419. FlutterFlowTheme.of(context).primaryText,
  420. enableInteractiveSelection: true,
  421. validator: _model
  422. .textFieldTitelTextControllerValidator
  423. .asValidator(context),
  424. ),
  425. ),
  426. ),
  427. Container(
  428. width: double.infinity,
  429. child: TextFormField(
  430. controller:
  431. _model.textFieldOmschrijvingTextController,
  432. focusNode:
  433. _model.textFieldOmschrijvingFocusNode,
  434. autofocus: false,
  435. enabled: true,
  436. obscureText: false,
  437. decoration: InputDecoration(
  438. isDense: true,
  439. labelText:
  440. FFLocalizations.of(context).getText(
  441. 'd7zhpzuo' /* Omschrijving */,
  442. ),
  443. labelStyle: FlutterFlowTheme.of(context)
  444. .labelMedium
  445. .override(
  446. font: GoogleFonts.roboto(
  447. fontWeight:
  448. FlutterFlowTheme.of(context)
  449. .labelMedium
  450. .fontWeight,
  451. fontStyle:
  452. FlutterFlowTheme.of(context)
  453. .labelMedium
  454. .fontStyle,
  455. ),
  456. letterSpacing: 0.0,
  457. fontWeight: FlutterFlowTheme.of(context)
  458. .labelMedium
  459. .fontWeight,
  460. fontStyle: FlutterFlowTheme.of(context)
  461. .labelMedium
  462. .fontStyle,
  463. ),
  464. hintText: FFLocalizations.of(context).getText(
  465. '1gf3e9v1' /* Omschrijving evenement */,
  466. ),
  467. hintStyle: FlutterFlowTheme.of(context)
  468. .labelMedium
  469. .override(
  470. font: GoogleFonts.roboto(
  471. fontWeight:
  472. FlutterFlowTheme.of(context)
  473. .labelMedium
  474. .fontWeight,
  475. fontStyle:
  476. FlutterFlowTheme.of(context)
  477. .labelMedium
  478. .fontStyle,
  479. ),
  480. letterSpacing: 0.0,
  481. fontWeight: FlutterFlowTheme.of(context)
  482. .labelMedium
  483. .fontWeight,
  484. fontStyle: FlutterFlowTheme.of(context)
  485. .labelMedium
  486. .fontStyle,
  487. ),
  488. enabledBorder: OutlineInputBorder(
  489. borderSide: BorderSide(
  490. color: Color(0x00000000),
  491. width: 1.0,
  492. ),
  493. borderRadius: BorderRadius.circular(0.0),
  494. ),
  495. focusedBorder: OutlineInputBorder(
  496. borderSide: BorderSide(
  497. color: Color(0x00000000),
  498. width: 1.0,
  499. ),
  500. borderRadius: BorderRadius.circular(0.0),
  501. ),
  502. errorBorder: OutlineInputBorder(
  503. borderSide: BorderSide(
  504. color: FlutterFlowTheme.of(context).error,
  505. width: 1.0,
  506. ),
  507. borderRadius: BorderRadius.circular(0.0),
  508. ),
  509. focusedErrorBorder: OutlineInputBorder(
  510. borderSide: BorderSide(
  511. color: FlutterFlowTheme.of(context).error,
  512. width: 1.0,
  513. ),
  514. borderRadius: BorderRadius.circular(0.0),
  515. ),
  516. filled: true,
  517. fillColor: FlutterFlowTheme.of(context)
  518. .primaryBackground,
  519. ),
  520. style: FlutterFlowTheme.of(context)
  521. .bodyMedium
  522. .override(
  523. font: GoogleFonts.roboto(
  524. fontWeight: FlutterFlowTheme.of(context)
  525. .bodyMedium
  526. .fontWeight,
  527. fontStyle: FlutterFlowTheme.of(context)
  528. .bodyMedium
  529. .fontStyle,
  530. ),
  531. letterSpacing: 0.0,
  532. fontWeight: FlutterFlowTheme.of(context)
  533. .bodyMedium
  534. .fontWeight,
  535. fontStyle: FlutterFlowTheme.of(context)
  536. .bodyMedium
  537. .fontStyle,
  538. ),
  539. maxLines: 5,
  540. cursorColor:
  541. FlutterFlowTheme.of(context).primaryText,
  542. enableInteractiveSelection: true,
  543. validator: _model
  544. .textFieldOmschrijvingTextControllerValidator
  545. .asValidator(context),
  546. ),
  547. ),
  548. Align(
  549. alignment: AlignmentDirectional(-1.0, 0.0),
  550. child: Text(
  551. FFLocalizations.of(context).getText(
  552. 'rqx6m3yf' /* Je horecagelegenheid */,
  553. ),
  554. style: FlutterFlowTheme.of(context)
  555. .bodyMedium
  556. .override(
  557. font: GoogleFonts.roboto(
  558. fontWeight: FlutterFlowTheme.of(context)
  559. .bodyMedium
  560. .fontWeight,
  561. fontStyle: FlutterFlowTheme.of(context)
  562. .bodyMedium
  563. .fontStyle,
  564. ),
  565. letterSpacing: 0.0,
  566. fontWeight: FlutterFlowTheme.of(context)
  567. .bodyMedium
  568. .fontWeight,
  569. fontStyle: FlutterFlowTheme.of(context)
  570. .bodyMedium
  571. .fontStyle,
  572. ),
  573. ),
  574. ),
  575. Align(
  576. alignment: AlignmentDirectional(-1.0, 0.0),
  577. child: Text(
  578. FFLocalizations.of(context).getText(
  579. 'fbkrt89w' /* Kies de zaak waar het evenemen... */,
  580. ),
  581. style: FlutterFlowTheme.of(context)
  582. .bodyMedium
  583. .override(
  584. font: GoogleFonts.roboto(
  585. fontWeight: FlutterFlowTheme.of(context)
  586. .bodyMedium
  587. .fontWeight,
  588. fontStyle: FlutterFlowTheme.of(context)
  589. .bodyMedium
  590. .fontStyle,
  591. ),
  592. color: FlutterFlowTheme.of(context)
  593. .secondaryText,
  594. fontSize: 12.0,
  595. letterSpacing: 0.0,
  596. fontWeight: FlutterFlowTheme.of(context)
  597. .bodyMedium
  598. .fontWeight,
  599. fontStyle: FlutterFlowTheme.of(context)
  600. .bodyMedium
  601. .fontStyle,
  602. ),
  603. ),
  604. ),
  605. Align(
  606. alignment: AlignmentDirectional(-1.0, 0.0),
  607. child: InkWell(
  608. splashColor: Colors.transparent,
  609. focusColor: Colors.transparent,
  610. hoverColor: Colors.transparent,
  611. highlightColor: Colors.transparent,
  612. onTap: () async {
  613. await launchURL(
  614. 'https://uitgaanskrant.com/nl/ondernemers');
  615. },
  616. child: Text(
  617. FFLocalizations.of(context).getText(
  618. 'zkc8ido7' /* Nog geen zaak aangemeld? Dat d... */,
  619. ),
  620. style: FlutterFlowTheme.of(context)
  621. .bodyMedium
  622. .override(
  623. font: GoogleFonts.roboto(
  624. fontWeight:
  625. FlutterFlowTheme.of(context)
  626. .bodyMedium
  627. .fontWeight,
  628. fontStyle:
  629. FlutterFlowTheme.of(context)
  630. .bodyMedium
  631. .fontStyle,
  632. ),
  633. color: FlutterFlowTheme.of(context)
  634. .secondary,
  635. fontSize: 12.0,
  636. letterSpacing: 0.0,
  637. fontWeight: FlutterFlowTheme.of(context)
  638. .bodyMedium
  639. .fontWeight,
  640. fontStyle: FlutterFlowTheme.of(context)
  641. .bodyMedium
  642. .fontStyle,
  643. decoration: TextDecoration.underline,
  644. ),
  645. ),
  646. ),
  647. ),
  648. Align(
  649. alignment: AlignmentDirectional(-1.0, 0.0),
  650. child: FutureBuilder<ApiCallResponse>(
  651. future: MijnHorecagelegenhedenCall.call(
  652. sessionName: FFAppState().userSessionname,
  653. sessid: FFAppState().userSessionid,
  654. ),
  655. builder: (context, snapshot) {
  656. // Customize what your widget looks like when it's loading.
  657. if (!snapshot.hasData) {
  658. return Center(
  659. child: SizedBox(
  660. width: 80.0,
  661. height: 80.0,
  662. child: SpinKitFadingCircle(
  663. color: FlutterFlowTheme.of(context)
  664. .primary,
  665. size: 80.0,
  666. ),
  667. ),
  668. );
  669. }
  670. final dropDownHorecagelegenheidMijnHorecagelegenhedenResponse =
  671. snapshot.data!;
  672. _model.debugBackendQueries[
  673. 'MijnHorecagelegenhedenCall_statusCode_DropDown_ldnx9nnq'] =
  674. debugSerializeParam(
  675. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  676. .statusCode,
  677. ParamType.int,
  678. link:
  679. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  680. name: 'int',
  681. nullable: false,
  682. );
  683. _model.debugBackendQueries[
  684. 'MijnHorecagelegenhedenCall_responseBody_DropDown_ldnx9nnq'] =
  685. debugSerializeParam(
  686. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  687. .bodyText,
  688. ParamType.String,
  689. link:
  690. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  691. name: 'String',
  692. nullable: false,
  693. );
  694. debugLogWidgetClass(_model);
  695. return FlutterFlowDropDown<String>(
  696. controller: _model
  697. .dropDownHorecagelegenheidValueController ??=
  698. FormFieldController<String>(
  699. _model.dropDownHorecagelegenheidValue ??=
  700. functions.horecaVoorselectie(
  701. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  702. .jsonBody,
  703. widget!.horecagelegenheidNid),
  704. ),
  705. options: List<String>.from((getJsonField(
  706. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  707. .jsonBody,
  708. r'''$[:].nid''',
  709. true,
  710. ) as List?)!
  711. .map<String>((e) => e.toString())
  712. .toList()
  713. .cast<String>()),
  714. optionLabels: (getJsonField(
  715. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  716. .jsonBody,
  717. r'''$[:].titel''',
  718. true,
  719. ) as List?)!
  720. .map<String>((e) => e.toString())
  721. .toList()
  722. .cast<String>(),
  723. onChanged: (val) async {
  724. safeSetState(() => _model
  725. .dropDownHorecagelegenheidValue =
  726. val);
  727. _model.createHorecagelegenheidNid =
  728. _model.dropDownHorecagelegenheidValue;
  729. safeSetState(() {});
  730. },
  731. width: double.infinity,
  732. height: 40.0,
  733. searchHintTextStyle:
  734. FlutterFlowTheme.of(context)
  735. .labelMedium
  736. .override(
  737. font: GoogleFonts.roboto(
  738. fontWeight:
  739. FlutterFlowTheme.of(context)
  740. .labelMedium
  741. .fontWeight,
  742. fontStyle:
  743. FlutterFlowTheme.of(context)
  744. .labelMedium
  745. .fontStyle,
  746. ),
  747. letterSpacing: 0.0,
  748. fontWeight:
  749. FlutterFlowTheme.of(context)
  750. .labelMedium
  751. .fontWeight,
  752. fontStyle:
  753. FlutterFlowTheme.of(context)
  754. .labelMedium
  755. .fontStyle,
  756. ),
  757. searchTextStyle:
  758. FlutterFlowTheme.of(context)
  759. .bodyMedium
  760. .override(
  761. font: GoogleFonts.roboto(
  762. fontWeight:
  763. FlutterFlowTheme.of(context)
  764. .bodyMedium
  765. .fontWeight,
  766. fontStyle:
  767. FlutterFlowTheme.of(context)
  768. .bodyMedium
  769. .fontStyle,
  770. ),
  771. letterSpacing: 0.0,
  772. fontWeight:
  773. FlutterFlowTheme.of(context)
  774. .bodyMedium
  775. .fontWeight,
  776. fontStyle:
  777. FlutterFlowTheme.of(context)
  778. .bodyMedium
  779. .fontStyle,
  780. ),
  781. textStyle: FlutterFlowTheme.of(context)
  782. .bodyMedium
  783. .override(
  784. font: GoogleFonts.roboto(
  785. fontWeight:
  786. FlutterFlowTheme.of(context)
  787. .bodyMedium
  788. .fontWeight,
  789. fontStyle:
  790. FlutterFlowTheme.of(context)
  791. .bodyMedium
  792. .fontStyle,
  793. ),
  794. letterSpacing: 0.0,
  795. fontWeight:
  796. FlutterFlowTheme.of(context)
  797. .bodyMedium
  798. .fontWeight,
  799. fontStyle:
  800. FlutterFlowTheme.of(context)
  801. .bodyMedium
  802. .fontStyle,
  803. ),
  804. hintText:
  805. FFLocalizations.of(context).getText(
  806. 'nhnxstvm' /* Kies je horecagelegenheid * */,
  807. ),
  808. searchHintText:
  809. FFLocalizations.of(context).getText(
  810. 'pnh9yrrk' /* Zoek... */,
  811. ),
  812. icon: Icon(
  813. Icons.keyboard_arrow_down_rounded,
  814. color: FlutterFlowTheme.of(context)
  815. .secondaryText,
  816. size: 24.0,
  817. ),
  818. fillColor: FlutterFlowTheme.of(context)
  819. .primaryBackground,
  820. elevation: 2.0,
  821. borderColor: Colors.transparent,
  822. borderWidth: 0.0,
  823. borderRadius: 8.0,
  824. margin: EdgeInsetsDirectional.fromSTEB(
  825. 12.0, 0.0, 12.0, 0.0),
  826. hidesUnderline: true,
  827. isOverButton: false,
  828. isSearchable: true,
  829. isMultiSelect: false,
  830. );
  831. },
  832. ),
  833. ),
  834. Align(
  835. alignment: AlignmentDirectional(-1.0, 0.0),
  836. child: Text(
  837. FFLocalizations.of(context).getText(
  838. 'p0xm7daj' /* Categorie evenement * */,
  839. ),
  840. style: FlutterFlowTheme.of(context)
  841. .bodyMedium
  842. .override(
  843. font: GoogleFonts.roboto(
  844. fontWeight: FlutterFlowTheme.of(context)
  845. .bodyMedium
  846. .fontWeight,
  847. fontStyle: FlutterFlowTheme.of(context)
  848. .bodyMedium
  849. .fontStyle,
  850. ),
  851. letterSpacing: 0.0,
  852. fontWeight: FlutterFlowTheme.of(context)
  853. .bodyMedium
  854. .fontWeight,
  855. fontStyle: FlutterFlowTheme.of(context)
  856. .bodyMedium
  857. .fontStyle,
  858. ),
  859. ),
  860. ),
  861. Align(
  862. alignment: AlignmentDirectional(-1.0, 0.0),
  863. child: Text(
  864. FFLocalizations.of(context).getText(
  865. 'j68hqlk7' /* Let op: de categorie bepaalt i... */,
  866. ),
  867. style: FlutterFlowTheme.of(context)
  868. .bodyMedium
  869. .override(
  870. font: GoogleFonts.roboto(
  871. fontWeight: FlutterFlowTheme.of(context)
  872. .bodyMedium
  873. .fontWeight,
  874. fontStyle: FlutterFlowTheme.of(context)
  875. .bodyMedium
  876. .fontStyle,
  877. ),
  878. color: FlutterFlowTheme.of(context)
  879. .secondaryText,
  880. fontSize: 12.0,
  881. letterSpacing: 0.0,
  882. fontWeight: FlutterFlowTheme.of(context)
  883. .bodyMedium
  884. .fontWeight,
  885. fontStyle: FlutterFlowTheme.of(context)
  886. .bodyMedium
  887. .fontStyle,
  888. ),
  889. ),
  890. ),
  891. Align(
  892. alignment: AlignmentDirectional(-1.0, 0.0),
  893. child: FutureBuilder<ApiCallResponse>(
  894. future: ProductieGroup.categorieenCall.call(
  895. sessionName: FFAppState().userSessionname,
  896. sessid: FFAppState().userSessionid,
  897. ),
  898. builder: (context, snapshot) {
  899. // Customize what your widget looks like when it's loading.
  900. if (!snapshot.hasData) {
  901. return Center(
  902. child: SizedBox(
  903. width: 80.0,
  904. height: 80.0,
  905. child: SpinKitFadingCircle(
  906. color: FlutterFlowTheme.of(context)
  907. .primary,
  908. size: 80.0,
  909. ),
  910. ),
  911. );
  912. }
  913. final dropDownCategorieenCategorieenResponse =
  914. snapshot.data!;
  915. _model.debugBackendQueries[
  916. 'ProductieGroup.categorieenCall_statusCode_DropDown_b8cbpd9v'] =
  917. debugSerializeParam(
  918. dropDownCategorieenCategorieenResponse
  919. .statusCode,
  920. ParamType.int,
  921. link:
  922. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  923. name: 'int',
  924. nullable: false,
  925. );
  926. _model.debugBackendQueries[
  927. 'ProductieGroup.categorieenCall_responseBody_DropDown_b8cbpd9v'] =
  928. debugSerializeParam(
  929. dropDownCategorieenCategorieenResponse
  930. .bodyText,
  931. ParamType.String,
  932. link:
  933. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  934. name: 'String',
  935. nullable: false,
  936. );
  937. debugLogWidgetClass(_model);
  938. return FlutterFlowDropDown<String>(
  939. multiSelectController: _model
  940. .dropDownCategorieenValueController ??=
  941. FormListFieldController<String>(
  942. _model.dropDownCategorieenValue ??=
  943. List<String>.from(
  944. functions.kloonLijst(
  945. FFAppState().kloonBron,
  946. 'categorie_tids') ??
  947. [],
  948. )),
  949. options: List<String>.from(
  950. functions.categorieSubTids(
  951. dropDownCategorieenCategorieenResponse
  952. .jsonBody)!),
  953. optionLabels: functions.categorieSubLabels(
  954. dropDownCategorieenCategorieenResponse
  955. .jsonBody)!,
  956. width: double.infinity,
  957. height: 40.0,
  958. maxHeight: 300.0,
  959. searchHintTextStyle:
  960. FlutterFlowTheme.of(context)
  961. .labelMedium
  962. .override(
  963. font: GoogleFonts.roboto(
  964. fontWeight:
  965. FlutterFlowTheme.of(context)
  966. .labelMedium
  967. .fontWeight,
  968. fontStyle:
  969. FlutterFlowTheme.of(context)
  970. .labelMedium
  971. .fontStyle,
  972. ),
  973. letterSpacing: 0.0,
  974. fontWeight:
  975. FlutterFlowTheme.of(context)
  976. .labelMedium
  977. .fontWeight,
  978. fontStyle:
  979. FlutterFlowTheme.of(context)
  980. .labelMedium
  981. .fontStyle,
  982. ),
  983. searchTextStyle:
  984. FlutterFlowTheme.of(context)
  985. .bodyMedium
  986. .override(
  987. font: GoogleFonts.roboto(
  988. fontWeight:
  989. FlutterFlowTheme.of(context)
  990. .bodyMedium
  991. .fontWeight,
  992. fontStyle:
  993. FlutterFlowTheme.of(context)
  994. .bodyMedium
  995. .fontStyle,
  996. ),
  997. letterSpacing: 0.0,
  998. fontWeight:
  999. FlutterFlowTheme.of(context)
  1000. .bodyMedium
  1001. .fontWeight,
  1002. fontStyle:
  1003. FlutterFlowTheme.of(context)
  1004. .bodyMedium
  1005. .fontStyle,
  1006. ),
  1007. textStyle: FlutterFlowTheme.of(context)
  1008. .bodyMedium
  1009. .override(
  1010. font: GoogleFonts.roboto(
  1011. fontWeight:
  1012. FlutterFlowTheme.of(context)
  1013. .bodyMedium
  1014. .fontWeight,
  1015. fontStyle:
  1016. FlutterFlowTheme.of(context)
  1017. .bodyMedium
  1018. .fontStyle,
  1019. ),
  1020. letterSpacing: 0.0,
  1021. fontWeight:
  1022. FlutterFlowTheme.of(context)
  1023. .bodyMedium
  1024. .fontWeight,
  1025. fontStyle:
  1026. FlutterFlowTheme.of(context)
  1027. .bodyMedium
  1028. .fontStyle,
  1029. ),
  1030. hintText:
  1031. FFLocalizations.of(context).getText(
  1032. '2hitlrxa' /* Select... */,
  1033. ),
  1034. searchHintText:
  1035. FFLocalizations.of(context).getText(
  1036. 'qtnlg7nd' /* Search... */,
  1037. ),
  1038. icon: Icon(
  1039. Icons.keyboard_arrow_down_rounded,
  1040. color: FlutterFlowTheme.of(context)
  1041. .secondaryText,
  1042. size: 24.0,
  1043. ),
  1044. fillColor: FlutterFlowTheme.of(context)
  1045. .primaryBackground,
  1046. elevation: 2.0,
  1047. borderColor: Colors.transparent,
  1048. borderWidth: 0.0,
  1049. borderRadius: 8.0,
  1050. margin: EdgeInsetsDirectional.fromSTEB(
  1051. 12.0, 0.0, 12.0, 0.0),
  1052. hidesUnderline: true,
  1053. isOverButton: false,
  1054. isSearchable: true,
  1055. isMultiSelect: true,
  1056. onMultiSelectChanged: (val) async {
  1057. safeSetState(() => _model
  1058. .dropDownCategorieenValue = val);
  1059. _model.createCategorieTids = _model
  1060. .dropDownCategorieenValue!
  1061. .toList()
  1062. .cast<String>();
  1063. safeSetState(() {});
  1064. },
  1065. );
  1066. },
  1067. ),
  1068. ),
  1069. Text(
  1070. functions.categorieGekozenTekst(
  1071. _model.createCategorieTids.toList()),
  1072. style: FlutterFlowTheme.of(context)
  1073. .bodySmall
  1074. .override(
  1075. font: GoogleFonts.roboto(
  1076. fontWeight: FlutterFlowTheme.of(context)
  1077. .bodySmall
  1078. .fontWeight,
  1079. fontStyle: FlutterFlowTheme.of(context)
  1080. .bodySmall
  1081. .fontStyle,
  1082. ),
  1083. color: FlutterFlowTheme.of(context)
  1084. .secondaryText,
  1085. letterSpacing: 0.0,
  1086. fontWeight: FlutterFlowTheme.of(context)
  1087. .bodySmall
  1088. .fontWeight,
  1089. fontStyle: FlutterFlowTheme.of(context)
  1090. .bodySmall
  1091. .fontStyle,
  1092. ),
  1093. ),
  1094. ],
  1095. ),
  1096. ),
  1097. ),
  1098. ),
  1099. Align(
  1100. alignment: AlignmentDirectional(-1.0, 0.0),
  1101. child: Padding(
  1102. padding: EdgeInsets.all(16.0),
  1103. child: Container(
  1104. width: double.infinity,
  1105. decoration: BoxDecoration(
  1106. color:
  1107. FlutterFlowTheme.of(context).secondaryBackground,
  1108. borderRadius: BorderRadius.only(),
  1109. border: Border.all(
  1110. color: Color(0xFFEEEEEE),
  1111. width: 3.0,
  1112. ),
  1113. ),
  1114. child: Column(
  1115. mainAxisSize: MainAxisSize.max,
  1116. children: [
  1117. Align(
  1118. alignment: AlignmentDirectional(-1.0, 0.0),
  1119. child: Text(
  1120. FFLocalizations.of(context).getText(
  1121. 'gysg1wwq' /* Wanneer */,
  1122. ),
  1123. style: FlutterFlowTheme.of(context)
  1124. .bodyMedium
  1125. .override(
  1126. font: GoogleFonts.roboto(
  1127. fontWeight: FlutterFlowTheme.of(context)
  1128. .bodyMedium
  1129. .fontWeight,
  1130. fontStyle: FlutterFlowTheme.of(context)
  1131. .bodyMedium
  1132. .fontStyle,
  1133. ),
  1134. letterSpacing: 0.0,
  1135. fontWeight: FlutterFlowTheme.of(context)
  1136. .bodyMedium
  1137. .fontWeight,
  1138. fontStyle: FlutterFlowTheme.of(context)
  1139. .bodyMedium
  1140. .fontStyle,
  1141. ),
  1142. ),
  1143. ),
  1144. Align(
  1145. alignment: AlignmentDirectional(-1.0, 0.0),
  1146. child: Text(
  1147. FFLocalizations.of(context).getText(
  1148. 'f8hii0ci' /* De begindatum is verplicht. Ei... */,
  1149. ),
  1150. style: FlutterFlowTheme.of(context)
  1151. .bodyMedium
  1152. .override(
  1153. font: GoogleFonts.roboto(
  1154. fontWeight: FlutterFlowTheme.of(context)
  1155. .bodyMedium
  1156. .fontWeight,
  1157. fontStyle: FlutterFlowTheme.of(context)
  1158. .bodyMedium
  1159. .fontStyle,
  1160. ),
  1161. color: FlutterFlowTheme.of(context)
  1162. .secondaryText,
  1163. fontSize: 12.0,
  1164. letterSpacing: 0.0,
  1165. fontWeight: FlutterFlowTheme.of(context)
  1166. .bodyMedium
  1167. .fontWeight,
  1168. fontStyle: FlutterFlowTheme.of(context)
  1169. .bodyMedium
  1170. .fontStyle,
  1171. ),
  1172. ),
  1173. ),
  1174. InkWell(
  1175. splashColor: Colors.transparent,
  1176. focusColor: Colors.transparent,
  1177. hoverColor: Colors.transparent,
  1178. highlightColor: Colors.transparent,
  1179. onTap: () async {
  1180. final _datePicked1Date = await showDatePicker(
  1181. context: context,
  1182. initialDate: getCurrentTimestamp,
  1183. firstDate: getCurrentTimestamp,
  1184. lastDate: DateTime(2050),
  1185. builder: (context, child) {
  1186. return wrapInMaterialDatePickerTheme(
  1187. context,
  1188. child!,
  1189. headerBackgroundColor:
  1190. FlutterFlowTheme.of(context).primary,
  1191. headerForegroundColor:
  1192. FlutterFlowTheme.of(context).info,
  1193. headerTextStyle: FlutterFlowTheme.of(
  1194. context)
  1195. .headlineLarge
  1196. .override(
  1197. font: GoogleFonts.notoSerif(
  1198. fontWeight: FontWeight.w600,
  1199. fontStyle:
  1200. FlutterFlowTheme.of(context)
  1201. .headlineLarge
  1202. .fontStyle,
  1203. ),
  1204. fontSize: 32.0,
  1205. letterSpacing: 0.0,
  1206. fontWeight: FontWeight.w600,
  1207. fontStyle:
  1208. FlutterFlowTheme.of(context)
  1209. .headlineLarge
  1210. .fontStyle,
  1211. ),
  1212. pickerBackgroundColor:
  1213. FlutterFlowTheme.of(context)
  1214. .secondaryBackground,
  1215. pickerForegroundColor:
  1216. FlutterFlowTheme.of(context)
  1217. .primaryText,
  1218. selectedDateTimeBackgroundColor:
  1219. FlutterFlowTheme.of(context).primary,
  1220. selectedDateTimeForegroundColor:
  1221. FlutterFlowTheme.of(context).info,
  1222. actionButtonForegroundColor:
  1223. FlutterFlowTheme.of(context)
  1224. .primaryText,
  1225. iconSize: 24.0,
  1226. );
  1227. },
  1228. );
  1229. TimeOfDay? _datePicked1Time;
  1230. if (_datePicked1Date != null) {
  1231. _datePicked1Time = await showTimePicker(
  1232. context: context,
  1233. initialTime: TimeOfDay.fromDateTime(
  1234. getCurrentTimestamp),
  1235. builder: (context, child) {
  1236. return wrapInMaterialTimePickerTheme(
  1237. context,
  1238. child!,
  1239. headerBackgroundColor:
  1240. FlutterFlowTheme.of(context)
  1241. .primary,
  1242. headerForegroundColor:
  1243. FlutterFlowTheme.of(context).info,
  1244. headerTextStyle: FlutterFlowTheme.of(
  1245. context)
  1246. .headlineLarge
  1247. .override(
  1248. font: GoogleFonts.notoSerif(
  1249. fontWeight: FontWeight.w600,
  1250. fontStyle:
  1251. FlutterFlowTheme.of(context)
  1252. .headlineLarge
  1253. .fontStyle,
  1254. ),
  1255. fontSize: 32.0,
  1256. letterSpacing: 0.0,
  1257. fontWeight: FontWeight.w600,
  1258. fontStyle:
  1259. FlutterFlowTheme.of(context)
  1260. .headlineLarge
  1261. .fontStyle,
  1262. ),
  1263. pickerBackgroundColor:
  1264. FlutterFlowTheme.of(context)
  1265. .secondaryBackground,
  1266. pickerForegroundColor:
  1267. FlutterFlowTheme.of(context)
  1268. .primaryText,
  1269. selectedDateTimeBackgroundColor:
  1270. FlutterFlowTheme.of(context)
  1271. .primary,
  1272. selectedDateTimeForegroundColor:
  1273. FlutterFlowTheme.of(context).info,
  1274. actionButtonForegroundColor:
  1275. FlutterFlowTheme.of(context)
  1276. .primaryText,
  1277. iconSize: 24.0,
  1278. );
  1279. },
  1280. );
  1281. }
  1282. if (_datePicked1Date != null &&
  1283. _datePicked1Time != null) {
  1284. safeSetState(() {
  1285. _model.datePicked1 = DateTime(
  1286. _datePicked1Date.year,
  1287. _datePicked1Date.month,
  1288. _datePicked1Date.day,
  1289. _datePicked1Time!.hour,
  1290. _datePicked1Time.minute,
  1291. );
  1292. });
  1293. } else if (_model.datePicked1 != null) {
  1294. safeSetState(() {
  1295. _model.datePicked1 = getCurrentTimestamp;
  1296. });
  1297. }
  1298. safeSetState(() {
  1299. _model.textFieldDatumStartTextController
  1300. ?.text = dateTimeFormat(
  1301. "dd-MM-yyyy HH:mm",
  1302. _model.datePicked1,
  1303. locale: FFLocalizations.of(context)
  1304. .languageCode,
  1305. );
  1306. });
  1307. },
  1308. child: Container(
  1309. width: double.infinity,
  1310. decoration: BoxDecoration(),
  1311. child: Container(
  1312. width: double.infinity,
  1313. child: TextFormField(
  1314. controller: _model
  1315. .textFieldDatumStartTextController,
  1316. focusNode:
  1317. _model.textFieldDatumStartFocusNode,
  1318. autofocus: false,
  1319. enabled: false,
  1320. readOnly: true,
  1321. obscureText: false,
  1322. decoration: InputDecoration(
  1323. isDense: true,
  1324. labelText:
  1325. FFLocalizations.of(context).getText(
  1326. 'xceonmpt' /* Datum * */,
  1327. ),
  1328. labelStyle: FlutterFlowTheme.of(context)
  1329. .labelMedium
  1330. .override(
  1331. font: GoogleFonts.roboto(
  1332. fontWeight:
  1333. FlutterFlowTheme.of(context)
  1334. .labelMedium
  1335. .fontWeight,
  1336. fontStyle:
  1337. FlutterFlowTheme.of(context)
  1338. .labelMedium
  1339. .fontStyle,
  1340. ),
  1341. letterSpacing: 0.0,
  1342. fontWeight:
  1343. FlutterFlowTheme.of(context)
  1344. .labelMedium
  1345. .fontWeight,
  1346. fontStyle:
  1347. FlutterFlowTheme.of(context)
  1348. .labelMedium
  1349. .fontStyle,
  1350. ),
  1351. hintText:
  1352. FFLocalizations.of(context).getText(
  1353. 'nws4h1nz' /* Datum */,
  1354. ),
  1355. hintStyle: FlutterFlowTheme.of(context)
  1356. .labelMedium
  1357. .override(
  1358. font: GoogleFonts.roboto(
  1359. fontWeight:
  1360. FlutterFlowTheme.of(context)
  1361. .labelMedium
  1362. .fontWeight,
  1363. fontStyle:
  1364. FlutterFlowTheme.of(context)
  1365. .labelMedium
  1366. .fontStyle,
  1367. ),
  1368. letterSpacing: 0.0,
  1369. fontWeight:
  1370. FlutterFlowTheme.of(context)
  1371. .labelMedium
  1372. .fontWeight,
  1373. fontStyle:
  1374. FlutterFlowTheme.of(context)
  1375. .labelMedium
  1376. .fontStyle,
  1377. ),
  1378. enabledBorder: OutlineInputBorder(
  1379. borderSide: BorderSide(
  1380. color: Color(0x00000000),
  1381. width: 1.0,
  1382. ),
  1383. borderRadius:
  1384. BorderRadius.circular(0.0),
  1385. ),
  1386. focusedBorder: OutlineInputBorder(
  1387. borderSide: BorderSide(
  1388. color: Color(0x00000000),
  1389. width: 1.0,
  1390. ),
  1391. borderRadius:
  1392. BorderRadius.circular(0.0),
  1393. ),
  1394. errorBorder: OutlineInputBorder(
  1395. borderSide: BorderSide(
  1396. color: FlutterFlowTheme.of(context)
  1397. .error,
  1398. width: 1.0,
  1399. ),
  1400. borderRadius:
  1401. BorderRadius.circular(0.0),
  1402. ),
  1403. focusedErrorBorder: OutlineInputBorder(
  1404. borderSide: BorderSide(
  1405. color: FlutterFlowTheme.of(context)
  1406. .error,
  1407. width: 1.0,
  1408. ),
  1409. borderRadius:
  1410. BorderRadius.circular(0.0),
  1411. ),
  1412. filled: true,
  1413. fillColor: FlutterFlowTheme.of(context)
  1414. .primaryBackground,
  1415. ),
  1416. style: FlutterFlowTheme.of(context)
  1417. .bodyMedium
  1418. .override(
  1419. font: GoogleFonts.roboto(
  1420. fontWeight:
  1421. FlutterFlowTheme.of(context)
  1422. .bodyMedium
  1423. .fontWeight,
  1424. fontStyle:
  1425. FlutterFlowTheme.of(context)
  1426. .bodyMedium
  1427. .fontStyle,
  1428. ),
  1429. letterSpacing: 0.0,
  1430. fontWeight:
  1431. FlutterFlowTheme.of(context)
  1432. .bodyMedium
  1433. .fontWeight,
  1434. fontStyle:
  1435. FlutterFlowTheme.of(context)
  1436. .bodyMedium
  1437. .fontStyle,
  1438. ),
  1439. cursorColor: FlutterFlowTheme.of(context)
  1440. .primaryText,
  1441. enableInteractiveSelection: true,
  1442. validator: _model
  1443. .textFieldDatumStartTextControllerValidator
  1444. .asValidator(context),
  1445. ),
  1446. ),
  1447. ),
  1448. ),
  1449. InkWell(
  1450. splashColor: Colors.transparent,
  1451. focusColor: Colors.transparent,
  1452. hoverColor: Colors.transparent,
  1453. highlightColor: Colors.transparent,
  1454. onTap: () async {
  1455. final _datePicked2Date = await showDatePicker(
  1456. context: context,
  1457. initialDate: getCurrentTimestamp,
  1458. firstDate: getCurrentTimestamp,
  1459. lastDate: DateTime(2050),
  1460. builder: (context, child) {
  1461. return wrapInMaterialDatePickerTheme(
  1462. context,
  1463. child!,
  1464. headerBackgroundColor:
  1465. FlutterFlowTheme.of(context).primary,
  1466. headerForegroundColor:
  1467. FlutterFlowTheme.of(context).info,
  1468. headerTextStyle: FlutterFlowTheme.of(
  1469. context)
  1470. .headlineLarge
  1471. .override(
  1472. font: GoogleFonts.notoSerif(
  1473. fontWeight: FontWeight.w600,
  1474. fontStyle:
  1475. FlutterFlowTheme.of(context)
  1476. .headlineLarge
  1477. .fontStyle,
  1478. ),
  1479. fontSize: 32.0,
  1480. letterSpacing: 0.0,
  1481. fontWeight: FontWeight.w600,
  1482. fontStyle:
  1483. FlutterFlowTheme.of(context)
  1484. .headlineLarge
  1485. .fontStyle,
  1486. ),
  1487. pickerBackgroundColor:
  1488. FlutterFlowTheme.of(context)
  1489. .secondaryBackground,
  1490. pickerForegroundColor:
  1491. FlutterFlowTheme.of(context)
  1492. .primaryText,
  1493. selectedDateTimeBackgroundColor:
  1494. FlutterFlowTheme.of(context).primary,
  1495. selectedDateTimeForegroundColor:
  1496. FlutterFlowTheme.of(context).info,
  1497. actionButtonForegroundColor:
  1498. FlutterFlowTheme.of(context)
  1499. .primaryText,
  1500. iconSize: 24.0,
  1501. );
  1502. },
  1503. );
  1504. TimeOfDay? _datePicked2Time;
  1505. if (_datePicked2Date != null) {
  1506. _datePicked2Time = await showTimePicker(
  1507. context: context,
  1508. initialTime: TimeOfDay.fromDateTime(
  1509. getCurrentTimestamp),
  1510. builder: (context, child) {
  1511. return wrapInMaterialTimePickerTheme(
  1512. context,
  1513. child!,
  1514. headerBackgroundColor:
  1515. FlutterFlowTheme.of(context)
  1516. .primary,
  1517. headerForegroundColor:
  1518. FlutterFlowTheme.of(context).info,
  1519. headerTextStyle: FlutterFlowTheme.of(
  1520. context)
  1521. .headlineLarge
  1522. .override(
  1523. font: GoogleFonts.notoSerif(
  1524. fontWeight: FontWeight.w600,
  1525. fontStyle:
  1526. FlutterFlowTheme.of(context)
  1527. .headlineLarge
  1528. .fontStyle,
  1529. ),
  1530. fontSize: 32.0,
  1531. letterSpacing: 0.0,
  1532. fontWeight: FontWeight.w600,
  1533. fontStyle:
  1534. FlutterFlowTheme.of(context)
  1535. .headlineLarge
  1536. .fontStyle,
  1537. ),
  1538. pickerBackgroundColor:
  1539. FlutterFlowTheme.of(context)
  1540. .secondaryBackground,
  1541. pickerForegroundColor:
  1542. FlutterFlowTheme.of(context)
  1543. .primaryText,
  1544. selectedDateTimeBackgroundColor:
  1545. FlutterFlowTheme.of(context)
  1546. .primary,
  1547. selectedDateTimeForegroundColor:
  1548. FlutterFlowTheme.of(context).info,
  1549. actionButtonForegroundColor:
  1550. FlutterFlowTheme.of(context)
  1551. .primaryText,
  1552. iconSize: 24.0,
  1553. );
  1554. },
  1555. );
  1556. }
  1557. if (_datePicked2Date != null &&
  1558. _datePicked2Time != null) {
  1559. safeSetState(() {
  1560. _model.datePicked2 = DateTime(
  1561. _datePicked2Date.year,
  1562. _datePicked2Date.month,
  1563. _datePicked2Date.day,
  1564. _datePicked2Time!.hour,
  1565. _datePicked2Time.minute,
  1566. );
  1567. });
  1568. } else if (_model.datePicked2 != null) {
  1569. safeSetState(() {
  1570. _model.datePicked2 = getCurrentTimestamp;
  1571. });
  1572. }
  1573. safeSetState(() {
  1574. _model.textFieldDatumEindTextController
  1575. ?.text = dateTimeFormat(
  1576. "dd-MM-yyyy HH:mm",
  1577. _model.datePicked2,
  1578. locale: FFLocalizations.of(context)
  1579. .languageCode,
  1580. );
  1581. });
  1582. },
  1583. child: Container(
  1584. width: double.infinity,
  1585. decoration: BoxDecoration(),
  1586. child: Container(
  1587. width: double.infinity,
  1588. child: TextFormField(
  1589. controller:
  1590. _model.textFieldDatumEindTextController,
  1591. focusNode:
  1592. _model.textFieldDatumEindFocusNode,
  1593. autofocus: false,
  1594. enabled: false,
  1595. readOnly: true,
  1596. obscureText: false,
  1597. decoration: InputDecoration(
  1598. isDense: true,
  1599. labelText:
  1600. FFLocalizations.of(context).getText(
  1601. 'wkn1mu1d' /* Einddatum */,
  1602. ),
  1603. labelStyle: FlutterFlowTheme.of(context)
  1604. .labelMedium
  1605. .override(
  1606. font: GoogleFonts.roboto(
  1607. fontWeight:
  1608. FlutterFlowTheme.of(context)
  1609. .labelMedium
  1610. .fontWeight,
  1611. fontStyle:
  1612. FlutterFlowTheme.of(context)
  1613. .labelMedium
  1614. .fontStyle,
  1615. ),
  1616. letterSpacing: 0.0,
  1617. fontWeight:
  1618. FlutterFlowTheme.of(context)
  1619. .labelMedium
  1620. .fontWeight,
  1621. fontStyle:
  1622. FlutterFlowTheme.of(context)
  1623. .labelMedium
  1624. .fontStyle,
  1625. ),
  1626. hintText:
  1627. FFLocalizations.of(context).getText(
  1628. 'e42lwmdh' /* Einddatum */,
  1629. ),
  1630. hintStyle: FlutterFlowTheme.of(context)
  1631. .labelMedium
  1632. .override(
  1633. font: GoogleFonts.roboto(
  1634. fontWeight:
  1635. FlutterFlowTheme.of(context)
  1636. .labelMedium
  1637. .fontWeight,
  1638. fontStyle:
  1639. FlutterFlowTheme.of(context)
  1640. .labelMedium
  1641. .fontStyle,
  1642. ),
  1643. letterSpacing: 0.0,
  1644. fontWeight:
  1645. FlutterFlowTheme.of(context)
  1646. .labelMedium
  1647. .fontWeight,
  1648. fontStyle:
  1649. FlutterFlowTheme.of(context)
  1650. .labelMedium
  1651. .fontStyle,
  1652. ),
  1653. enabledBorder: OutlineInputBorder(
  1654. borderSide: BorderSide(
  1655. color: Color(0x00000000),
  1656. width: 1.0,
  1657. ),
  1658. borderRadius:
  1659. BorderRadius.circular(8.0),
  1660. ),
  1661. focusedBorder: OutlineInputBorder(
  1662. borderSide: BorderSide(
  1663. color: Color(0x00000000),
  1664. width: 1.0,
  1665. ),
  1666. borderRadius:
  1667. BorderRadius.circular(8.0),
  1668. ),
  1669. errorBorder: OutlineInputBorder(
  1670. borderSide: BorderSide(
  1671. color: FlutterFlowTheme.of(context)
  1672. .error,
  1673. width: 1.0,
  1674. ),
  1675. borderRadius:
  1676. BorderRadius.circular(8.0),
  1677. ),
  1678. focusedErrorBorder: OutlineInputBorder(
  1679. borderSide: BorderSide(
  1680. color: FlutterFlowTheme.of(context)
  1681. .error,
  1682. width: 1.0,
  1683. ),
  1684. borderRadius:
  1685. BorderRadius.circular(8.0),
  1686. ),
  1687. filled: true,
  1688. fillColor: FlutterFlowTheme.of(context)
  1689. .primaryBackground,
  1690. ),
  1691. style: FlutterFlowTheme.of(context)
  1692. .bodyMedium
  1693. .override(
  1694. font: GoogleFonts.roboto(
  1695. fontWeight:
  1696. FlutterFlowTheme.of(context)
  1697. .bodyMedium
  1698. .fontWeight,
  1699. fontStyle:
  1700. FlutterFlowTheme.of(context)
  1701. .bodyMedium
  1702. .fontStyle,
  1703. ),
  1704. letterSpacing: 0.0,
  1705. fontWeight:
  1706. FlutterFlowTheme.of(context)
  1707. .bodyMedium
  1708. .fontWeight,
  1709. fontStyle:
  1710. FlutterFlowTheme.of(context)
  1711. .bodyMedium
  1712. .fontStyle,
  1713. ),
  1714. cursorColor: FlutterFlowTheme.of(context)
  1715. .primaryText,
  1716. enableInteractiveSelection: true,
  1717. validator: _model
  1718. .textFieldDatumEindTextControllerValidator
  1719. .asValidator(context),
  1720. ),
  1721. ),
  1722. ),
  1723. ),
  1724. ],
  1725. ),
  1726. ),
  1727. ),
  1728. ),
  1729. Align(
  1730. alignment: AlignmentDirectional(-1.0, 0.0),
  1731. child: Padding(
  1732. padding: EdgeInsets.all(16.0),
  1733. child: Container(
  1734. width: double.infinity,
  1735. decoration: BoxDecoration(
  1736. color:
  1737. FlutterFlowTheme.of(context).secondaryBackground,
  1738. borderRadius: BorderRadius.only(),
  1739. border: Border.all(
  1740. color: FlutterFlowTheme.of(context).alternate,
  1741. width: 3.0,
  1742. ),
  1743. ),
  1744. child: Column(
  1745. mainAxisSize: MainAxisSize.max,
  1746. children: [
  1747. Align(
  1748. alignment: AlignmentDirectional(-1.0, 0.0),
  1749. child: Text(
  1750. FFLocalizations.of(context).getText(
  1751. 'vkyrmq6a' /* Organisatie */,
  1752. ),
  1753. style: FlutterFlowTheme.of(context)
  1754. .bodyMedium
  1755. .override(
  1756. font: GoogleFonts.roboto(
  1757. fontWeight: FlutterFlowTheme.of(context)
  1758. .bodyMedium
  1759. .fontWeight,
  1760. fontStyle: FlutterFlowTheme.of(context)
  1761. .bodyMedium
  1762. .fontStyle,
  1763. ),
  1764. letterSpacing: 0.0,
  1765. fontWeight: FlutterFlowTheme.of(context)
  1766. .bodyMedium
  1767. .fontWeight,
  1768. fontStyle: FlutterFlowTheme.of(context)
  1769. .bodyMedium
  1770. .fontStyle,
  1771. ),
  1772. ),
  1773. ),
  1774. Align(
  1775. alignment: AlignmentDirectional(-1.0, 0.0),
  1776. child: Text(
  1777. FFLocalizations.of(context).getText(
  1778. 'len3npim' /* Optioneel. Een website of tick... */,
  1779. ),
  1780. style: FlutterFlowTheme.of(context)
  1781. .bodyMedium
  1782. .override(
  1783. font: GoogleFonts.roboto(
  1784. fontWeight: FlutterFlowTheme.of(context)
  1785. .bodyMedium
  1786. .fontWeight,
  1787. fontStyle: FlutterFlowTheme.of(context)
  1788. .bodyMedium
  1789. .fontStyle,
  1790. ),
  1791. color: FlutterFlowTheme.of(context)
  1792. .secondaryText,
  1793. fontSize: 12.0,
  1794. letterSpacing: 0.0,
  1795. fontWeight: FlutterFlowTheme.of(context)
  1796. .bodyMedium
  1797. .fontWeight,
  1798. fontStyle: FlutterFlowTheme.of(context)
  1799. .bodyMedium
  1800. .fontStyle,
  1801. ),
  1802. ),
  1803. ),
  1804. Align(
  1805. alignment: AlignmentDirectional(-1.0, 0.0),
  1806. child: Container(
  1807. width: double.infinity,
  1808. child: TextFormField(
  1809. controller:
  1810. _model.textFieldWebsiteURLTextController,
  1811. focusNode:
  1812. _model.textFieldWebsiteURLFocusNode,
  1813. autofocus: false,
  1814. enabled: true,
  1815. obscureText: false,
  1816. decoration: InputDecoration(
  1817. isDense: true,
  1818. labelText:
  1819. FFLocalizations.of(context).getText(
  1820. 'e9n6cj1o' /* Website */,
  1821. ),
  1822. labelStyle: FlutterFlowTheme.of(context)
  1823. .labelMedium
  1824. .override(
  1825. font: GoogleFonts.roboto(
  1826. fontWeight:
  1827. FlutterFlowTheme.of(context)
  1828. .labelMedium
  1829. .fontWeight,
  1830. fontStyle:
  1831. FlutterFlowTheme.of(context)
  1832. .labelMedium
  1833. .fontStyle,
  1834. ),
  1835. letterSpacing: 0.0,
  1836. fontWeight:
  1837. FlutterFlowTheme.of(context)
  1838. .labelMedium
  1839. .fontWeight,
  1840. fontStyle:
  1841. FlutterFlowTheme.of(context)
  1842. .labelMedium
  1843. .fontStyle,
  1844. ),
  1845. hintText:
  1846. FFLocalizations.of(context).getText(
  1847. 'qsf2va25' /* Website van het evenement */,
  1848. ),
  1849. hintStyle: FlutterFlowTheme.of(context)
  1850. .labelMedium
  1851. .override(
  1852. font: GoogleFonts.roboto(
  1853. fontWeight:
  1854. FlutterFlowTheme.of(context)
  1855. .labelMedium
  1856. .fontWeight,
  1857. fontStyle:
  1858. FlutterFlowTheme.of(context)
  1859. .labelMedium
  1860. .fontStyle,
  1861. ),
  1862. letterSpacing: 0.0,
  1863. fontWeight:
  1864. FlutterFlowTheme.of(context)
  1865. .labelMedium
  1866. .fontWeight,
  1867. fontStyle:
  1868. FlutterFlowTheme.of(context)
  1869. .labelMedium
  1870. .fontStyle,
  1871. ),
  1872. enabledBorder: OutlineInputBorder(
  1873. borderSide: BorderSide(
  1874. color: Color(0x00000000),
  1875. width: 1.0,
  1876. ),
  1877. borderRadius: BorderRadius.circular(8.0),
  1878. ),
  1879. focusedBorder: OutlineInputBorder(
  1880. borderSide: BorderSide(
  1881. color: Color(0x00000000),
  1882. width: 1.0,
  1883. ),
  1884. borderRadius: BorderRadius.circular(8.0),
  1885. ),
  1886. errorBorder: OutlineInputBorder(
  1887. borderSide: BorderSide(
  1888. color:
  1889. FlutterFlowTheme.of(context).error,
  1890. width: 1.0,
  1891. ),
  1892. borderRadius: BorderRadius.circular(8.0),
  1893. ),
  1894. focusedErrorBorder: OutlineInputBorder(
  1895. borderSide: BorderSide(
  1896. color:
  1897. FlutterFlowTheme.of(context).error,
  1898. width: 1.0,
  1899. ),
  1900. borderRadius: BorderRadius.circular(8.0),
  1901. ),
  1902. filled: true,
  1903. fillColor: FlutterFlowTheme.of(context)
  1904. .primaryBackground,
  1905. ),
  1906. style: FlutterFlowTheme.of(context)
  1907. .bodyMedium
  1908. .override(
  1909. font: GoogleFonts.roboto(
  1910. fontWeight:
  1911. FlutterFlowTheme.of(context)
  1912. .bodyMedium
  1913. .fontWeight,
  1914. fontStyle:
  1915. FlutterFlowTheme.of(context)
  1916. .bodyMedium
  1917. .fontStyle,
  1918. ),
  1919. letterSpacing: 0.0,
  1920. fontWeight: FlutterFlowTheme.of(context)
  1921. .bodyMedium
  1922. .fontWeight,
  1923. fontStyle: FlutterFlowTheme.of(context)
  1924. .bodyMedium
  1925. .fontStyle,
  1926. ),
  1927. cursorColor:
  1928. FlutterFlowTheme.of(context).primaryText,
  1929. enableInteractiveSelection: true,
  1930. validator: _model
  1931. .textFieldWebsiteURLTextControllerValidator
  1932. .asValidator(context),
  1933. ),
  1934. ),
  1935. ),
  1936. Align(
  1937. alignment: AlignmentDirectional(-1.0, 0.0),
  1938. child: Container(
  1939. width: double.infinity,
  1940. child: TextFormField(
  1941. controller:
  1942. _model.textFieldTicketsURLTextController,
  1943. focusNode:
  1944. _model.textFieldTicketsURLFocusNode,
  1945. autofocus: false,
  1946. enabled: true,
  1947. obscureText: false,
  1948. decoration: InputDecoration(
  1949. isDense: true,
  1950. labelText:
  1951. FFLocalizations.of(context).getText(
  1952. 'zfofdq9a' /* Ticketlink */,
  1953. ),
  1954. labelStyle: FlutterFlowTheme.of(context)
  1955. .labelMedium
  1956. .override(
  1957. font: GoogleFonts.roboto(
  1958. fontWeight:
  1959. FlutterFlowTheme.of(context)
  1960. .labelMedium
  1961. .fontWeight,
  1962. fontStyle:
  1963. FlutterFlowTheme.of(context)
  1964. .labelMedium
  1965. .fontStyle,
  1966. ),
  1967. letterSpacing: 0.0,
  1968. fontWeight:
  1969. FlutterFlowTheme.of(context)
  1970. .labelMedium
  1971. .fontWeight,
  1972. fontStyle:
  1973. FlutterFlowTheme.of(context)
  1974. .labelMedium
  1975. .fontStyle,
  1976. ),
  1977. hintText:
  1978. FFLocalizations.of(context).getText(
  1979. 'nzaqrq0w' /* Link om kaarten te kopen */,
  1980. ),
  1981. hintStyle: FlutterFlowTheme.of(context)
  1982. .labelMedium
  1983. .override(
  1984. font: GoogleFonts.roboto(
  1985. fontWeight:
  1986. FlutterFlowTheme.of(context)
  1987. .labelMedium
  1988. .fontWeight,
  1989. fontStyle:
  1990. FlutterFlowTheme.of(context)
  1991. .labelMedium
  1992. .fontStyle,
  1993. ),
  1994. letterSpacing: 0.0,
  1995. fontWeight:
  1996. FlutterFlowTheme.of(context)
  1997. .labelMedium
  1998. .fontWeight,
  1999. fontStyle:
  2000. FlutterFlowTheme.of(context)
  2001. .labelMedium
  2002. .fontStyle,
  2003. ),
  2004. enabledBorder: OutlineInputBorder(
  2005. borderSide: BorderSide(
  2006. color: Color(0x00000000),
  2007. width: 1.0,
  2008. ),
  2009. borderRadius: BorderRadius.circular(8.0),
  2010. ),
  2011. focusedBorder: OutlineInputBorder(
  2012. borderSide: BorderSide(
  2013. color: Color(0x00000000),
  2014. width: 1.0,
  2015. ),
  2016. borderRadius: BorderRadius.circular(8.0),
  2017. ),
  2018. errorBorder: OutlineInputBorder(
  2019. borderSide: BorderSide(
  2020. color:
  2021. FlutterFlowTheme.of(context).error,
  2022. width: 1.0,
  2023. ),
  2024. borderRadius: BorderRadius.circular(8.0),
  2025. ),
  2026. focusedErrorBorder: OutlineInputBorder(
  2027. borderSide: BorderSide(
  2028. color:
  2029. FlutterFlowTheme.of(context).error,
  2030. width: 1.0,
  2031. ),
  2032. borderRadius: BorderRadius.circular(8.0),
  2033. ),
  2034. filled: true,
  2035. fillColor: FlutterFlowTheme.of(context)
  2036. .primaryBackground,
  2037. ),
  2038. style: FlutterFlowTheme.of(context)
  2039. .bodyMedium
  2040. .override(
  2041. font: GoogleFonts.roboto(
  2042. fontWeight:
  2043. FlutterFlowTheme.of(context)
  2044. .bodyMedium
  2045. .fontWeight,
  2046. fontStyle:
  2047. FlutterFlowTheme.of(context)
  2048. .bodyMedium
  2049. .fontStyle,
  2050. ),
  2051. letterSpacing: 0.0,
  2052. fontWeight: FlutterFlowTheme.of(context)
  2053. .bodyMedium
  2054. .fontWeight,
  2055. fontStyle: FlutterFlowTheme.of(context)
  2056. .bodyMedium
  2057. .fontStyle,
  2058. ),
  2059. cursorColor:
  2060. FlutterFlowTheme.of(context).primaryText,
  2061. enableInteractiveSelection: true,
  2062. validator: _model
  2063. .textFieldTicketsURLTextControllerValidator
  2064. .asValidator(context),
  2065. ),
  2066. ),
  2067. ),
  2068. ],
  2069. ),
  2070. ),
  2071. ),
  2072. ),
  2073. Align(
  2074. alignment: AlignmentDirectional(-1.0, 0.0),
  2075. child: Padding(
  2076. padding: EdgeInsets.all(16.0),
  2077. child: Container(
  2078. width: double.infinity,
  2079. decoration: BoxDecoration(
  2080. color:
  2081. FlutterFlowTheme.of(context).secondaryBackground,
  2082. borderRadius: BorderRadius.only(),
  2083. border: Border.all(
  2084. color: FlutterFlowTheme.of(context).alternate,
  2085. width: 3.0,
  2086. ),
  2087. ),
  2088. child: Align(
  2089. alignment: AlignmentDirectional(-1.0, 0.0),
  2090. child: Column(
  2091. mainAxisSize: MainAxisSize.max,
  2092. children: [
  2093. Align(
  2094. alignment: AlignmentDirectional(-1.0, 0.0),
  2095. child: Text(
  2096. FFLocalizations.of(context).getText(
  2097. 'obaet4ky' /* Entree */,
  2098. ),
  2099. style: FlutterFlowTheme.of(context)
  2100. .headlineSmall
  2101. .override(
  2102. font: GoogleFonts.notoSerif(
  2103. fontWeight:
  2104. FlutterFlowTheme.of(context)
  2105. .headlineSmall
  2106. .fontWeight,
  2107. fontStyle:
  2108. FlutterFlowTheme.of(context)
  2109. .headlineSmall
  2110. .fontStyle,
  2111. ),
  2112. fontSize: 16.0,
  2113. letterSpacing: 0.0,
  2114. fontWeight: FlutterFlowTheme.of(context)
  2115. .headlineSmall
  2116. .fontWeight,
  2117. fontStyle: FlutterFlowTheme.of(context)
  2118. .headlineSmall
  2119. .fontStyle,
  2120. ),
  2121. ),
  2122. ),
  2123. Align(
  2124. alignment: AlignmentDirectional(-1.0, 0.0),
  2125. child: Text(
  2126. FFLocalizations.of(context).getText(
  2127. 'rj9dgdp7' /* Entree informatie */,
  2128. ),
  2129. style: FlutterFlowTheme.of(context)
  2130. .bodySmall
  2131. .override(
  2132. font: GoogleFonts.roboto(
  2133. fontWeight:
  2134. FlutterFlowTheme.of(context)
  2135. .bodySmall
  2136. .fontWeight,
  2137. fontStyle:
  2138. FlutterFlowTheme.of(context)
  2139. .bodySmall
  2140. .fontStyle,
  2141. ),
  2142. color: FlutterFlowTheme.of(context)
  2143. .secondaryText,
  2144. letterSpacing: 0.0,
  2145. fontWeight: FlutterFlowTheme.of(context)
  2146. .bodySmall
  2147. .fontWeight,
  2148. fontStyle: FlutterFlowTheme.of(context)
  2149. .bodySmall
  2150. .fontStyle,
  2151. ),
  2152. ),
  2153. ),
  2154. Align(
  2155. alignment: AlignmentDirectional(-1.0, 0.0),
  2156. child: FutureBuilder<ApiCallResponse>(
  2157. future: ProductieGroup.entreeoptiesCall.call(
  2158. sessionName: FFAppState().userSessionname,
  2159. sessid: FFAppState().userSessionid,
  2160. ),
  2161. builder: (context, snapshot) {
  2162. // Customize what your widget looks like when it's loading.
  2163. if (!snapshot.hasData) {
  2164. return Center(
  2165. child: SizedBox(
  2166. width: 80.0,
  2167. height: 80.0,
  2168. child: SpinKitFadingCircle(
  2169. color: FlutterFlowTheme.of(context)
  2170. .primary,
  2171. size: 80.0,
  2172. ),
  2173. ),
  2174. );
  2175. }
  2176. final dropDownEntreeEntreeoptiesResponse =
  2177. snapshot.data!;
  2178. _model.debugBackendQueries[
  2179. 'ProductieGroup.entreeoptiesCall_statusCode_DropDown_pscb0l37'] =
  2180. debugSerializeParam(
  2181. dropDownEntreeEntreeoptiesResponse
  2182. .statusCode,
  2183. ParamType.int,
  2184. link:
  2185. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  2186. name: 'int',
  2187. nullable: false,
  2188. );
  2189. _model.debugBackendQueries[
  2190. 'ProductieGroup.entreeoptiesCall_responseBody_DropDown_pscb0l37'] =
  2191. debugSerializeParam(
  2192. dropDownEntreeEntreeoptiesResponse
  2193. .bodyText,
  2194. ParamType.String,
  2195. link:
  2196. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  2197. name: 'String',
  2198. nullable: false,
  2199. );
  2200. debugLogWidgetClass(_model);
  2201. return FlutterFlowDropDown<String>(
  2202. controller: _model
  2203. .dropDownEntreeValueController ??=
  2204. FormFieldController<String>(
  2205. _model.dropDownEntreeValue ??=
  2206. functions.kloonTekst(
  2207. FFAppState().kloonBron,
  2208. 'entree_tid'),
  2209. ),
  2210. options: List<String>.from((getJsonField(
  2211. dropDownEntreeEntreeoptiesResponse
  2212. .jsonBody,
  2213. r'''$[:].tid''',
  2214. true,
  2215. ) as List?)!
  2216. .map<String>((e) => e.toString())
  2217. .toList()
  2218. .cast<String>()),
  2219. optionLabels: (getJsonField(
  2220. dropDownEntreeEntreeoptiesResponse
  2221. .jsonBody,
  2222. r'''$[:].naam''',
  2223. true,
  2224. ) as List?)!
  2225. .map<String>((e) => e.toString())
  2226. .toList()
  2227. .cast<String>(),
  2228. onChanged: (val) async {
  2229. safeSetState(() =>
  2230. _model.dropDownEntreeValue = val);
  2231. _model.createEntreeTid =
  2232. _model.dropDownEntreeValue;
  2233. safeSetState(() {});
  2234. },
  2235. width: double.infinity,
  2236. height: 40.0,
  2237. textStyle: FlutterFlowTheme.of(context)
  2238. .bodyMedium
  2239. .override(
  2240. font: GoogleFonts.roboto(
  2241. fontWeight:
  2242. FlutterFlowTheme.of(context)
  2243. .bodyMedium
  2244. .fontWeight,
  2245. fontStyle:
  2246. FlutterFlowTheme.of(context)
  2247. .bodyMedium
  2248. .fontStyle,
  2249. ),
  2250. letterSpacing: 0.0,
  2251. fontWeight:
  2252. FlutterFlowTheme.of(context)
  2253. .bodyMedium
  2254. .fontWeight,
  2255. fontStyle:
  2256. FlutterFlowTheme.of(context)
  2257. .bodyMedium
  2258. .fontStyle,
  2259. ),
  2260. hintText:
  2261. FFLocalizations.of(context).getText(
  2262. 'ht4toe4o' /* Select... */,
  2263. ),
  2264. icon: Icon(
  2265. Icons.keyboard_arrow_down_rounded,
  2266. color: FlutterFlowTheme.of(context)
  2267. .secondaryText,
  2268. size: 24.0,
  2269. ),
  2270. fillColor: FlutterFlowTheme.of(context)
  2271. .primaryBackground,
  2272. elevation: 2.0,
  2273. borderColor: Colors.transparent,
  2274. borderWidth: 0.0,
  2275. borderRadius: 8.0,
  2276. margin: EdgeInsetsDirectional.fromSTEB(
  2277. 12.0, 0.0, 12.0, 0.0),
  2278. hidesUnderline: true,
  2279. isOverButton: false,
  2280. isSearchable: false,
  2281. isMultiSelect: false,
  2282. );
  2283. },
  2284. ),
  2285. ),
  2286. Align(
  2287. alignment: AlignmentDirectional(-1.0, 0.0),
  2288. child: Container(
  2289. width: double.infinity,
  2290. child: TextFormField(
  2291. controller: _model
  2292. .textFieldToelichtingEntreeTextController,
  2293. focusNode: _model
  2294. .textFieldToelichtingEntreeFocusNode,
  2295. autofocus: false,
  2296. enabled: true,
  2297. obscureText: false,
  2298. decoration: InputDecoration(
  2299. isDense: true,
  2300. labelText:
  2301. FFLocalizations.of(context).getText(
  2302. 'taujsjo7' /* Toelichting entree */,
  2303. ),
  2304. labelStyle: FlutterFlowTheme.of(context)
  2305. .labelMedium
  2306. .override(
  2307. font: GoogleFonts.roboto(
  2308. fontWeight:
  2309. FlutterFlowTheme.of(context)
  2310. .labelMedium
  2311. .fontWeight,
  2312. fontStyle:
  2313. FlutterFlowTheme.of(context)
  2314. .labelMedium
  2315. .fontStyle,
  2316. ),
  2317. letterSpacing: 0.0,
  2318. fontWeight:
  2319. FlutterFlowTheme.of(context)
  2320. .labelMedium
  2321. .fontWeight,
  2322. fontStyle:
  2323. FlutterFlowTheme.of(context)
  2324. .labelMedium
  2325. .fontStyle,
  2326. ),
  2327. hintText:
  2328. FFLocalizations.of(context).getText(
  2329. 'y7mzhxd8' /* Toelichting entree */,
  2330. ),
  2331. hintStyle: FlutterFlowTheme.of(context)
  2332. .labelMedium
  2333. .override(
  2334. font: GoogleFonts.roboto(
  2335. fontWeight:
  2336. FlutterFlowTheme.of(context)
  2337. .labelMedium
  2338. .fontWeight,
  2339. fontStyle:
  2340. FlutterFlowTheme.of(context)
  2341. .labelMedium
  2342. .fontStyle,
  2343. ),
  2344. letterSpacing: 0.0,
  2345. fontWeight:
  2346. FlutterFlowTheme.of(context)
  2347. .labelMedium
  2348. .fontWeight,
  2349. fontStyle:
  2350. FlutterFlowTheme.of(context)
  2351. .labelMedium
  2352. .fontStyle,
  2353. ),
  2354. enabledBorder: OutlineInputBorder(
  2355. borderSide: BorderSide(
  2356. color: Color(0x00000000),
  2357. width: 1.0,
  2358. ),
  2359. borderRadius:
  2360. BorderRadius.circular(8.0),
  2361. ),
  2362. focusedBorder: OutlineInputBorder(
  2363. borderSide: BorderSide(
  2364. color: Color(0x00000000),
  2365. width: 1.0,
  2366. ),
  2367. borderRadius:
  2368. BorderRadius.circular(8.0),
  2369. ),
  2370. errorBorder: OutlineInputBorder(
  2371. borderSide: BorderSide(
  2372. color: FlutterFlowTheme.of(context)
  2373. .error,
  2374. width: 1.0,
  2375. ),
  2376. borderRadius:
  2377. BorderRadius.circular(8.0),
  2378. ),
  2379. focusedErrorBorder: OutlineInputBorder(
  2380. borderSide: BorderSide(
  2381. color: FlutterFlowTheme.of(context)
  2382. .error,
  2383. width: 1.0,
  2384. ),
  2385. borderRadius:
  2386. BorderRadius.circular(8.0),
  2387. ),
  2388. filled: true,
  2389. fillColor: FlutterFlowTheme.of(context)
  2390. .primaryBackground,
  2391. ),
  2392. style: FlutterFlowTheme.of(context)
  2393. .bodyMedium
  2394. .override(
  2395. font: GoogleFonts.roboto(
  2396. fontWeight:
  2397. FlutterFlowTheme.of(context)
  2398. .bodyMedium
  2399. .fontWeight,
  2400. fontStyle:
  2401. FlutterFlowTheme.of(context)
  2402. .bodyMedium
  2403. .fontStyle,
  2404. ),
  2405. letterSpacing: 0.0,
  2406. fontWeight:
  2407. FlutterFlowTheme.of(context)
  2408. .bodyMedium
  2409. .fontWeight,
  2410. fontStyle:
  2411. FlutterFlowTheme.of(context)
  2412. .bodyMedium
  2413. .fontStyle,
  2414. ),
  2415. cursorColor: FlutterFlowTheme.of(context)
  2416. .primaryText,
  2417. enableInteractiveSelection: true,
  2418. validator: _model
  2419. .textFieldToelichtingEntreeTextControllerValidator
  2420. .asValidator(context),
  2421. ),
  2422. ),
  2423. ),
  2424. Align(
  2425. alignment: AlignmentDirectional(-1.0, 0.0),
  2426. child: Container(
  2427. width: double.infinity,
  2428. child: TextFormField(
  2429. controller: _model
  2430. .textFieldEntreeprijsTextController,
  2431. focusNode:
  2432. _model.textFieldEntreeprijsFocusNode,
  2433. autofocus: false,
  2434. enabled: true,
  2435. obscureText: false,
  2436. decoration: InputDecoration(
  2437. isDense: true,
  2438. labelText:
  2439. FFLocalizations.of(context).getText(
  2440. '3h3k4jh2' /* Entreeprijs */,
  2441. ),
  2442. labelStyle: FlutterFlowTheme.of(context)
  2443. .labelMedium
  2444. .override(
  2445. font: GoogleFonts.roboto(
  2446. fontWeight:
  2447. FlutterFlowTheme.of(context)
  2448. .labelMedium
  2449. .fontWeight,
  2450. fontStyle:
  2451. FlutterFlowTheme.of(context)
  2452. .labelMedium
  2453. .fontStyle,
  2454. ),
  2455. letterSpacing: 0.0,
  2456. fontWeight:
  2457. FlutterFlowTheme.of(context)
  2458. .labelMedium
  2459. .fontWeight,
  2460. fontStyle:
  2461. FlutterFlowTheme.of(context)
  2462. .labelMedium
  2463. .fontStyle,
  2464. ),
  2465. hintText:
  2466. FFLocalizations.of(context).getText(
  2467. 'ge5o3gf7' /* Entreeprijs */,
  2468. ),
  2469. hintStyle: FlutterFlowTheme.of(context)
  2470. .labelMedium
  2471. .override(
  2472. font: GoogleFonts.roboto(
  2473. fontWeight:
  2474. FlutterFlowTheme.of(context)
  2475. .labelMedium
  2476. .fontWeight,
  2477. fontStyle:
  2478. FlutterFlowTheme.of(context)
  2479. .labelMedium
  2480. .fontStyle,
  2481. ),
  2482. letterSpacing: 0.0,
  2483. fontWeight:
  2484. FlutterFlowTheme.of(context)
  2485. .labelMedium
  2486. .fontWeight,
  2487. fontStyle:
  2488. FlutterFlowTheme.of(context)
  2489. .labelMedium
  2490. .fontStyle,
  2491. ),
  2492. enabledBorder: OutlineInputBorder(
  2493. borderSide: BorderSide(
  2494. color: Color(0x00000000),
  2495. width: 1.0,
  2496. ),
  2497. borderRadius:
  2498. BorderRadius.circular(8.0),
  2499. ),
  2500. focusedBorder: OutlineInputBorder(
  2501. borderSide: BorderSide(
  2502. color: Color(0x00000000),
  2503. width: 1.0,
  2504. ),
  2505. borderRadius:
  2506. BorderRadius.circular(8.0),
  2507. ),
  2508. errorBorder: OutlineInputBorder(
  2509. borderSide: BorderSide(
  2510. color: FlutterFlowTheme.of(context)
  2511. .error,
  2512. width: 1.0,
  2513. ),
  2514. borderRadius:
  2515. BorderRadius.circular(8.0),
  2516. ),
  2517. focusedErrorBorder: OutlineInputBorder(
  2518. borderSide: BorderSide(
  2519. color: FlutterFlowTheme.of(context)
  2520. .error,
  2521. width: 1.0,
  2522. ),
  2523. borderRadius:
  2524. BorderRadius.circular(8.0),
  2525. ),
  2526. filled: true,
  2527. fillColor: FlutterFlowTheme.of(context)
  2528. .primaryBackground,
  2529. ),
  2530. style: FlutterFlowTheme.of(context)
  2531. .bodyMedium
  2532. .override(
  2533. font: GoogleFonts.roboto(
  2534. fontWeight:
  2535. FlutterFlowTheme.of(context)
  2536. .bodyMedium
  2537. .fontWeight,
  2538. fontStyle:
  2539. FlutterFlowTheme.of(context)
  2540. .bodyMedium
  2541. .fontStyle,
  2542. ),
  2543. letterSpacing: 0.0,
  2544. fontWeight:
  2545. FlutterFlowTheme.of(context)
  2546. .bodyMedium
  2547. .fontWeight,
  2548. fontStyle:
  2549. FlutterFlowTheme.of(context)
  2550. .bodyMedium
  2551. .fontStyle,
  2552. ),
  2553. cursorColor: FlutterFlowTheme.of(context)
  2554. .primaryText,
  2555. enableInteractiveSelection: true,
  2556. validator: _model
  2557. .textFieldEntreeprijsTextControllerValidator
  2558. .asValidator(context),
  2559. ),
  2560. ),
  2561. ),
  2562. ],
  2563. ),
  2564. ),
  2565. ),
  2566. ),
  2567. ),
  2568. Container(
  2569. width: double.infinity,
  2570. decoration: BoxDecoration(
  2571. color: FlutterFlowTheme.of(context).secondaryBackground,
  2572. border: Border.all(
  2573. color: FlutterFlowTheme.of(context).alternate,
  2574. width: 3.0,
  2575. ),
  2576. ),
  2577. child: Column(
  2578. mainAxisSize: MainAxisSize.max,
  2579. children: [
  2580. Align(
  2581. alignment: AlignmentDirectional(-1.0, 0.0),
  2582. child: Text(
  2583. FFLocalizations.of(context).getText(
  2584. '4a28vwlf' /* Media */,
  2585. ),
  2586. style: FlutterFlowTheme.of(context)
  2587. .headlineSmall
  2588. .override(
  2589. font: GoogleFonts.notoSerif(
  2590. fontWeight: FlutterFlowTheme.of(context)
  2591. .headlineSmall
  2592. .fontWeight,
  2593. fontStyle: FlutterFlowTheme.of(context)
  2594. .headlineSmall
  2595. .fontStyle,
  2596. ),
  2597. fontSize: 16.0,
  2598. letterSpacing: 0.0,
  2599. fontWeight: FlutterFlowTheme.of(context)
  2600. .headlineSmall
  2601. .fontWeight,
  2602. fontStyle: FlutterFlowTheme.of(context)
  2603. .headlineSmall
  2604. .fontStyle,
  2605. ),
  2606. ),
  2607. ),
  2608. Align(
  2609. alignment: AlignmentDirectional(-1.0, 0.0),
  2610. child: Text(
  2611. FFLocalizations.of(context).getText(
  2612. 'nvi2k89n' /* Een logo en meerdere foto's. T... */,
  2613. ),
  2614. style:
  2615. FlutterFlowTheme.of(context).bodySmall.override(
  2616. font: GoogleFonts.roboto(
  2617. fontWeight: FlutterFlowTheme.of(context)
  2618. .bodySmall
  2619. .fontWeight,
  2620. fontStyle: FlutterFlowTheme.of(context)
  2621. .bodySmall
  2622. .fontStyle,
  2623. ),
  2624. color: FlutterFlowTheme.of(context)
  2625. .secondaryText,
  2626. letterSpacing: 0.0,
  2627. fontWeight: FlutterFlowTheme.of(context)
  2628. .bodySmall
  2629. .fontWeight,
  2630. fontStyle: FlutterFlowTheme.of(context)
  2631. .bodySmall
  2632. .fontStyle,
  2633. ),
  2634. ),
  2635. ),
  2636. Row(
  2637. mainAxisSize: MainAxisSize.max,
  2638. children: [
  2639. Align(
  2640. alignment: AlignmentDirectional(-1.0, 0.0),
  2641. child: FFButtonWidget(
  2642. onPressed: () async {
  2643. var confirmDialogResponse =
  2644. await showDialog<bool>(
  2645. context: context,
  2646. builder: (alertDialogContext) {
  2647. return AlertDialog(
  2648. title: Text(
  2649. 'Waar komt het logo vandaan?'),
  2650. actions: [
  2651. TextButton(
  2652. onPressed: () =>
  2653. Navigator.pop(
  2654. alertDialogContext,
  2655. false),
  2656. child: Text('Mobiel'),
  2657. ),
  2658. TextButton(
  2659. onPressed: () =>
  2660. Navigator.pop(
  2661. alertDialogContext,
  2662. true),
  2663. child: Text('Fotoboek'),
  2664. ),
  2665. ],
  2666. );
  2667. },
  2668. ) ??
  2669. false;
  2670. if (confirmDialogResponse) {
  2671. await showModalBottomSheet(
  2672. isScrollControlled: true,
  2673. backgroundColor: Colors.transparent,
  2674. enableDrag: false,
  2675. context: context,
  2676. builder: (context) {
  2677. return GestureDetector(
  2678. onTap: () {
  2679. FocusScope.of(context).unfocus();
  2680. FocusManager.instance.primaryFocus
  2681. ?.unfocus();
  2682. },
  2683. child: Padding(
  2684. padding: MediaQuery.viewInsetsOf(
  2685. context),
  2686. child: Container(
  2687. height: MediaQuery.sizeOf(context)
  2688. .height *
  2689. 0.85,
  2690. child:
  2691. FotoboekGridComponentWidget(
  2692. bijKeuze: (fid, url) async {
  2693. _model.createLogoFid = fid;
  2694. _model.createLogoUrl = url;
  2695. safeSetState(() {});
  2696. },
  2697. ),
  2698. ),
  2699. ),
  2700. );
  2701. },
  2702. ).then((value) => safeSetState(() {}));
  2703. } else {
  2704. final selectedMedia =
  2705. await selectMediaWithSourceBottomSheet(
  2706. context: context,
  2707. allowPhoto: true,
  2708. );
  2709. if (selectedMedia != null &&
  2710. selectedMedia.every((m) =>
  2711. validateFileFormat(
  2712. m.storagePath, context))) {
  2713. safeSetState(() => _model
  2714. .isDataUploading_uploadDataLogoEvenement =
  2715. true);
  2716. var selectedUploadedFiles =
  2717. <FFUploadedFile>[];
  2718. try {
  2719. selectedUploadedFiles = selectedMedia
  2720. .map((m) => FFUploadedFile(
  2721. name: m.storagePath
  2722. .split('/')
  2723. .last,
  2724. bytes: m.bytes,
  2725. height: m.dimensions?.height,
  2726. width: m.dimensions?.width,
  2727. blurHash: m.blurHash,
  2728. originalFilename:
  2729. m.originalFilename,
  2730. ))
  2731. .toList();
  2732. } finally {
  2733. _model.isDataUploading_uploadDataLogoEvenement =
  2734. false;
  2735. }
  2736. if (selectedUploadedFiles.length ==
  2737. selectedMedia.length) {
  2738. safeSetState(() {
  2739. _model.uploadedLocalFile_uploadDataLogoEvenement =
  2740. selectedUploadedFiles.first;
  2741. });
  2742. } else {
  2743. safeSetState(() {});
  2744. return;
  2745. }
  2746. }
  2747. _model.logoevenementuploadResult =
  2748. await actions.bestandUpload(
  2749. _model
  2750. .uploadedLocalFile_uploadDataLogoEvenement,
  2751. '/en/flutterdrup/bestand_upload/upload.json',
  2752. FFAppState().userSessionname,
  2753. FFAppState().userSessionid,
  2754. FFAppState().userToken,
  2755. );
  2756. if (getJsonField(
  2757. _model.logoevenementuploadResult,
  2758. r'''$.success''',
  2759. )) {
  2760. _model.createLogoFid = getJsonField(
  2761. _model.logoevenementuploadResult,
  2762. r'''$.fid''',
  2763. ).toString();
  2764. _model.createLogoUrl = getJsonField(
  2765. _model.logoevenementuploadResult,
  2766. r'''$.url''',
  2767. ).toString();
  2768. safeSetState(() {});
  2769. } else {
  2770. ScaffoldMessenger.of(context)
  2771. .showSnackBar(
  2772. SnackBar(
  2773. content: Text(
  2774. getJsonField(
  2775. _model.logoevenementuploadResult,
  2776. r'''$.error''',
  2777. ).toString(),
  2778. style: TextStyle(
  2779. color:
  2780. FlutterFlowTheme.of(context)
  2781. .primaryText,
  2782. ),
  2783. ),
  2784. duration:
  2785. Duration(milliseconds: 4000),
  2786. backgroundColor:
  2787. FlutterFlowTheme.of(context)
  2788. .secondary,
  2789. ),
  2790. );
  2791. }
  2792. }
  2793. safeSetState(() {});
  2794. },
  2795. text: FFLocalizations.of(context).getText(
  2796. 'df4oowbq' /* Logo kiezen */,
  2797. ),
  2798. options: FFButtonOptions(
  2799. height: 40.0,
  2800. padding: EdgeInsetsDirectional.fromSTEB(
  2801. 16.0, 0.0, 16.0, 0.0),
  2802. iconPadding: EdgeInsetsDirectional.fromSTEB(
  2803. 0.0, 0.0, 0.0, 0.0),
  2804. color: FlutterFlowTheme.of(context).secondary,
  2805. textStyle: FlutterFlowTheme.of(context)
  2806. .titleSmall
  2807. .override(
  2808. font: GoogleFonts.roboto(
  2809. fontWeight:
  2810. FlutterFlowTheme.of(context)
  2811. .titleSmall
  2812. .fontWeight,
  2813. fontStyle:
  2814. FlutterFlowTheme.of(context)
  2815. .titleSmall
  2816. .fontStyle,
  2817. ),
  2818. color: Colors.white,
  2819. letterSpacing: 0.0,
  2820. fontWeight: FlutterFlowTheme.of(context)
  2821. .titleSmall
  2822. .fontWeight,
  2823. fontStyle: FlutterFlowTheme.of(context)
  2824. .titleSmall
  2825. .fontStyle,
  2826. ),
  2827. elevation: 0.0,
  2828. borderRadius: BorderRadius.circular(8.0),
  2829. ),
  2830. ),
  2831. ),
  2832. if (_model.createLogoUrl != null &&
  2833. _model.createLogoUrl != '')
  2834. ClipRRect(
  2835. borderRadius: BorderRadius.circular(8.0),
  2836. child: Image.network(
  2837. _model.createLogoUrl!,
  2838. width: 80.0,
  2839. height: 80.0,
  2840. fit: BoxFit.contain,
  2841. ),
  2842. ),
  2843. ],
  2844. ),
  2845. Row(
  2846. mainAxisSize: MainAxisSize.max,
  2847. children: [
  2848. if (_model.createFotosFids.length < 5)
  2849. Align(
  2850. alignment: AlignmentDirectional(-1.0, 0.0),
  2851. child: FFButtonWidget(
  2852. onPressed: () async {
  2853. var confirmDialogResponse =
  2854. await showDialog<bool>(
  2855. context: context,
  2856. builder: (alertDialogContext) {
  2857. return AlertDialog(
  2858. title: Text(
  2859. 'Waar komen de foto\'s vandaan?'),
  2860. actions: [
  2861. TextButton(
  2862. onPressed: () =>
  2863. Navigator.pop(
  2864. alertDialogContext,
  2865. false),
  2866. child: Text('Mobiel'),
  2867. ),
  2868. TextButton(
  2869. onPressed: () =>
  2870. Navigator.pop(
  2871. alertDialogContext,
  2872. true),
  2873. child: Text('Fotoboek'),
  2874. ),
  2875. ],
  2876. );
  2877. },
  2878. ) ??
  2879. false;
  2880. if (confirmDialogResponse) {
  2881. await showModalBottomSheet(
  2882. isScrollControlled: true,
  2883. backgroundColor: Colors.transparent,
  2884. enableDrag: false,
  2885. context: context,
  2886. builder: (context) {
  2887. return GestureDetector(
  2888. onTap: () {
  2889. FocusScope.of(context).unfocus();
  2890. FocusManager.instance.primaryFocus
  2891. ?.unfocus();
  2892. },
  2893. child: Padding(
  2894. padding: MediaQuery.viewInsetsOf(
  2895. context),
  2896. child: Container(
  2897. height:
  2898. MediaQuery.sizeOf(context)
  2899. .height *
  2900. 0.85,
  2901. child:
  2902. FotoboekGridComponentWidget(
  2903. bijKeuze: (fid, url) async {
  2904. _model.addToCreateFotosFids(
  2905. fid);
  2906. _model.addToCreateFotosUrls(
  2907. url);
  2908. safeSetState(() {});
  2909. },
  2910. ),
  2911. ),
  2912. ),
  2913. );
  2914. },
  2915. ).then((value) => safeSetState(() {}));
  2916. } else {
  2917. final selectedMedia =
  2918. await selectMediaWithSourceBottomSheet(
  2919. context: context,
  2920. allowPhoto: true,
  2921. );
  2922. if (selectedMedia != null &&
  2923. selectedMedia.every((m) =>
  2924. validateFileFormat(
  2925. m.storagePath, context))) {
  2926. safeSetState(() => _model
  2927. .isDataUploading_uploadDataFotosEvent =
  2928. true);
  2929. var selectedUploadedFiles =
  2930. <FFUploadedFile>[];
  2931. try {
  2932. selectedUploadedFiles = selectedMedia
  2933. .map((m) => FFUploadedFile(
  2934. name: m.storagePath
  2935. .split('/')
  2936. .last,
  2937. bytes: m.bytes,
  2938. height:
  2939. m.dimensions?.height,
  2940. width: m.dimensions?.width,
  2941. blurHash: m.blurHash,
  2942. originalFilename:
  2943. m.originalFilename,
  2944. ))
  2945. .toList();
  2946. } finally {
  2947. _model.isDataUploading_uploadDataFotosEvent =
  2948. false;
  2949. }
  2950. if (selectedUploadedFiles.length ==
  2951. selectedMedia.length) {
  2952. safeSetState(() {
  2953. _model.uploadedLocalFile_uploadDataFotosEvent =
  2954. selectedUploadedFiles.first;
  2955. });
  2956. } else {
  2957. safeSetState(() {});
  2958. return;
  2959. }
  2960. }
  2961. _model.fotoEvenementuploadResult =
  2962. await actions.bestandUpload(
  2963. _model
  2964. .uploadedLocalFile_uploadDataFotosEvent,
  2965. '/en/flutterdrup/bestand_upload/upload.json',
  2966. FFAppState().userSessionname,
  2967. FFAppState().userSessionid,
  2968. FFAppState().userToken,
  2969. );
  2970. if (getJsonField(
  2971. _model.fotoEvenementuploadResult,
  2972. r'''$.success''',
  2973. )) {
  2974. _model
  2975. .addToCreateFotosFids(getJsonField(
  2976. _model.fotoEvenementuploadResult,
  2977. r'''$.fid''',
  2978. ).toString());
  2979. _model
  2980. .addToCreateFotosUrls(getJsonField(
  2981. _model.fotoEvenementuploadResult,
  2982. r'''$.url''',
  2983. ).toString());
  2984. safeSetState(() {});
  2985. } else {
  2986. ScaffoldMessenger.of(context)
  2987. .showSnackBar(
  2988. SnackBar(
  2989. content: Text(
  2990. getJsonField(
  2991. _model
  2992. .fotoEvenementuploadResult,
  2993. r'''$.error''',
  2994. ).toString(),
  2995. style: TextStyle(
  2996. color:
  2997. FlutterFlowTheme.of(context)
  2998. .primaryText,
  2999. ),
  3000. ),
  3001. duration:
  3002. Duration(milliseconds: 4000),
  3003. backgroundColor:
  3004. FlutterFlowTheme.of(context)
  3005. .secondary,
  3006. ),
  3007. );
  3008. }
  3009. }
  3010. safeSetState(() {});
  3011. },
  3012. text: FFLocalizations.of(context).getText(
  3013. 'hqwm9set' /* Foto's kiezen */,
  3014. ),
  3015. options: FFButtonOptions(
  3016. height: 40.0,
  3017. padding: EdgeInsetsDirectional.fromSTEB(
  3018. 16.0, 0.0, 16.0, 0.0),
  3019. iconPadding: EdgeInsetsDirectional.fromSTEB(
  3020. 0.0, 0.0, 0.0, 0.0),
  3021. color:
  3022. FlutterFlowTheme.of(context).secondary,
  3023. textStyle: FlutterFlowTheme.of(context)
  3024. .titleSmall
  3025. .override(
  3026. font: GoogleFonts.roboto(
  3027. fontWeight:
  3028. FlutterFlowTheme.of(context)
  3029. .titleSmall
  3030. .fontWeight,
  3031. fontStyle:
  3032. FlutterFlowTheme.of(context)
  3033. .titleSmall
  3034. .fontStyle,
  3035. ),
  3036. color: Colors.white,
  3037. letterSpacing: 0.0,
  3038. fontWeight:
  3039. FlutterFlowTheme.of(context)
  3040. .titleSmall
  3041. .fontWeight,
  3042. fontStyle:
  3043. FlutterFlowTheme.of(context)
  3044. .titleSmall
  3045. .fontStyle,
  3046. ),
  3047. elevation: 0.0,
  3048. borderRadius: BorderRadius.circular(8.0),
  3049. ),
  3050. ),
  3051. ),
  3052. if (_model.createFotosUrls.length > 0)
  3053. Builder(
  3054. builder: (context) {
  3055. final fotoItem =
  3056. _model.createFotosUrls.toList();
  3057. _model.debugGeneratorVariables[
  3058. 'fotoItem${fotoItem.length > 100 ? ' (first 100)' : ''}'] =
  3059. debugSerializeParam(
  3060. fotoItem.take(100),
  3061. ParamType.String,
  3062. isList: true,
  3063. link:
  3064. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  3065. name: 'String',
  3066. nullable: false,
  3067. );
  3068. debugLogWidgetClass(_model);
  3069. return Wrap(
  3070. spacing: 8.0,
  3071. runSpacing: 8.0,
  3072. alignment: WrapAlignment.start,
  3073. crossAxisAlignment:
  3074. WrapCrossAlignment.start,
  3075. direction: Axis.horizontal,
  3076. runAlignment: WrapAlignment.start,
  3077. verticalDirection: VerticalDirection.down,
  3078. clipBehavior: Clip.none,
  3079. children: List.generate(fotoItem.length,
  3080. (fotoItemIndex) {
  3081. final fotoItemItem =
  3082. fotoItem[fotoItemIndex];
  3083. return ClipRRect(
  3084. borderRadius:
  3085. BorderRadius.circular(8.0),
  3086. child: Image.network(
  3087. fotoItemItem,
  3088. width: 80.0,
  3089. height: 80.0,
  3090. fit: BoxFit.cover,
  3091. ),
  3092. );
  3093. }),
  3094. );
  3095. },
  3096. ),
  3097. ],
  3098. ),
  3099. ],
  3100. ),
  3101. ),
  3102. if (_model.createHorecagelegenheidNid != null &&
  3103. _model.createHorecagelegenheidNid != '')
  3104. FFButtonWidget(
  3105. onPressed: () async {
  3106. _model.createResult = await actions.evenementCreate(
  3107. FFAppState().userSessionname,
  3108. FFAppState().userSessionid,
  3109. FFAppState().userToken,
  3110. _model.createHorecagelegenheidNid!,
  3111. _model.textFieldTitelTextController.text,
  3112. dateTimeFormat(
  3113. "yyyy-MM-dd HH:mm:ss",
  3114. _model.datePicked1,
  3115. locale: FFLocalizations.of(context).languageCode,
  3116. ),
  3117. dateTimeFormat(
  3118. "yyyy-MM-dd HH:mm:ss",
  3119. _model.datePicked2,
  3120. locale: FFLocalizations.of(context).languageCode,
  3121. ),
  3122. _model.textFieldOmschrijvingTextController.text,
  3123. _model.createEntreeTid,
  3124. _model.textFieldEntreeprijsTextController.text,
  3125. _model.textFieldToelichtingEntreeTextController.text,
  3126. _model.textFieldTicketsURLTextController.text,
  3127. _model.textFieldWebsiteURLTextController.text,
  3128. _model.createCategorieTids.toList(),
  3129. _model.createLogoFid,
  3130. _model.createFotosFids.toList(),
  3131. );
  3132. if (getJsonField(
  3133. _model.createResult,
  3134. r'''$.success''',
  3135. )) {
  3136. ScaffoldMessenger.of(context).showSnackBar(
  3137. SnackBar(
  3138. content: Text(
  3139. 'Je evenement is geplaatst.',
  3140. style: TextStyle(
  3141. color:
  3142. FlutterFlowTheme.of(context).primaryText,
  3143. ),
  3144. ),
  3145. duration: Duration(milliseconds: 5000),
  3146. backgroundColor:
  3147. FlutterFlowTheme.of(context).secondary,
  3148. ),
  3149. );
  3150. context.safePop();
  3151. } else {
  3152. ScaffoldMessenger.of(context).showSnackBar(
  3153. SnackBar(
  3154. content: Text(
  3155. getJsonField(
  3156. _model.createResult,
  3157. r'''$.error''',
  3158. ).toString(),
  3159. style: TextStyle(
  3160. color:
  3161. FlutterFlowTheme.of(context).primaryText,
  3162. ),
  3163. ),
  3164. duration: Duration(milliseconds: 4000),
  3165. backgroundColor:
  3166. FlutterFlowTheme.of(context).secondary,
  3167. ),
  3168. );
  3169. }
  3170. safeSetState(() {});
  3171. },
  3172. text: FFLocalizations.of(context).getText(
  3173. '9qx16tm9' /* Evenement indienen */,
  3174. ),
  3175. options: FFButtonOptions(
  3176. height: 40.0,
  3177. padding: EdgeInsetsDirectional.fromSTEB(
  3178. 16.0, 0.0, 16.0, 0.0),
  3179. iconPadding:
  3180. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  3181. color: FlutterFlowTheme.of(context).secondary,
  3182. textStyle:
  3183. FlutterFlowTheme.of(context).titleSmall.override(
  3184. font: GoogleFonts.roboto(
  3185. fontWeight: FlutterFlowTheme.of(context)
  3186. .titleSmall
  3187. .fontWeight,
  3188. fontStyle: FlutterFlowTheme.of(context)
  3189. .titleSmall
  3190. .fontStyle,
  3191. ),
  3192. color: Colors.white,
  3193. letterSpacing: 0.0,
  3194. fontWeight: FlutterFlowTheme.of(context)
  3195. .titleSmall
  3196. .fontWeight,
  3197. fontStyle: FlutterFlowTheme.of(context)
  3198. .titleSmall
  3199. .fontStyle,
  3200. ),
  3201. elevation: 0.0,
  3202. borderRadius: BorderRadius.circular(8.0),
  3203. ),
  3204. ),
  3205. ],
  3206. ),
  3207. ),
  3208. ),
  3209. ),
  3210. ),
  3211. );
  3212. }
  3213. }