uitgaansevenement_aanmaken_widget.dart 154 KB

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