uitgaansevenement_aanmaken_widget.dart 156 KB

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