uitgaansevenement_aanmaken_widget.dart 158 KB

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