stadsactiviteit_aanmaken_widget.dart 218 KB

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