stadsactiviteit_aanmaken_widget.dart 216 KB

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