stadsactiviteit_aanmaken_widget.dart 208 KB

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