stadsactiviteit_aanmaken_widget.dart 208 KB

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