stadsactiviteit_aanmaken_copy3_widget.dart 208 KB

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