stadsactiviteit_aanmaken_widget.dart 210 KB

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