stadsactiviteit_aanmaken_widget.dart 229 KB

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