stadsactiviteit_aanmaken_widget.dart 212 KB

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