uitgaansevenement_aanmaken_widget.dart 155 KB

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