uitgaansevenement_aanmaken_widget.dart 170 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095
  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 '/custom_code/actions/index.dart' as actions;
  12. import '/flutter_flow/custom_functions.dart' as functions;
  13. import 'package:flutter/foundation.dart';
  14. import 'package:flutter/material.dart';
  15. import 'package:flutter/scheduler.dart';
  16. import 'package:flutter_spinkit/flutter_spinkit.dart';
  17. import 'package:google_fonts/google_fonts.dart';
  18. import 'package:provider/provider.dart';
  19. import 'uitgaansevenement_aanmaken_model.dart';
  20. export 'uitgaansevenement_aanmaken_model.dart';
  21. class UitgaansevenementAanmakenWidget extends StatefulWidget {
  22. const UitgaansevenementAanmakenWidget({
  23. super.key,
  24. this.horecagelegenheidNid,
  25. });
  26. final String? horecagelegenheidNid;
  27. static String routeName = 'uitgaansevenementAanmaken';
  28. static String routePath = '/uitgaansevenementAanmaken';
  29. @override
  30. State<UitgaansevenementAanmakenWidget> createState() =>
  31. _UitgaansevenementAanmakenWidgetState();
  32. }
  33. class _UitgaansevenementAanmakenWidgetState
  34. extends State<UitgaansevenementAanmakenWidget> with RouteAware {
  35. late UitgaansevenementAanmakenModel _model;
  36. final scaffoldKey = GlobalKey<ScaffoldState>();
  37. @override
  38. void initState() {
  39. super.initState();
  40. _model = createModel(context, () => UitgaansevenementAanmakenModel());
  41. // On page load action.
  42. SchedulerBinding.instance.addPostFrameCallback((_) async {
  43. _model.mijnHorecaResp = await MijnHorecagelegenhedenCall.call(
  44. sessionName: FFAppState().userSessionname,
  45. sessid: FFAppState().userSessionid,
  46. );
  47. _model.createHorecagelegenheidNid = functions.horecaVoorselectie(
  48. (_model.mijnHorecaResp?.jsonBody ?? ''),
  49. widget!.horecagelegenheidNid);
  50. _model.createEntreeTid =
  51. functions.kloonTekst(FFAppState().kloonBron, 'entree_tid');
  52. _model.createLogoFid =
  53. functions.kloonTekst(FFAppState().kloonBron, 'logo_fid');
  54. _model.createCategorieTids = functions
  55. .kloonLijst(FFAppState().kloonBron, 'categorie_tids')
  56. .toList()
  57. .cast<String>();
  58. _model.createFotosFids = functions
  59. .kloonLijst(FFAppState().kloonBron, 'fotos_fids')
  60. .toList()
  61. .cast<String>();
  62. _model.createLogoUrl =
  63. functions.kloonBeeld(FFAppState().kloonBron, 'logo_url');
  64. _model.createFotosUrls = functions
  65. .kloonBeelden(FFAppState().kloonBron, 'fotos_urls')
  66. .toList()
  67. .cast<String>();
  68. safeSetState(() {});
  69. });
  70. _model.textFieldTitelTextController ??= TextEditingController(
  71. text: functions.kloonTekst(FFAppState().kloonBron, 'titel'))
  72. ..addListener(() {
  73. debugLogWidgetClass(_model);
  74. });
  75. _model.textFieldTitelFocusNode ??= FocusNode();
  76. _model.textFieldOmschrijvingTextController ??= TextEditingController(
  77. text: functions.kloonTekst(FFAppState().kloonBron, 'omschrijving'))
  78. ..addListener(() {
  79. debugLogWidgetClass(_model);
  80. });
  81. _model.textFieldOmschrijvingFocusNode ??= FocusNode();
  82. _model.textFieldDatumStartTextController ??= TextEditingController()
  83. ..addListener(() {
  84. debugLogWidgetClass(_model);
  85. });
  86. _model.textFieldDatumStartFocusNode ??= FocusNode();
  87. _model.textFieldDatumEindTextController ??= TextEditingController()
  88. ..addListener(() {
  89. debugLogWidgetClass(_model);
  90. });
  91. _model.textFieldDatumEindFocusNode ??= FocusNode();
  92. _model.textFieldWebsiteURLTextController ??= TextEditingController(
  93. text: functions.kloonTekst(FFAppState().kloonBron, 'website_url'))
  94. ..addListener(() {
  95. debugLogWidgetClass(_model);
  96. });
  97. _model.textFieldWebsiteURLFocusNode ??= FocusNode();
  98. _model.textFieldTicketsURLTextController ??= TextEditingController(
  99. text: functions.kloonTekst(FFAppState().kloonBron, 'tickets_url'))
  100. ..addListener(() {
  101. debugLogWidgetClass(_model);
  102. });
  103. _model.textFieldTicketsURLFocusNode ??= FocusNode();
  104. _model.textFieldToelichtingEntreeTextController ??= TextEditingController(
  105. text:
  106. functions.kloonTekst(FFAppState().kloonBron, 'toelichting_entree'))
  107. ..addListener(() {
  108. debugLogWidgetClass(_model);
  109. });
  110. _model.textFieldToelichtingEntreeFocusNode ??= FocusNode();
  111. _model.textFieldEntreeprijsTextController ??= TextEditingController(
  112. text: functions.kloonTekst(FFAppState().kloonBron, 'entree_prijs'))
  113. ..addListener(() {
  114. debugLogWidgetClass(_model);
  115. });
  116. _model.textFieldEntreeprijsFocusNode ??= FocusNode();
  117. }
  118. @override
  119. void dispose() {
  120. routeObserver.unsubscribe(this);
  121. _model.dispose();
  122. super.dispose();
  123. }
  124. @override
  125. void didUpdateWidget(UitgaansevenementAanmakenWidget oldWidget) {
  126. super.didUpdateWidget(oldWidget);
  127. _model.widget = widget;
  128. }
  129. @override
  130. void didChangeDependencies() {
  131. super.didChangeDependencies();
  132. final route = DebugModalRoute.of(context);
  133. if (route != null) {
  134. routeObserver.subscribe(this, route);
  135. }
  136. debugLogGlobalProperty(context);
  137. }
  138. @override
  139. void didPopNext() {
  140. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  141. setState(() => _model.isRouteVisible = true);
  142. debugLogWidgetClass(_model);
  143. }
  144. }
  145. @override
  146. void didPush() {
  147. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  148. setState(() => _model.isRouteVisible = true);
  149. debugLogWidgetClass(_model);
  150. }
  151. }
  152. @override
  153. void didPop() {
  154. _model.isRouteVisible = false;
  155. }
  156. @override
  157. void didPushNext() {
  158. _model.isRouteVisible = false;
  159. }
  160. @override
  161. Widget build(BuildContext context) {
  162. DebugFlutterFlowModelContext.maybeOf(context)
  163. ?.parentModelCallback
  164. ?.call(_model);
  165. context.watch<FFAppState>();
  166. return GestureDetector(
  167. onTap: () {
  168. FocusScope.of(context).unfocus();
  169. FocusManager.instance.primaryFocus?.unfocus();
  170. },
  171. child: Scaffold(
  172. key: scaffoldKey,
  173. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  174. drawer: Drawer(
  175. elevation: 16.0,
  176. child: wrapWithModel(
  177. model: _model.drawerComponentModel,
  178. updateCallback: () => safeSetState(() {}),
  179. child: Builder(builder: (_) {
  180. return DebugFlutterFlowModelContext(
  181. rootModel: _model.rootModel,
  182. child: DrawerComponentWidget(),
  183. );
  184. }),
  185. ),
  186. ),
  187. appBar: PreferredSize(
  188. preferredSize: Size.fromHeight(80.0),
  189. child: AppBar(
  190. backgroundColor: FlutterFlowTheme.of(context).primaryText,
  191. automaticallyImplyLeading: false,
  192. actions: [],
  193. flexibleSpace: FlexibleSpaceBar(
  194. background: wrapWithModel(
  195. model: _model.headerButtonsComponentModel,
  196. updateCallback: () => safeSetState(() {}),
  197. child: Builder(builder: (_) {
  198. return DebugFlutterFlowModelContext(
  199. rootModel: _model.rootModel,
  200. child: HeaderButtonsComponentWidget(
  201. showBackButton: true,
  202. ),
  203. );
  204. }),
  205. ),
  206. centerTitle: true,
  207. expandedTitleScale: 1.0,
  208. ),
  209. bottom: PreferredSize(
  210. preferredSize: Size.fromHeight(70.0),
  211. child: Container(),
  212. ),
  213. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  214. elevation: 2.0,
  215. ),
  216. ),
  217. body: SafeArea(
  218. top: true,
  219. child: Padding(
  220. padding: EdgeInsets.all(16.0),
  221. child: SingleChildScrollView(
  222. child: Column(
  223. mainAxisSize: MainAxisSize.max,
  224. children: [
  225. Align(
  226. alignment: AlignmentDirectional(-1.0, 0.0),
  227. child: Padding(
  228. padding: EdgeInsets.all(16.0),
  229. child: Text(
  230. FFLocalizations.of(context).getText(
  231. 'vkjvzuqz' /* Meld hier een evenement aan va... */,
  232. ),
  233. style: FlutterFlowTheme.of(context).bodyMedium.override(
  234. font: GoogleFonts.roboto(
  235. fontWeight: FlutterFlowTheme.of(context)
  236. .bodyMedium
  237. .fontWeight,
  238. fontStyle: FlutterFlowTheme.of(context)
  239. .bodyMedium
  240. .fontStyle,
  241. ),
  242. letterSpacing: 0.0,
  243. fontWeight: FlutterFlowTheme.of(context)
  244. .bodyMedium
  245. .fontWeight,
  246. fontStyle: FlutterFlowTheme.of(context)
  247. .bodyMedium
  248. .fontStyle,
  249. ),
  250. ),
  251. ),
  252. ),
  253. Align(
  254. alignment: AlignmentDirectional(-1.0, 0.0),
  255. child: Padding(
  256. padding: EdgeInsets.all(16.0),
  257. child: Container(
  258. width: double.infinity,
  259. decoration: BoxDecoration(
  260. color:
  261. FlutterFlowTheme.of(context).secondaryBackground,
  262. borderRadius: BorderRadius.only(),
  263. border: Border.all(
  264. color: Color(0xFFEEEEEE),
  265. width: 3.0,
  266. ),
  267. ),
  268. child: Column(
  269. mainAxisSize: MainAxisSize.max,
  270. children: [
  271. Align(
  272. alignment: AlignmentDirectional(-1.0, 0.0),
  273. child: Text(
  274. FFLocalizations.of(context).getText(
  275. 'opgbl8g0' /* Wat */,
  276. ),
  277. style: FlutterFlowTheme.of(context)
  278. .bodyMedium
  279. .override(
  280. font: GoogleFonts.roboto(
  281. fontWeight: FontWeight.w600,
  282. fontStyle: FlutterFlowTheme.of(context)
  283. .bodyMedium
  284. .fontStyle,
  285. ),
  286. fontSize: 16.0,
  287. letterSpacing: 0.0,
  288. fontWeight: FontWeight.w600,
  289. fontStyle: FlutterFlowTheme.of(context)
  290. .bodyMedium
  291. .fontStyle,
  292. ),
  293. ),
  294. ),
  295. Align(
  296. alignment: AlignmentDirectional(-1.0, 0.0),
  297. child: Container(
  298. width: double.infinity,
  299. child: TextFormField(
  300. controller:
  301. _model.textFieldTitelTextController,
  302. focusNode: _model.textFieldTitelFocusNode,
  303. autofocus: false,
  304. enabled: true,
  305. obscureText: false,
  306. decoration: InputDecoration(
  307. isDense: true,
  308. labelText:
  309. FFLocalizations.of(context).getText(
  310. 'vc80d3lh' /* Titel * */,
  311. ),
  312. labelStyle: FlutterFlowTheme.of(context)
  313. .labelMedium
  314. .override(
  315. font: GoogleFonts.roboto(
  316. fontWeight:
  317. FlutterFlowTheme.of(context)
  318. .labelMedium
  319. .fontWeight,
  320. fontStyle:
  321. FlutterFlowTheme.of(context)
  322. .labelMedium
  323. .fontStyle,
  324. ),
  325. letterSpacing: 0.0,
  326. fontWeight:
  327. FlutterFlowTheme.of(context)
  328. .labelMedium
  329. .fontWeight,
  330. fontStyle:
  331. FlutterFlowTheme.of(context)
  332. .labelMedium
  333. .fontStyle,
  334. ),
  335. hintText:
  336. FFLocalizations.of(context).getText(
  337. 'vu6qv8cj' /* Titel evenement */,
  338. ),
  339. hintStyle: FlutterFlowTheme.of(context)
  340. .labelMedium
  341. .override(
  342. font: GoogleFonts.roboto(
  343. fontWeight:
  344. FlutterFlowTheme.of(context)
  345. .labelMedium
  346. .fontWeight,
  347. fontStyle:
  348. FlutterFlowTheme.of(context)
  349. .labelMedium
  350. .fontStyle,
  351. ),
  352. letterSpacing: 0.0,
  353. fontWeight:
  354. FlutterFlowTheme.of(context)
  355. .labelMedium
  356. .fontWeight,
  357. fontStyle:
  358. FlutterFlowTheme.of(context)
  359. .labelMedium
  360. .fontStyle,
  361. ),
  362. enabledBorder: OutlineInputBorder(
  363. borderSide: BorderSide(
  364. color: Color(0x00000000),
  365. width: 1.0,
  366. ),
  367. borderRadius: BorderRadius.circular(0.0),
  368. ),
  369. focusedBorder: OutlineInputBorder(
  370. borderSide: BorderSide(
  371. color: Color(0x00000000),
  372. width: 1.0,
  373. ),
  374. borderRadius: BorderRadius.circular(0.0),
  375. ),
  376. errorBorder: OutlineInputBorder(
  377. borderSide: BorderSide(
  378. color:
  379. FlutterFlowTheme.of(context).error,
  380. width: 1.0,
  381. ),
  382. borderRadius: BorderRadius.circular(0.0),
  383. ),
  384. focusedErrorBorder: OutlineInputBorder(
  385. borderSide: BorderSide(
  386. color:
  387. FlutterFlowTheme.of(context).error,
  388. width: 1.0,
  389. ),
  390. borderRadius: BorderRadius.circular(0.0),
  391. ),
  392. filled: true,
  393. fillColor: FlutterFlowTheme.of(context)
  394. .primaryBackground,
  395. ),
  396. style: FlutterFlowTheme.of(context)
  397. .bodyMedium
  398. .override(
  399. font: GoogleFonts.roboto(
  400. fontWeight:
  401. FlutterFlowTheme.of(context)
  402. .bodyMedium
  403. .fontWeight,
  404. fontStyle:
  405. FlutterFlowTheme.of(context)
  406. .bodyMedium
  407. .fontStyle,
  408. ),
  409. letterSpacing: 0.0,
  410. fontWeight: FlutterFlowTheme.of(context)
  411. .bodyMedium
  412. .fontWeight,
  413. fontStyle: FlutterFlowTheme.of(context)
  414. .bodyMedium
  415. .fontStyle,
  416. ),
  417. cursorColor:
  418. FlutterFlowTheme.of(context).primaryText,
  419. enableInteractiveSelection: true,
  420. validator: _model
  421. .textFieldTitelTextControllerValidator
  422. .asValidator(context),
  423. ),
  424. ),
  425. ),
  426. Container(
  427. width: double.infinity,
  428. child: TextFormField(
  429. controller:
  430. _model.textFieldOmschrijvingTextController,
  431. focusNode:
  432. _model.textFieldOmschrijvingFocusNode,
  433. autofocus: false,
  434. enabled: true,
  435. obscureText: false,
  436. decoration: InputDecoration(
  437. isDense: true,
  438. labelText:
  439. FFLocalizations.of(context).getText(
  440. 'd7zhpzuo' /* Omschrijving */,
  441. ),
  442. labelStyle: FlutterFlowTheme.of(context)
  443. .labelMedium
  444. .override(
  445. font: GoogleFonts.roboto(
  446. fontWeight:
  447. FlutterFlowTheme.of(context)
  448. .labelMedium
  449. .fontWeight,
  450. fontStyle:
  451. FlutterFlowTheme.of(context)
  452. .labelMedium
  453. .fontStyle,
  454. ),
  455. letterSpacing: 0.0,
  456. fontWeight: FlutterFlowTheme.of(context)
  457. .labelMedium
  458. .fontWeight,
  459. fontStyle: FlutterFlowTheme.of(context)
  460. .labelMedium
  461. .fontStyle,
  462. ),
  463. hintText: FFLocalizations.of(context).getText(
  464. '1gf3e9v1' /* Omschrijving evenement */,
  465. ),
  466. hintStyle: FlutterFlowTheme.of(context)
  467. .labelMedium
  468. .override(
  469. font: GoogleFonts.roboto(
  470. fontWeight:
  471. FlutterFlowTheme.of(context)
  472. .labelMedium
  473. .fontWeight,
  474. fontStyle:
  475. FlutterFlowTheme.of(context)
  476. .labelMedium
  477. .fontStyle,
  478. ),
  479. letterSpacing: 0.0,
  480. fontWeight: FlutterFlowTheme.of(context)
  481. .labelMedium
  482. .fontWeight,
  483. fontStyle: FlutterFlowTheme.of(context)
  484. .labelMedium
  485. .fontStyle,
  486. ),
  487. enabledBorder: OutlineInputBorder(
  488. borderSide: BorderSide(
  489. color: Color(0x00000000),
  490. width: 1.0,
  491. ),
  492. borderRadius: BorderRadius.circular(0.0),
  493. ),
  494. focusedBorder: OutlineInputBorder(
  495. borderSide: BorderSide(
  496. color: Color(0x00000000),
  497. width: 1.0,
  498. ),
  499. borderRadius: BorderRadius.circular(0.0),
  500. ),
  501. errorBorder: OutlineInputBorder(
  502. borderSide: BorderSide(
  503. color: FlutterFlowTheme.of(context).error,
  504. width: 1.0,
  505. ),
  506. borderRadius: BorderRadius.circular(0.0),
  507. ),
  508. focusedErrorBorder: OutlineInputBorder(
  509. borderSide: BorderSide(
  510. color: FlutterFlowTheme.of(context).error,
  511. width: 1.0,
  512. ),
  513. borderRadius: BorderRadius.circular(0.0),
  514. ),
  515. filled: true,
  516. fillColor: FlutterFlowTheme.of(context)
  517. .primaryBackground,
  518. ),
  519. style: FlutterFlowTheme.of(context)
  520. .bodyMedium
  521. .override(
  522. font: GoogleFonts.roboto(
  523. fontWeight: FlutterFlowTheme.of(context)
  524. .bodyMedium
  525. .fontWeight,
  526. fontStyle: FlutterFlowTheme.of(context)
  527. .bodyMedium
  528. .fontStyle,
  529. ),
  530. letterSpacing: 0.0,
  531. fontWeight: FlutterFlowTheme.of(context)
  532. .bodyMedium
  533. .fontWeight,
  534. fontStyle: FlutterFlowTheme.of(context)
  535. .bodyMedium
  536. .fontStyle,
  537. ),
  538. maxLines: 5,
  539. cursorColor:
  540. FlutterFlowTheme.of(context).primaryText,
  541. enableInteractiveSelection: true,
  542. validator: _model
  543. .textFieldOmschrijvingTextControllerValidator
  544. .asValidator(context),
  545. ),
  546. ),
  547. Align(
  548. alignment: AlignmentDirectional(-1.0, 0.0),
  549. child: Text(
  550. FFLocalizations.of(context).getText(
  551. 'rqx6m3yf' /* Je horecagelegenheid */,
  552. ),
  553. style: FlutterFlowTheme.of(context)
  554. .bodyMedium
  555. .override(
  556. font: GoogleFonts.roboto(
  557. fontWeight: FlutterFlowTheme.of(context)
  558. .bodyMedium
  559. .fontWeight,
  560. fontStyle: FlutterFlowTheme.of(context)
  561. .bodyMedium
  562. .fontStyle,
  563. ),
  564. letterSpacing: 0.0,
  565. fontWeight: FlutterFlowTheme.of(context)
  566. .bodyMedium
  567. .fontWeight,
  568. fontStyle: FlutterFlowTheme.of(context)
  569. .bodyMedium
  570. .fontStyle,
  571. ),
  572. ),
  573. ),
  574. Align(
  575. alignment: AlignmentDirectional(-1.0, 0.0),
  576. child: Text(
  577. FFLocalizations.of(context).getText(
  578. 'fbkrt89w' /* Kies de zaak waar het evenemen... */,
  579. ),
  580. style: FlutterFlowTheme.of(context)
  581. .bodyMedium
  582. .override(
  583. font: GoogleFonts.roboto(
  584. fontWeight: FlutterFlowTheme.of(context)
  585. .bodyMedium
  586. .fontWeight,
  587. fontStyle: FlutterFlowTheme.of(context)
  588. .bodyMedium
  589. .fontStyle,
  590. ),
  591. color: FlutterFlowTheme.of(context)
  592. .secondaryText,
  593. fontSize: 12.0,
  594. letterSpacing: 0.0,
  595. fontWeight: FlutterFlowTheme.of(context)
  596. .bodyMedium
  597. .fontWeight,
  598. fontStyle: FlutterFlowTheme.of(context)
  599. .bodyMedium
  600. .fontStyle,
  601. ),
  602. ),
  603. ),
  604. Align(
  605. alignment: AlignmentDirectional(-1.0, 0.0),
  606. child: InkWell(
  607. splashColor: Colors.transparent,
  608. focusColor: Colors.transparent,
  609. hoverColor: Colors.transparent,
  610. highlightColor: Colors.transparent,
  611. onTap: () async {
  612. await launchURL(
  613. 'https://uitgaanskrant.com/nl/ondernemers');
  614. },
  615. child: Text(
  616. FFLocalizations.of(context).getText(
  617. 'zkc8ido7' /* Nog geen zaak aangemeld? Dat d... */,
  618. ),
  619. style: FlutterFlowTheme.of(context)
  620. .bodyMedium
  621. .override(
  622. font: GoogleFonts.roboto(
  623. fontWeight:
  624. FlutterFlowTheme.of(context)
  625. .bodyMedium
  626. .fontWeight,
  627. fontStyle:
  628. FlutterFlowTheme.of(context)
  629. .bodyMedium
  630. .fontStyle,
  631. ),
  632. color: FlutterFlowTheme.of(context)
  633. .secondary,
  634. fontSize: 12.0,
  635. letterSpacing: 0.0,
  636. fontWeight: FlutterFlowTheme.of(context)
  637. .bodyMedium
  638. .fontWeight,
  639. fontStyle: FlutterFlowTheme.of(context)
  640. .bodyMedium
  641. .fontStyle,
  642. decoration: TextDecoration.underline,
  643. ),
  644. ),
  645. ),
  646. ),
  647. Align(
  648. alignment: AlignmentDirectional(-1.0, 0.0),
  649. child: FutureBuilder<ApiCallResponse>(
  650. future: MijnHorecagelegenhedenCall.call(
  651. sessionName: FFAppState().userSessionname,
  652. sessid: FFAppState().userSessionid,
  653. ),
  654. builder: (context, snapshot) {
  655. // Customize what your widget looks like when it's loading.
  656. if (!snapshot.hasData) {
  657. return Center(
  658. child: SizedBox(
  659. width: 80.0,
  660. height: 80.0,
  661. child: SpinKitFadingCircle(
  662. color: FlutterFlowTheme.of(context)
  663. .primary,
  664. size: 80.0,
  665. ),
  666. ),
  667. );
  668. }
  669. final dropDownHorecagelegenheidMijnHorecagelegenhedenResponse =
  670. snapshot.data!;
  671. _model.debugBackendQueries[
  672. 'MijnHorecagelegenhedenCall_statusCode_DropDown_ldnx9nnq'] =
  673. debugSerializeParam(
  674. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  675. .statusCode,
  676. ParamType.int,
  677. link:
  678. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  679. name: 'int',
  680. nullable: false,
  681. );
  682. _model.debugBackendQueries[
  683. 'MijnHorecagelegenhedenCall_responseBody_DropDown_ldnx9nnq'] =
  684. debugSerializeParam(
  685. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  686. .bodyText,
  687. ParamType.String,
  688. link:
  689. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  690. name: 'String',
  691. nullable: false,
  692. );
  693. debugLogWidgetClass(_model);
  694. return FlutterFlowDropDown<String>(
  695. controller: _model
  696. .dropDownHorecagelegenheidValueController ??=
  697. FormFieldController<String>(
  698. _model.dropDownHorecagelegenheidValue ??=
  699. functions.horecaVoorselectie(
  700. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  701. .jsonBody,
  702. widget!.horecagelegenheidNid),
  703. ),
  704. options: List<String>.from((getJsonField(
  705. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  706. .jsonBody,
  707. r'''$[:].nid''',
  708. true,
  709. ) as List?)!
  710. .map<String>((e) => e.toString())
  711. .toList()
  712. .cast<String>()),
  713. optionLabels: (getJsonField(
  714. dropDownHorecagelegenheidMijnHorecagelegenhedenResponse
  715. .jsonBody,
  716. r'''$[:].titel''',
  717. true,
  718. ) as List?)!
  719. .map<String>((e) => e.toString())
  720. .toList()
  721. .cast<String>(),
  722. onChanged: (val) async {
  723. safeSetState(() => _model
  724. .dropDownHorecagelegenheidValue =
  725. val);
  726. _model.createHorecagelegenheidNid =
  727. _model.dropDownHorecagelegenheidValue;
  728. safeSetState(() {});
  729. },
  730. width: double.infinity,
  731. height: 40.0,
  732. searchHintTextStyle:
  733. FlutterFlowTheme.of(context)
  734. .labelMedium
  735. .override(
  736. font: GoogleFonts.roboto(
  737. fontWeight:
  738. FlutterFlowTheme.of(context)
  739. .labelMedium
  740. .fontWeight,
  741. fontStyle:
  742. FlutterFlowTheme.of(context)
  743. .labelMedium
  744. .fontStyle,
  745. ),
  746. letterSpacing: 0.0,
  747. fontWeight:
  748. FlutterFlowTheme.of(context)
  749. .labelMedium
  750. .fontWeight,
  751. fontStyle:
  752. FlutterFlowTheme.of(context)
  753. .labelMedium
  754. .fontStyle,
  755. ),
  756. searchTextStyle:
  757. FlutterFlowTheme.of(context)
  758. .bodyMedium
  759. .override(
  760. font: GoogleFonts.roboto(
  761. fontWeight:
  762. FlutterFlowTheme.of(context)
  763. .bodyMedium
  764. .fontWeight,
  765. fontStyle:
  766. FlutterFlowTheme.of(context)
  767. .bodyMedium
  768. .fontStyle,
  769. ),
  770. letterSpacing: 0.0,
  771. fontWeight:
  772. FlutterFlowTheme.of(context)
  773. .bodyMedium
  774. .fontWeight,
  775. fontStyle:
  776. FlutterFlowTheme.of(context)
  777. .bodyMedium
  778. .fontStyle,
  779. ),
  780. textStyle: FlutterFlowTheme.of(context)
  781. .bodyMedium
  782. .override(
  783. font: GoogleFonts.roboto(
  784. fontWeight:
  785. FlutterFlowTheme.of(context)
  786. .bodyMedium
  787. .fontWeight,
  788. fontStyle:
  789. FlutterFlowTheme.of(context)
  790. .bodyMedium
  791. .fontStyle,
  792. ),
  793. letterSpacing: 0.0,
  794. fontWeight:
  795. FlutterFlowTheme.of(context)
  796. .bodyMedium
  797. .fontWeight,
  798. fontStyle:
  799. FlutterFlowTheme.of(context)
  800. .bodyMedium
  801. .fontStyle,
  802. ),
  803. hintText:
  804. FFLocalizations.of(context).getText(
  805. 'nhnxstvm' /* Kies je horecagelegenheid * */,
  806. ),
  807. searchHintText:
  808. FFLocalizations.of(context).getText(
  809. 'pnh9yrrk' /* Zoek... */,
  810. ),
  811. icon: Icon(
  812. Icons.keyboard_arrow_down_rounded,
  813. color: FlutterFlowTheme.of(context)
  814. .secondaryText,
  815. size: 24.0,
  816. ),
  817. fillColor: FlutterFlowTheme.of(context)
  818. .primaryBackground,
  819. elevation: 2.0,
  820. borderColor: Colors.transparent,
  821. borderWidth: 0.0,
  822. borderRadius: 8.0,
  823. margin: EdgeInsetsDirectional.fromSTEB(
  824. 12.0, 0.0, 12.0, 0.0),
  825. hidesUnderline: true,
  826. isOverButton: false,
  827. isSearchable: true,
  828. isMultiSelect: false,
  829. );
  830. },
  831. ),
  832. ),
  833. Align(
  834. alignment: AlignmentDirectional(-1.0, 0.0),
  835. child: Text(
  836. FFLocalizations.of(context).getText(
  837. 'p0xm7daj' /* Categorie evenement * */,
  838. ),
  839. style: FlutterFlowTheme.of(context)
  840. .bodyMedium
  841. .override(
  842. font: GoogleFonts.roboto(
  843. fontWeight: FlutterFlowTheme.of(context)
  844. .bodyMedium
  845. .fontWeight,
  846. fontStyle: FlutterFlowTheme.of(context)
  847. .bodyMedium
  848. .fontStyle,
  849. ),
  850. letterSpacing: 0.0,
  851. fontWeight: FlutterFlowTheme.of(context)
  852. .bodyMedium
  853. .fontWeight,
  854. fontStyle: FlutterFlowTheme.of(context)
  855. .bodyMedium
  856. .fontStyle,
  857. ),
  858. ),
  859. ),
  860. Align(
  861. alignment: AlignmentDirectional(-1.0, 0.0),
  862. child: Text(
  863. FFLocalizations.of(context).getText(
  864. 'j68hqlk7' /* Let op: de categorie bepaalt i... */,
  865. ),
  866. style: FlutterFlowTheme.of(context)
  867. .bodyMedium
  868. .override(
  869. font: GoogleFonts.roboto(
  870. fontWeight: FlutterFlowTheme.of(context)
  871. .bodyMedium
  872. .fontWeight,
  873. fontStyle: FlutterFlowTheme.of(context)
  874. .bodyMedium
  875. .fontStyle,
  876. ),
  877. color: FlutterFlowTheme.of(context)
  878. .secondaryText,
  879. fontSize: 12.0,
  880. letterSpacing: 0.0,
  881. fontWeight: FlutterFlowTheme.of(context)
  882. .bodyMedium
  883. .fontWeight,
  884. fontStyle: FlutterFlowTheme.of(context)
  885. .bodyMedium
  886. .fontStyle,
  887. ),
  888. ),
  889. ),
  890. Align(
  891. alignment: AlignmentDirectional(-1.0, 0.0),
  892. child: FutureBuilder<ApiCallResponse>(
  893. future: ProductieGroup.categorieenCall.call(
  894. sessionName: FFAppState().userSessionname,
  895. sessid: FFAppState().userSessionid,
  896. ),
  897. builder: (context, snapshot) {
  898. // Customize what your widget looks like when it's loading.
  899. if (!snapshot.hasData) {
  900. return Center(
  901. child: SizedBox(
  902. width: 80.0,
  903. height: 80.0,
  904. child: SpinKitFadingCircle(
  905. color: FlutterFlowTheme.of(context)
  906. .primary,
  907. size: 80.0,
  908. ),
  909. ),
  910. );
  911. }
  912. final dropDownCategorieenCategorieenResponse =
  913. snapshot.data!;
  914. _model.debugBackendQueries[
  915. 'ProductieGroup.categorieenCall_statusCode_DropDown_b8cbpd9v'] =
  916. debugSerializeParam(
  917. dropDownCategorieenCategorieenResponse
  918. .statusCode,
  919. ParamType.int,
  920. link:
  921. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  922. name: 'int',
  923. nullable: false,
  924. );
  925. _model.debugBackendQueries[
  926. 'ProductieGroup.categorieenCall_responseBody_DropDown_b8cbpd9v'] =
  927. debugSerializeParam(
  928. dropDownCategorieenCategorieenResponse
  929. .bodyText,
  930. ParamType.String,
  931. link:
  932. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  933. name: 'String',
  934. nullable: false,
  935. );
  936. debugLogWidgetClass(_model);
  937. return FlutterFlowDropDown<String>(
  938. multiSelectController: _model
  939. .dropDownCategorieenValueController ??=
  940. FormListFieldController<String>(
  941. _model.dropDownCategorieenValue ??=
  942. List<String>.from(
  943. functions.kloonLijst(
  944. FFAppState().kloonBron,
  945. 'categorie_tids') ??
  946. [],
  947. )),
  948. options: List<String>.from(
  949. functions.categorieSubTids(
  950. dropDownCategorieenCategorieenResponse
  951. .jsonBody)!),
  952. optionLabels: functions.categorieSubLabels(
  953. dropDownCategorieenCategorieenResponse
  954. .jsonBody)!,
  955. width: double.infinity,
  956. height: 40.0,
  957. searchHintTextStyle:
  958. FlutterFlowTheme.of(context)
  959. .labelMedium
  960. .override(
  961. font: GoogleFonts.roboto(
  962. fontWeight:
  963. FlutterFlowTheme.of(context)
  964. .labelMedium
  965. .fontWeight,
  966. fontStyle:
  967. FlutterFlowTheme.of(context)
  968. .labelMedium
  969. .fontStyle,
  970. ),
  971. letterSpacing: 0.0,
  972. fontWeight:
  973. FlutterFlowTheme.of(context)
  974. .labelMedium
  975. .fontWeight,
  976. fontStyle:
  977. FlutterFlowTheme.of(context)
  978. .labelMedium
  979. .fontStyle,
  980. ),
  981. searchTextStyle:
  982. FlutterFlowTheme.of(context)
  983. .bodyMedium
  984. .override(
  985. font: GoogleFonts.roboto(
  986. fontWeight:
  987. FlutterFlowTheme.of(context)
  988. .bodyMedium
  989. .fontWeight,
  990. fontStyle:
  991. FlutterFlowTheme.of(context)
  992. .bodyMedium
  993. .fontStyle,
  994. ),
  995. letterSpacing: 0.0,
  996. fontWeight:
  997. FlutterFlowTheme.of(context)
  998. .bodyMedium
  999. .fontWeight,
  1000. fontStyle:
  1001. FlutterFlowTheme.of(context)
  1002. .bodyMedium
  1003. .fontStyle,
  1004. ),
  1005. textStyle: FlutterFlowTheme.of(context)
  1006. .bodyMedium
  1007. .override(
  1008. font: GoogleFonts.roboto(
  1009. fontWeight:
  1010. FlutterFlowTheme.of(context)
  1011. .bodyMedium
  1012. .fontWeight,
  1013. fontStyle:
  1014. FlutterFlowTheme.of(context)
  1015. .bodyMedium
  1016. .fontStyle,
  1017. ),
  1018. letterSpacing: 0.0,
  1019. fontWeight:
  1020. FlutterFlowTheme.of(context)
  1021. .bodyMedium
  1022. .fontWeight,
  1023. fontStyle:
  1024. FlutterFlowTheme.of(context)
  1025. .bodyMedium
  1026. .fontStyle,
  1027. ),
  1028. hintText:
  1029. FFLocalizations.of(context).getText(
  1030. '2hitlrxa' /* Select... */,
  1031. ),
  1032. searchHintText:
  1033. FFLocalizations.of(context).getText(
  1034. 'qtnlg7nd' /* Search... */,
  1035. ),
  1036. icon: Icon(
  1037. Icons.keyboard_arrow_down_rounded,
  1038. color: FlutterFlowTheme.of(context)
  1039. .secondaryText,
  1040. size: 24.0,
  1041. ),
  1042. fillColor: FlutterFlowTheme.of(context)
  1043. .primaryBackground,
  1044. elevation: 2.0,
  1045. borderColor: Colors.transparent,
  1046. borderWidth: 0.0,
  1047. borderRadius: 8.0,
  1048. margin: EdgeInsetsDirectional.fromSTEB(
  1049. 12.0, 0.0, 12.0, 0.0),
  1050. hidesUnderline: true,
  1051. isOverButton: false,
  1052. isSearchable: true,
  1053. isMultiSelect: true,
  1054. onMultiSelectChanged: (val) async {
  1055. safeSetState(() => _model
  1056. .dropDownCategorieenValue = val);
  1057. _model.createCategorieTids = _model
  1058. .dropDownCategorieenValue!
  1059. .toList()
  1060. .cast<String>();
  1061. safeSetState(() {});
  1062. },
  1063. );
  1064. },
  1065. ),
  1066. ),
  1067. ],
  1068. ),
  1069. ),
  1070. ),
  1071. ),
  1072. Align(
  1073. alignment: AlignmentDirectional(-1.0, 0.0),
  1074. child: Padding(
  1075. padding: EdgeInsets.all(16.0),
  1076. child: Container(
  1077. width: double.infinity,
  1078. decoration: BoxDecoration(
  1079. color:
  1080. FlutterFlowTheme.of(context).secondaryBackground,
  1081. borderRadius: BorderRadius.only(),
  1082. border: Border.all(
  1083. color: Color(0xFFEEEEEE),
  1084. width: 3.0,
  1085. ),
  1086. ),
  1087. child: Column(
  1088. mainAxisSize: MainAxisSize.max,
  1089. children: [
  1090. Align(
  1091. alignment: AlignmentDirectional(-1.0, 0.0),
  1092. child: Text(
  1093. FFLocalizations.of(context).getText(
  1094. 'gysg1wwq' /* Wanneer */,
  1095. ),
  1096. style: FlutterFlowTheme.of(context)
  1097. .bodyMedium
  1098. .override(
  1099. font: GoogleFonts.roboto(
  1100. fontWeight: FlutterFlowTheme.of(context)
  1101. .bodyMedium
  1102. .fontWeight,
  1103. fontStyle: FlutterFlowTheme.of(context)
  1104. .bodyMedium
  1105. .fontStyle,
  1106. ),
  1107. letterSpacing: 0.0,
  1108. fontWeight: FlutterFlowTheme.of(context)
  1109. .bodyMedium
  1110. .fontWeight,
  1111. fontStyle: FlutterFlowTheme.of(context)
  1112. .bodyMedium
  1113. .fontStyle,
  1114. ),
  1115. ),
  1116. ),
  1117. Align(
  1118. alignment: AlignmentDirectional(-1.0, 0.0),
  1119. child: Text(
  1120. FFLocalizations.of(context).getText(
  1121. 'f8hii0ci' /* De begindatum is verplicht. Ei... */,
  1122. ),
  1123. style: FlutterFlowTheme.of(context)
  1124. .bodyMedium
  1125. .override(
  1126. font: GoogleFonts.roboto(
  1127. fontWeight: FlutterFlowTheme.of(context)
  1128. .bodyMedium
  1129. .fontWeight,
  1130. fontStyle: FlutterFlowTheme.of(context)
  1131. .bodyMedium
  1132. .fontStyle,
  1133. ),
  1134. color: FlutterFlowTheme.of(context)
  1135. .secondaryText,
  1136. fontSize: 12.0,
  1137. letterSpacing: 0.0,
  1138. fontWeight: FlutterFlowTheme.of(context)
  1139. .bodyMedium
  1140. .fontWeight,
  1141. fontStyle: FlutterFlowTheme.of(context)
  1142. .bodyMedium
  1143. .fontStyle,
  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 _datePicked1Date = 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? _datePicked1Time;
  1203. if (_datePicked1Date != null) {
  1204. _datePicked1Time = 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 (_datePicked1Date != null &&
  1256. _datePicked1Time != null) {
  1257. safeSetState(() {
  1258. _model.datePicked1 = DateTime(
  1259. _datePicked1Date.year,
  1260. _datePicked1Date.month,
  1261. _datePicked1Date.day,
  1262. _datePicked1Time!.hour,
  1263. _datePicked1Time.minute,
  1264. );
  1265. });
  1266. } else if (_model.datePicked1 != null) {
  1267. safeSetState(() {
  1268. _model.datePicked1 = getCurrentTimestamp;
  1269. });
  1270. }
  1271. safeSetState(() {
  1272. _model.textFieldDatumStartTextController
  1273. ?.text = dateTimeFormat(
  1274. "dd-MM-yyyy HH:mm",
  1275. _model.datePicked1,
  1276. locale: FFLocalizations.of(context)
  1277. .languageCode,
  1278. );
  1279. });
  1280. },
  1281. child: Container(
  1282. width: double.infinity,
  1283. decoration: BoxDecoration(),
  1284. child: Container(
  1285. width: double.infinity,
  1286. child: TextFormField(
  1287. controller: _model
  1288. .textFieldDatumStartTextController,
  1289. focusNode:
  1290. _model.textFieldDatumStartFocusNode,
  1291. autofocus: false,
  1292. enabled: false,
  1293. readOnly: true,
  1294. obscureText: false,
  1295. decoration: InputDecoration(
  1296. isDense: true,
  1297. labelText:
  1298. FFLocalizations.of(context).getText(
  1299. 'xceonmpt' /* Datum * */,
  1300. ),
  1301. labelStyle: FlutterFlowTheme.of(context)
  1302. .labelMedium
  1303. .override(
  1304. font: GoogleFonts.roboto(
  1305. fontWeight:
  1306. FlutterFlowTheme.of(context)
  1307. .labelMedium
  1308. .fontWeight,
  1309. fontStyle:
  1310. FlutterFlowTheme.of(context)
  1311. .labelMedium
  1312. .fontStyle,
  1313. ),
  1314. letterSpacing: 0.0,
  1315. fontWeight:
  1316. FlutterFlowTheme.of(context)
  1317. .labelMedium
  1318. .fontWeight,
  1319. fontStyle:
  1320. FlutterFlowTheme.of(context)
  1321. .labelMedium
  1322. .fontStyle,
  1323. ),
  1324. hintText:
  1325. FFLocalizations.of(context).getText(
  1326. 'nws4h1nz' /* Datum */,
  1327. ),
  1328. hintStyle: FlutterFlowTheme.of(context)
  1329. .labelMedium
  1330. .override(
  1331. font: GoogleFonts.roboto(
  1332. fontWeight:
  1333. FlutterFlowTheme.of(context)
  1334. .labelMedium
  1335. .fontWeight,
  1336. fontStyle:
  1337. FlutterFlowTheme.of(context)
  1338. .labelMedium
  1339. .fontStyle,
  1340. ),
  1341. letterSpacing: 0.0,
  1342. fontWeight:
  1343. FlutterFlowTheme.of(context)
  1344. .labelMedium
  1345. .fontWeight,
  1346. fontStyle:
  1347. FlutterFlowTheme.of(context)
  1348. .labelMedium
  1349. .fontStyle,
  1350. ),
  1351. enabledBorder: OutlineInputBorder(
  1352. borderSide: BorderSide(
  1353. color: Color(0x00000000),
  1354. width: 1.0,
  1355. ),
  1356. borderRadius:
  1357. BorderRadius.circular(0.0),
  1358. ),
  1359. focusedBorder: OutlineInputBorder(
  1360. borderSide: BorderSide(
  1361. color: Color(0x00000000),
  1362. width: 1.0,
  1363. ),
  1364. borderRadius:
  1365. BorderRadius.circular(0.0),
  1366. ),
  1367. errorBorder: OutlineInputBorder(
  1368. borderSide: BorderSide(
  1369. color: FlutterFlowTheme.of(context)
  1370. .error,
  1371. width: 1.0,
  1372. ),
  1373. borderRadius:
  1374. BorderRadius.circular(0.0),
  1375. ),
  1376. focusedErrorBorder: OutlineInputBorder(
  1377. borderSide: BorderSide(
  1378. color: FlutterFlowTheme.of(context)
  1379. .error,
  1380. width: 1.0,
  1381. ),
  1382. borderRadius:
  1383. BorderRadius.circular(0.0),
  1384. ),
  1385. filled: true,
  1386. fillColor: FlutterFlowTheme.of(context)
  1387. .primaryBackground,
  1388. ),
  1389. style: FlutterFlowTheme.of(context)
  1390. .bodyMedium
  1391. .override(
  1392. font: GoogleFonts.roboto(
  1393. fontWeight:
  1394. FlutterFlowTheme.of(context)
  1395. .bodyMedium
  1396. .fontWeight,
  1397. fontStyle:
  1398. FlutterFlowTheme.of(context)
  1399. .bodyMedium
  1400. .fontStyle,
  1401. ),
  1402. letterSpacing: 0.0,
  1403. fontWeight:
  1404. FlutterFlowTheme.of(context)
  1405. .bodyMedium
  1406. .fontWeight,
  1407. fontStyle:
  1408. FlutterFlowTheme.of(context)
  1409. .bodyMedium
  1410. .fontStyle,
  1411. ),
  1412. cursorColor: FlutterFlowTheme.of(context)
  1413. .primaryText,
  1414. enableInteractiveSelection: true,
  1415. validator: _model
  1416. .textFieldDatumStartTextControllerValidator
  1417. .asValidator(context),
  1418. ),
  1419. ),
  1420. ),
  1421. ),
  1422. InkWell(
  1423. splashColor: Colors.transparent,
  1424. focusColor: Colors.transparent,
  1425. hoverColor: Colors.transparent,
  1426. highlightColor: Colors.transparent,
  1427. onTap: () async {
  1428. final _datePicked2Date = await showDatePicker(
  1429. context: context,
  1430. initialDate: getCurrentTimestamp,
  1431. firstDate: getCurrentTimestamp,
  1432. lastDate: DateTime(2050),
  1433. builder: (context, child) {
  1434. return wrapInMaterialDatePickerTheme(
  1435. context,
  1436. child!,
  1437. headerBackgroundColor:
  1438. FlutterFlowTheme.of(context).primary,
  1439. headerForegroundColor:
  1440. FlutterFlowTheme.of(context).info,
  1441. headerTextStyle: FlutterFlowTheme.of(
  1442. context)
  1443. .headlineLarge
  1444. .override(
  1445. font: GoogleFonts.notoSerif(
  1446. fontWeight: FontWeight.w600,
  1447. fontStyle:
  1448. FlutterFlowTheme.of(context)
  1449. .headlineLarge
  1450. .fontStyle,
  1451. ),
  1452. fontSize: 32.0,
  1453. letterSpacing: 0.0,
  1454. fontWeight: FontWeight.w600,
  1455. fontStyle:
  1456. FlutterFlowTheme.of(context)
  1457. .headlineLarge
  1458. .fontStyle,
  1459. ),
  1460. pickerBackgroundColor:
  1461. FlutterFlowTheme.of(context)
  1462. .secondaryBackground,
  1463. pickerForegroundColor:
  1464. FlutterFlowTheme.of(context)
  1465. .primaryText,
  1466. selectedDateTimeBackgroundColor:
  1467. FlutterFlowTheme.of(context).primary,
  1468. selectedDateTimeForegroundColor:
  1469. FlutterFlowTheme.of(context).info,
  1470. actionButtonForegroundColor:
  1471. FlutterFlowTheme.of(context)
  1472. .primaryText,
  1473. iconSize: 24.0,
  1474. );
  1475. },
  1476. );
  1477. TimeOfDay? _datePicked2Time;
  1478. if (_datePicked2Date != null) {
  1479. _datePicked2Time = await showTimePicker(
  1480. context: context,
  1481. initialTime: TimeOfDay.fromDateTime(
  1482. getCurrentTimestamp),
  1483. builder: (context, child) {
  1484. return wrapInMaterialTimePickerTheme(
  1485. context,
  1486. child!,
  1487. headerBackgroundColor:
  1488. FlutterFlowTheme.of(context)
  1489. .primary,
  1490. headerForegroundColor:
  1491. FlutterFlowTheme.of(context).info,
  1492. headerTextStyle: FlutterFlowTheme.of(
  1493. context)
  1494. .headlineLarge
  1495. .override(
  1496. font: GoogleFonts.notoSerif(
  1497. fontWeight: FontWeight.w600,
  1498. fontStyle:
  1499. FlutterFlowTheme.of(context)
  1500. .headlineLarge
  1501. .fontStyle,
  1502. ),
  1503. fontSize: 32.0,
  1504. letterSpacing: 0.0,
  1505. fontWeight: FontWeight.w600,
  1506. fontStyle:
  1507. FlutterFlowTheme.of(context)
  1508. .headlineLarge
  1509. .fontStyle,
  1510. ),
  1511. pickerBackgroundColor:
  1512. FlutterFlowTheme.of(context)
  1513. .secondaryBackground,
  1514. pickerForegroundColor:
  1515. FlutterFlowTheme.of(context)
  1516. .primaryText,
  1517. selectedDateTimeBackgroundColor:
  1518. FlutterFlowTheme.of(context)
  1519. .primary,
  1520. selectedDateTimeForegroundColor:
  1521. FlutterFlowTheme.of(context).info,
  1522. actionButtonForegroundColor:
  1523. FlutterFlowTheme.of(context)
  1524. .primaryText,
  1525. iconSize: 24.0,
  1526. );
  1527. },
  1528. );
  1529. }
  1530. if (_datePicked2Date != null &&
  1531. _datePicked2Time != null) {
  1532. safeSetState(() {
  1533. _model.datePicked2 = DateTime(
  1534. _datePicked2Date.year,
  1535. _datePicked2Date.month,
  1536. _datePicked2Date.day,
  1537. _datePicked2Time!.hour,
  1538. _datePicked2Time.minute,
  1539. );
  1540. });
  1541. } else if (_model.datePicked2 != null) {
  1542. safeSetState(() {
  1543. _model.datePicked2 = getCurrentTimestamp;
  1544. });
  1545. }
  1546. safeSetState(() {
  1547. _model.textFieldDatumEindTextController
  1548. ?.text = dateTimeFormat(
  1549. "dd-MM-yyyy HH:mm",
  1550. _model.datePicked2,
  1551. locale: FFLocalizations.of(context)
  1552. .languageCode,
  1553. );
  1554. });
  1555. },
  1556. child: Container(
  1557. width: double.infinity,
  1558. decoration: BoxDecoration(),
  1559. child: Container(
  1560. width: double.infinity,
  1561. child: TextFormField(
  1562. controller:
  1563. _model.textFieldDatumEindTextController,
  1564. focusNode:
  1565. _model.textFieldDatumEindFocusNode,
  1566. autofocus: false,
  1567. enabled: false,
  1568. readOnly: true,
  1569. obscureText: false,
  1570. decoration: InputDecoration(
  1571. isDense: true,
  1572. labelText:
  1573. FFLocalizations.of(context).getText(
  1574. 'wkn1mu1d' /* Einddatum */,
  1575. ),
  1576. labelStyle: FlutterFlowTheme.of(context)
  1577. .labelMedium
  1578. .override(
  1579. font: GoogleFonts.roboto(
  1580. fontWeight:
  1581. FlutterFlowTheme.of(context)
  1582. .labelMedium
  1583. .fontWeight,
  1584. fontStyle:
  1585. FlutterFlowTheme.of(context)
  1586. .labelMedium
  1587. .fontStyle,
  1588. ),
  1589. letterSpacing: 0.0,
  1590. fontWeight:
  1591. FlutterFlowTheme.of(context)
  1592. .labelMedium
  1593. .fontWeight,
  1594. fontStyle:
  1595. FlutterFlowTheme.of(context)
  1596. .labelMedium
  1597. .fontStyle,
  1598. ),
  1599. hintText:
  1600. FFLocalizations.of(context).getText(
  1601. 'e42lwmdh' /* Einddatum */,
  1602. ),
  1603. hintStyle: FlutterFlowTheme.of(context)
  1604. .labelMedium
  1605. .override(
  1606. font: GoogleFonts.roboto(
  1607. fontWeight:
  1608. FlutterFlowTheme.of(context)
  1609. .labelMedium
  1610. .fontWeight,
  1611. fontStyle:
  1612. FlutterFlowTheme.of(context)
  1613. .labelMedium
  1614. .fontStyle,
  1615. ),
  1616. letterSpacing: 0.0,
  1617. fontWeight:
  1618. FlutterFlowTheme.of(context)
  1619. .labelMedium
  1620. .fontWeight,
  1621. fontStyle:
  1622. FlutterFlowTheme.of(context)
  1623. .labelMedium
  1624. .fontStyle,
  1625. ),
  1626. enabledBorder: OutlineInputBorder(
  1627. borderSide: BorderSide(
  1628. color: Color(0x00000000),
  1629. width: 1.0,
  1630. ),
  1631. borderRadius:
  1632. BorderRadius.circular(8.0),
  1633. ),
  1634. focusedBorder: OutlineInputBorder(
  1635. borderSide: BorderSide(
  1636. color: Color(0x00000000),
  1637. width: 1.0,
  1638. ),
  1639. borderRadius:
  1640. BorderRadius.circular(8.0),
  1641. ),
  1642. errorBorder: OutlineInputBorder(
  1643. borderSide: BorderSide(
  1644. color: FlutterFlowTheme.of(context)
  1645. .error,
  1646. width: 1.0,
  1647. ),
  1648. borderRadius:
  1649. BorderRadius.circular(8.0),
  1650. ),
  1651. focusedErrorBorder: OutlineInputBorder(
  1652. borderSide: BorderSide(
  1653. color: FlutterFlowTheme.of(context)
  1654. .error,
  1655. width: 1.0,
  1656. ),
  1657. borderRadius:
  1658. BorderRadius.circular(8.0),
  1659. ),
  1660. filled: true,
  1661. fillColor: FlutterFlowTheme.of(context)
  1662. .primaryBackground,
  1663. ),
  1664. style: FlutterFlowTheme.of(context)
  1665. .bodyMedium
  1666. .override(
  1667. font: GoogleFonts.roboto(
  1668. fontWeight:
  1669. FlutterFlowTheme.of(context)
  1670. .bodyMedium
  1671. .fontWeight,
  1672. fontStyle:
  1673. FlutterFlowTheme.of(context)
  1674. .bodyMedium
  1675. .fontStyle,
  1676. ),
  1677. letterSpacing: 0.0,
  1678. fontWeight:
  1679. FlutterFlowTheme.of(context)
  1680. .bodyMedium
  1681. .fontWeight,
  1682. fontStyle:
  1683. FlutterFlowTheme.of(context)
  1684. .bodyMedium
  1685. .fontStyle,
  1686. ),
  1687. cursorColor: FlutterFlowTheme.of(context)
  1688. .primaryText,
  1689. enableInteractiveSelection: true,
  1690. validator: _model
  1691. .textFieldDatumEindTextControllerValidator
  1692. .asValidator(context),
  1693. ),
  1694. ),
  1695. ),
  1696. ),
  1697. ],
  1698. ),
  1699. ),
  1700. ),
  1701. ),
  1702. Align(
  1703. alignment: AlignmentDirectional(-1.0, 0.0),
  1704. child: Padding(
  1705. padding: EdgeInsets.all(16.0),
  1706. child: Container(
  1707. width: double.infinity,
  1708. decoration: BoxDecoration(
  1709. color:
  1710. FlutterFlowTheme.of(context).secondaryBackground,
  1711. borderRadius: BorderRadius.only(),
  1712. border: Border.all(
  1713. color: Color(0xFFEEEEEE),
  1714. width: 3.0,
  1715. ),
  1716. ),
  1717. child: Column(
  1718. mainAxisSize: MainAxisSize.max,
  1719. children: [
  1720. Align(
  1721. alignment: AlignmentDirectional(-1.0, 0.0),
  1722. child: Text(
  1723. FFLocalizations.of(context).getText(
  1724. 'vkyrmq6a' /* Organisatie */,
  1725. ),
  1726. style: FlutterFlowTheme.of(context)
  1727. .bodyMedium
  1728. .override(
  1729. font: GoogleFonts.roboto(
  1730. fontWeight: FlutterFlowTheme.of(context)
  1731. .bodyMedium
  1732. .fontWeight,
  1733. fontStyle: FlutterFlowTheme.of(context)
  1734. .bodyMedium
  1735. .fontStyle,
  1736. ),
  1737. letterSpacing: 0.0,
  1738. fontWeight: FlutterFlowTheme.of(context)
  1739. .bodyMedium
  1740. .fontWeight,
  1741. fontStyle: FlutterFlowTheme.of(context)
  1742. .bodyMedium
  1743. .fontStyle,
  1744. ),
  1745. ),
  1746. ),
  1747. Align(
  1748. alignment: AlignmentDirectional(-1.0, 0.0),
  1749. child: Text(
  1750. FFLocalizations.of(context).getText(
  1751. 'len3npim' /* Optioneel. Een website of tick... */,
  1752. ),
  1753. style: FlutterFlowTheme.of(context)
  1754. .bodyMedium
  1755. .override(
  1756. font: GoogleFonts.roboto(
  1757. fontWeight: FlutterFlowTheme.of(context)
  1758. .bodyMedium
  1759. .fontWeight,
  1760. fontStyle: FlutterFlowTheme.of(context)
  1761. .bodyMedium
  1762. .fontStyle,
  1763. ),
  1764. color: FlutterFlowTheme.of(context)
  1765. .secondaryText,
  1766. fontSize: 12.0,
  1767. letterSpacing: 0.0,
  1768. fontWeight: FlutterFlowTheme.of(context)
  1769. .bodyMedium
  1770. .fontWeight,
  1771. fontStyle: FlutterFlowTheme.of(context)
  1772. .bodyMedium
  1773. .fontStyle,
  1774. ),
  1775. ),
  1776. ),
  1777. Align(
  1778. alignment: AlignmentDirectional(-1.0, 0.0),
  1779. child: Container(
  1780. width: double.infinity,
  1781. child: TextFormField(
  1782. controller:
  1783. _model.textFieldWebsiteURLTextController,
  1784. focusNode:
  1785. _model.textFieldWebsiteURLFocusNode,
  1786. autofocus: false,
  1787. enabled: true,
  1788. obscureText: false,
  1789. decoration: InputDecoration(
  1790. isDense: true,
  1791. labelText:
  1792. FFLocalizations.of(context).getText(
  1793. 'e9n6cj1o' /* Website */,
  1794. ),
  1795. labelStyle: FlutterFlowTheme.of(context)
  1796. .labelMedium
  1797. .override(
  1798. font: GoogleFonts.roboto(
  1799. fontWeight:
  1800. FlutterFlowTheme.of(context)
  1801. .labelMedium
  1802. .fontWeight,
  1803. fontStyle:
  1804. FlutterFlowTheme.of(context)
  1805. .labelMedium
  1806. .fontStyle,
  1807. ),
  1808. letterSpacing: 0.0,
  1809. fontWeight:
  1810. FlutterFlowTheme.of(context)
  1811. .labelMedium
  1812. .fontWeight,
  1813. fontStyle:
  1814. FlutterFlowTheme.of(context)
  1815. .labelMedium
  1816. .fontStyle,
  1817. ),
  1818. hintText:
  1819. FFLocalizations.of(context).getText(
  1820. 'qsf2va25' /* Website van het evenement */,
  1821. ),
  1822. hintStyle: FlutterFlowTheme.of(context)
  1823. .labelMedium
  1824. .override(
  1825. font: GoogleFonts.roboto(
  1826. fontWeight:
  1827. FlutterFlowTheme.of(context)
  1828. .labelMedium
  1829. .fontWeight,
  1830. fontStyle:
  1831. FlutterFlowTheme.of(context)
  1832. .labelMedium
  1833. .fontStyle,
  1834. ),
  1835. letterSpacing: 0.0,
  1836. fontWeight:
  1837. FlutterFlowTheme.of(context)
  1838. .labelMedium
  1839. .fontWeight,
  1840. fontStyle:
  1841. FlutterFlowTheme.of(context)
  1842. .labelMedium
  1843. .fontStyle,
  1844. ),
  1845. enabledBorder: OutlineInputBorder(
  1846. borderSide: BorderSide(
  1847. color: Color(0x00000000),
  1848. width: 1.0,
  1849. ),
  1850. borderRadius: BorderRadius.circular(8.0),
  1851. ),
  1852. focusedBorder: OutlineInputBorder(
  1853. borderSide: BorderSide(
  1854. color: Color(0x00000000),
  1855. width: 1.0,
  1856. ),
  1857. borderRadius: BorderRadius.circular(8.0),
  1858. ),
  1859. errorBorder: OutlineInputBorder(
  1860. borderSide: BorderSide(
  1861. color:
  1862. FlutterFlowTheme.of(context).error,
  1863. width: 1.0,
  1864. ),
  1865. borderRadius: BorderRadius.circular(8.0),
  1866. ),
  1867. focusedErrorBorder: OutlineInputBorder(
  1868. borderSide: BorderSide(
  1869. color:
  1870. FlutterFlowTheme.of(context).error,
  1871. width: 1.0,
  1872. ),
  1873. borderRadius: BorderRadius.circular(8.0),
  1874. ),
  1875. filled: true,
  1876. fillColor: FlutterFlowTheme.of(context)
  1877. .primaryBackground,
  1878. ),
  1879. style: FlutterFlowTheme.of(context)
  1880. .bodyMedium
  1881. .override(
  1882. font: GoogleFonts.roboto(
  1883. fontWeight:
  1884. FlutterFlowTheme.of(context)
  1885. .bodyMedium
  1886. .fontWeight,
  1887. fontStyle:
  1888. FlutterFlowTheme.of(context)
  1889. .bodyMedium
  1890. .fontStyle,
  1891. ),
  1892. letterSpacing: 0.0,
  1893. fontWeight: FlutterFlowTheme.of(context)
  1894. .bodyMedium
  1895. .fontWeight,
  1896. fontStyle: FlutterFlowTheme.of(context)
  1897. .bodyMedium
  1898. .fontStyle,
  1899. ),
  1900. cursorColor:
  1901. FlutterFlowTheme.of(context).primaryText,
  1902. enableInteractiveSelection: true,
  1903. validator: _model
  1904. .textFieldWebsiteURLTextControllerValidator
  1905. .asValidator(context),
  1906. ),
  1907. ),
  1908. ),
  1909. Align(
  1910. alignment: AlignmentDirectional(-1.0, 0.0),
  1911. child: Container(
  1912. width: double.infinity,
  1913. child: TextFormField(
  1914. controller:
  1915. _model.textFieldTicketsURLTextController,
  1916. focusNode:
  1917. _model.textFieldTicketsURLFocusNode,
  1918. autofocus: false,
  1919. enabled: true,
  1920. obscureText: false,
  1921. decoration: InputDecoration(
  1922. isDense: true,
  1923. labelText:
  1924. FFLocalizations.of(context).getText(
  1925. 'zfofdq9a' /* Ticketlink */,
  1926. ),
  1927. labelStyle: FlutterFlowTheme.of(context)
  1928. .labelMedium
  1929. .override(
  1930. font: GoogleFonts.roboto(
  1931. fontWeight:
  1932. FlutterFlowTheme.of(context)
  1933. .labelMedium
  1934. .fontWeight,
  1935. fontStyle:
  1936. FlutterFlowTheme.of(context)
  1937. .labelMedium
  1938. .fontStyle,
  1939. ),
  1940. letterSpacing: 0.0,
  1941. fontWeight:
  1942. FlutterFlowTheme.of(context)
  1943. .labelMedium
  1944. .fontWeight,
  1945. fontStyle:
  1946. FlutterFlowTheme.of(context)
  1947. .labelMedium
  1948. .fontStyle,
  1949. ),
  1950. hintText:
  1951. FFLocalizations.of(context).getText(
  1952. 'nzaqrq0w' /* Link om kaarten te kopen */,
  1953. ),
  1954. hintStyle: FlutterFlowTheme.of(context)
  1955. .labelMedium
  1956. .override(
  1957. font: GoogleFonts.roboto(
  1958. fontWeight:
  1959. FlutterFlowTheme.of(context)
  1960. .labelMedium
  1961. .fontWeight,
  1962. fontStyle:
  1963. FlutterFlowTheme.of(context)
  1964. .labelMedium
  1965. .fontStyle,
  1966. ),
  1967. letterSpacing: 0.0,
  1968. fontWeight:
  1969. FlutterFlowTheme.of(context)
  1970. .labelMedium
  1971. .fontWeight,
  1972. fontStyle:
  1973. FlutterFlowTheme.of(context)
  1974. .labelMedium
  1975. .fontStyle,
  1976. ),
  1977. enabledBorder: OutlineInputBorder(
  1978. borderSide: BorderSide(
  1979. color: Color(0x00000000),
  1980. width: 1.0,
  1981. ),
  1982. borderRadius: BorderRadius.circular(8.0),
  1983. ),
  1984. focusedBorder: OutlineInputBorder(
  1985. borderSide: BorderSide(
  1986. color: Color(0x00000000),
  1987. width: 1.0,
  1988. ),
  1989. borderRadius: BorderRadius.circular(8.0),
  1990. ),
  1991. errorBorder: OutlineInputBorder(
  1992. borderSide: BorderSide(
  1993. color:
  1994. FlutterFlowTheme.of(context).error,
  1995. width: 1.0,
  1996. ),
  1997. borderRadius: BorderRadius.circular(8.0),
  1998. ),
  1999. focusedErrorBorder: OutlineInputBorder(
  2000. borderSide: BorderSide(
  2001. color:
  2002. FlutterFlowTheme.of(context).error,
  2003. width: 1.0,
  2004. ),
  2005. borderRadius: BorderRadius.circular(8.0),
  2006. ),
  2007. filled: true,
  2008. fillColor: FlutterFlowTheme.of(context)
  2009. .primaryBackground,
  2010. ),
  2011. style: FlutterFlowTheme.of(context)
  2012. .bodyMedium
  2013. .override(
  2014. font: GoogleFonts.roboto(
  2015. fontWeight:
  2016. FlutterFlowTheme.of(context)
  2017. .bodyMedium
  2018. .fontWeight,
  2019. fontStyle:
  2020. FlutterFlowTheme.of(context)
  2021. .bodyMedium
  2022. .fontStyle,
  2023. ),
  2024. letterSpacing: 0.0,
  2025. fontWeight: FlutterFlowTheme.of(context)
  2026. .bodyMedium
  2027. .fontWeight,
  2028. fontStyle: FlutterFlowTheme.of(context)
  2029. .bodyMedium
  2030. .fontStyle,
  2031. ),
  2032. cursorColor:
  2033. FlutterFlowTheme.of(context).primaryText,
  2034. enableInteractiveSelection: true,
  2035. validator: _model
  2036. .textFieldTicketsURLTextControllerValidator
  2037. .asValidator(context),
  2038. ),
  2039. ),
  2040. ),
  2041. ],
  2042. ),
  2043. ),
  2044. ),
  2045. ),
  2046. Align(
  2047. alignment: AlignmentDirectional(-1.0, 0.0),
  2048. child: Padding(
  2049. padding: EdgeInsets.all(16.0),
  2050. child: Container(
  2051. width: double.infinity,
  2052. decoration: BoxDecoration(
  2053. color:
  2054. FlutterFlowTheme.of(context).secondaryBackground,
  2055. borderRadius: BorderRadius.only(),
  2056. border: Border.all(
  2057. color: Color(0xFFEEEEEE),
  2058. width: 3.0,
  2059. ),
  2060. ),
  2061. child: Align(
  2062. alignment: AlignmentDirectional(-1.0, 0.0),
  2063. child: Column(
  2064. mainAxisSize: MainAxisSize.max,
  2065. children: [
  2066. Align(
  2067. alignment: AlignmentDirectional(-1.0, 0.0),
  2068. child: Text(
  2069. FFLocalizations.of(context).getText(
  2070. 'obaet4ky' /* Entree */,
  2071. ),
  2072. style: FlutterFlowTheme.of(context)
  2073. .headlineSmall
  2074. .override(
  2075. font: GoogleFonts.notoSerif(
  2076. fontWeight:
  2077. FlutterFlowTheme.of(context)
  2078. .headlineSmall
  2079. .fontWeight,
  2080. fontStyle:
  2081. FlutterFlowTheme.of(context)
  2082. .headlineSmall
  2083. .fontStyle,
  2084. ),
  2085. fontSize: 16.0,
  2086. letterSpacing: 0.0,
  2087. fontWeight: FlutterFlowTheme.of(context)
  2088. .headlineSmall
  2089. .fontWeight,
  2090. fontStyle: FlutterFlowTheme.of(context)
  2091. .headlineSmall
  2092. .fontStyle,
  2093. ),
  2094. ),
  2095. ),
  2096. Align(
  2097. alignment: AlignmentDirectional(-1.0, 0.0),
  2098. child: Text(
  2099. FFLocalizations.of(context).getText(
  2100. 'rj9dgdp7' /* Entree informatie */,
  2101. ),
  2102. style: FlutterFlowTheme.of(context)
  2103. .bodySmall
  2104. .override(
  2105. font: GoogleFonts.roboto(
  2106. fontWeight:
  2107. FlutterFlowTheme.of(context)
  2108. .bodySmall
  2109. .fontWeight,
  2110. fontStyle:
  2111. FlutterFlowTheme.of(context)
  2112. .bodySmall
  2113. .fontStyle,
  2114. ),
  2115. color: FlutterFlowTheme.of(context)
  2116. .secondaryText,
  2117. letterSpacing: 0.0,
  2118. fontWeight: FlutterFlowTheme.of(context)
  2119. .bodySmall
  2120. .fontWeight,
  2121. fontStyle: FlutterFlowTheme.of(context)
  2122. .bodySmall
  2123. .fontStyle,
  2124. ),
  2125. ),
  2126. ),
  2127. Align(
  2128. alignment: AlignmentDirectional(-1.0, 0.0),
  2129. child: FutureBuilder<ApiCallResponse>(
  2130. future: ProductieGroup.entreeoptiesCall.call(
  2131. sessionName: FFAppState().userSessionname,
  2132. sessid: FFAppState().userSessionid,
  2133. ),
  2134. builder: (context, snapshot) {
  2135. // Customize what your widget looks like when it's loading.
  2136. if (!snapshot.hasData) {
  2137. return Center(
  2138. child: SizedBox(
  2139. width: 80.0,
  2140. height: 80.0,
  2141. child: SpinKitFadingCircle(
  2142. color: FlutterFlowTheme.of(context)
  2143. .primary,
  2144. size: 80.0,
  2145. ),
  2146. ),
  2147. );
  2148. }
  2149. final dropDownEntreeEntreeoptiesResponse =
  2150. snapshot.data!;
  2151. _model.debugBackendQueries[
  2152. 'ProductieGroup.entreeoptiesCall_statusCode_DropDown_pscb0l37'] =
  2153. debugSerializeParam(
  2154. dropDownEntreeEntreeoptiesResponse
  2155. .statusCode,
  2156. ParamType.int,
  2157. link:
  2158. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  2159. name: 'int',
  2160. nullable: false,
  2161. );
  2162. _model.debugBackendQueries[
  2163. 'ProductieGroup.entreeoptiesCall_responseBody_DropDown_pscb0l37'] =
  2164. debugSerializeParam(
  2165. dropDownEntreeEntreeoptiesResponse
  2166. .bodyText,
  2167. ParamType.String,
  2168. link:
  2169. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  2170. name: 'String',
  2171. nullable: false,
  2172. );
  2173. debugLogWidgetClass(_model);
  2174. return FlutterFlowDropDown<String>(
  2175. controller: _model
  2176. .dropDownEntreeValueController ??=
  2177. FormFieldController<String>(
  2178. _model.dropDownEntreeValue ??=
  2179. functions.kloonTekst(
  2180. FFAppState().kloonBron,
  2181. 'entree_tid'),
  2182. ),
  2183. options: List<String>.from((getJsonField(
  2184. dropDownEntreeEntreeoptiesResponse
  2185. .jsonBody,
  2186. r'''$[:].tid''',
  2187. true,
  2188. ) as List?)!
  2189. .map<String>((e) => e.toString())
  2190. .toList()
  2191. .cast<String>()),
  2192. optionLabels: (getJsonField(
  2193. dropDownEntreeEntreeoptiesResponse
  2194. .jsonBody,
  2195. r'''$[:].naam''',
  2196. true,
  2197. ) as List?)!
  2198. .map<String>((e) => e.toString())
  2199. .toList()
  2200. .cast<String>(),
  2201. onChanged: (val) async {
  2202. safeSetState(() =>
  2203. _model.dropDownEntreeValue = val);
  2204. _model.createEntreeTid =
  2205. _model.dropDownEntreeValue;
  2206. safeSetState(() {});
  2207. },
  2208. width: double.infinity,
  2209. height: 40.0,
  2210. textStyle: FlutterFlowTheme.of(context)
  2211. .bodyMedium
  2212. .override(
  2213. font: GoogleFonts.roboto(
  2214. fontWeight:
  2215. FlutterFlowTheme.of(context)
  2216. .bodyMedium
  2217. .fontWeight,
  2218. fontStyle:
  2219. FlutterFlowTheme.of(context)
  2220. .bodyMedium
  2221. .fontStyle,
  2222. ),
  2223. letterSpacing: 0.0,
  2224. fontWeight:
  2225. FlutterFlowTheme.of(context)
  2226. .bodyMedium
  2227. .fontWeight,
  2228. fontStyle:
  2229. FlutterFlowTheme.of(context)
  2230. .bodyMedium
  2231. .fontStyle,
  2232. ),
  2233. hintText:
  2234. FFLocalizations.of(context).getText(
  2235. 'ht4toe4o' /* Select... */,
  2236. ),
  2237. icon: Icon(
  2238. Icons.keyboard_arrow_down_rounded,
  2239. color: FlutterFlowTheme.of(context)
  2240. .secondaryText,
  2241. size: 24.0,
  2242. ),
  2243. fillColor: FlutterFlowTheme.of(context)
  2244. .primaryBackground,
  2245. elevation: 2.0,
  2246. borderColor: Colors.transparent,
  2247. borderWidth: 0.0,
  2248. borderRadius: 8.0,
  2249. margin: EdgeInsetsDirectional.fromSTEB(
  2250. 12.0, 0.0, 12.0, 0.0),
  2251. hidesUnderline: true,
  2252. isOverButton: false,
  2253. isSearchable: false,
  2254. isMultiSelect: false,
  2255. );
  2256. },
  2257. ),
  2258. ),
  2259. Align(
  2260. alignment: AlignmentDirectional(-1.0, 0.0),
  2261. child: Container(
  2262. width: double.infinity,
  2263. child: TextFormField(
  2264. controller: _model
  2265. .textFieldToelichtingEntreeTextController,
  2266. focusNode: _model
  2267. .textFieldToelichtingEntreeFocusNode,
  2268. autofocus: false,
  2269. enabled: true,
  2270. obscureText: false,
  2271. decoration: InputDecoration(
  2272. isDense: true,
  2273. labelText:
  2274. FFLocalizations.of(context).getText(
  2275. 'taujsjo7' /* Toelichting entree */,
  2276. ),
  2277. labelStyle: FlutterFlowTheme.of(context)
  2278. .labelMedium
  2279. .override(
  2280. font: GoogleFonts.roboto(
  2281. fontWeight:
  2282. FlutterFlowTheme.of(context)
  2283. .labelMedium
  2284. .fontWeight,
  2285. fontStyle:
  2286. FlutterFlowTheme.of(context)
  2287. .labelMedium
  2288. .fontStyle,
  2289. ),
  2290. letterSpacing: 0.0,
  2291. fontWeight:
  2292. FlutterFlowTheme.of(context)
  2293. .labelMedium
  2294. .fontWeight,
  2295. fontStyle:
  2296. FlutterFlowTheme.of(context)
  2297. .labelMedium
  2298. .fontStyle,
  2299. ),
  2300. hintText:
  2301. FFLocalizations.of(context).getText(
  2302. 'y7mzhxd8' /* Toelichting entree */,
  2303. ),
  2304. hintStyle: FlutterFlowTheme.of(context)
  2305. .labelMedium
  2306. .override(
  2307. font: GoogleFonts.roboto(
  2308. fontWeight:
  2309. FlutterFlowTheme.of(context)
  2310. .labelMedium
  2311. .fontWeight,
  2312. fontStyle:
  2313. FlutterFlowTheme.of(context)
  2314. .labelMedium
  2315. .fontStyle,
  2316. ),
  2317. letterSpacing: 0.0,
  2318. fontWeight:
  2319. FlutterFlowTheme.of(context)
  2320. .labelMedium
  2321. .fontWeight,
  2322. fontStyle:
  2323. FlutterFlowTheme.of(context)
  2324. .labelMedium
  2325. .fontStyle,
  2326. ),
  2327. enabledBorder: OutlineInputBorder(
  2328. borderSide: BorderSide(
  2329. color: Color(0x00000000),
  2330. width: 1.0,
  2331. ),
  2332. borderRadius:
  2333. BorderRadius.circular(8.0),
  2334. ),
  2335. focusedBorder: OutlineInputBorder(
  2336. borderSide: BorderSide(
  2337. color: Color(0x00000000),
  2338. width: 1.0,
  2339. ),
  2340. borderRadius:
  2341. BorderRadius.circular(8.0),
  2342. ),
  2343. errorBorder: OutlineInputBorder(
  2344. borderSide: BorderSide(
  2345. color: FlutterFlowTheme.of(context)
  2346. .error,
  2347. width: 1.0,
  2348. ),
  2349. borderRadius:
  2350. BorderRadius.circular(8.0),
  2351. ),
  2352. focusedErrorBorder: OutlineInputBorder(
  2353. borderSide: BorderSide(
  2354. color: FlutterFlowTheme.of(context)
  2355. .error,
  2356. width: 1.0,
  2357. ),
  2358. borderRadius:
  2359. BorderRadius.circular(8.0),
  2360. ),
  2361. filled: true,
  2362. fillColor: FlutterFlowTheme.of(context)
  2363. .primaryBackground,
  2364. ),
  2365. style: FlutterFlowTheme.of(context)
  2366. .bodyMedium
  2367. .override(
  2368. font: GoogleFonts.roboto(
  2369. fontWeight:
  2370. FlutterFlowTheme.of(context)
  2371. .bodyMedium
  2372. .fontWeight,
  2373. fontStyle:
  2374. FlutterFlowTheme.of(context)
  2375. .bodyMedium
  2376. .fontStyle,
  2377. ),
  2378. letterSpacing: 0.0,
  2379. fontWeight:
  2380. FlutterFlowTheme.of(context)
  2381. .bodyMedium
  2382. .fontWeight,
  2383. fontStyle:
  2384. FlutterFlowTheme.of(context)
  2385. .bodyMedium
  2386. .fontStyle,
  2387. ),
  2388. cursorColor: FlutterFlowTheme.of(context)
  2389. .primaryText,
  2390. enableInteractiveSelection: true,
  2391. validator: _model
  2392. .textFieldToelichtingEntreeTextControllerValidator
  2393. .asValidator(context),
  2394. ),
  2395. ),
  2396. ),
  2397. Align(
  2398. alignment: AlignmentDirectional(-1.0, 0.0),
  2399. child: Container(
  2400. width: double.infinity,
  2401. child: TextFormField(
  2402. controller: _model
  2403. .textFieldEntreeprijsTextController,
  2404. focusNode:
  2405. _model.textFieldEntreeprijsFocusNode,
  2406. autofocus: false,
  2407. enabled: true,
  2408. obscureText: false,
  2409. decoration: InputDecoration(
  2410. isDense: true,
  2411. labelText:
  2412. FFLocalizations.of(context).getText(
  2413. '3h3k4jh2' /* Entreeprijs */,
  2414. ),
  2415. labelStyle: FlutterFlowTheme.of(context)
  2416. .labelMedium
  2417. .override(
  2418. font: GoogleFonts.roboto(
  2419. fontWeight:
  2420. FlutterFlowTheme.of(context)
  2421. .labelMedium
  2422. .fontWeight,
  2423. fontStyle:
  2424. FlutterFlowTheme.of(context)
  2425. .labelMedium
  2426. .fontStyle,
  2427. ),
  2428. letterSpacing: 0.0,
  2429. fontWeight:
  2430. FlutterFlowTheme.of(context)
  2431. .labelMedium
  2432. .fontWeight,
  2433. fontStyle:
  2434. FlutterFlowTheme.of(context)
  2435. .labelMedium
  2436. .fontStyle,
  2437. ),
  2438. hintText:
  2439. FFLocalizations.of(context).getText(
  2440. 'ge5o3gf7' /* Entreeprijs */,
  2441. ),
  2442. hintStyle: FlutterFlowTheme.of(context)
  2443. .labelMedium
  2444. .override(
  2445. font: GoogleFonts.roboto(
  2446. fontWeight:
  2447. FlutterFlowTheme.of(context)
  2448. .labelMedium
  2449. .fontWeight,
  2450. fontStyle:
  2451. FlutterFlowTheme.of(context)
  2452. .labelMedium
  2453. .fontStyle,
  2454. ),
  2455. letterSpacing: 0.0,
  2456. fontWeight:
  2457. FlutterFlowTheme.of(context)
  2458. .labelMedium
  2459. .fontWeight,
  2460. fontStyle:
  2461. FlutterFlowTheme.of(context)
  2462. .labelMedium
  2463. .fontStyle,
  2464. ),
  2465. enabledBorder: OutlineInputBorder(
  2466. borderSide: BorderSide(
  2467. color: Color(0x00000000),
  2468. width: 1.0,
  2469. ),
  2470. borderRadius:
  2471. BorderRadius.circular(8.0),
  2472. ),
  2473. focusedBorder: OutlineInputBorder(
  2474. borderSide: BorderSide(
  2475. color: Color(0x00000000),
  2476. width: 1.0,
  2477. ),
  2478. borderRadius:
  2479. BorderRadius.circular(8.0),
  2480. ),
  2481. errorBorder: OutlineInputBorder(
  2482. borderSide: BorderSide(
  2483. color: FlutterFlowTheme.of(context)
  2484. .error,
  2485. width: 1.0,
  2486. ),
  2487. borderRadius:
  2488. BorderRadius.circular(8.0),
  2489. ),
  2490. focusedErrorBorder: OutlineInputBorder(
  2491. borderSide: BorderSide(
  2492. color: FlutterFlowTheme.of(context)
  2493. .error,
  2494. width: 1.0,
  2495. ),
  2496. borderRadius:
  2497. BorderRadius.circular(8.0),
  2498. ),
  2499. filled: true,
  2500. fillColor: FlutterFlowTheme.of(context)
  2501. .primaryBackground,
  2502. ),
  2503. style: FlutterFlowTheme.of(context)
  2504. .bodyMedium
  2505. .override(
  2506. font: GoogleFonts.roboto(
  2507. fontWeight:
  2508. FlutterFlowTheme.of(context)
  2509. .bodyMedium
  2510. .fontWeight,
  2511. fontStyle:
  2512. FlutterFlowTheme.of(context)
  2513. .bodyMedium
  2514. .fontStyle,
  2515. ),
  2516. letterSpacing: 0.0,
  2517. fontWeight:
  2518. FlutterFlowTheme.of(context)
  2519. .bodyMedium
  2520. .fontWeight,
  2521. fontStyle:
  2522. FlutterFlowTheme.of(context)
  2523. .bodyMedium
  2524. .fontStyle,
  2525. ),
  2526. cursorColor: FlutterFlowTheme.of(context)
  2527. .primaryText,
  2528. enableInteractiveSelection: true,
  2529. validator: _model
  2530. .textFieldEntreeprijsTextControllerValidator
  2531. .asValidator(context),
  2532. ),
  2533. ),
  2534. ),
  2535. ],
  2536. ),
  2537. ),
  2538. ),
  2539. ),
  2540. ),
  2541. Container(
  2542. width: double.infinity,
  2543. decoration: BoxDecoration(
  2544. color: FlutterFlowTheme.of(context).secondaryBackground,
  2545. border: Border.all(
  2546. color: FlutterFlowTheme.of(context).alternate,
  2547. width: 3.0,
  2548. ),
  2549. ),
  2550. child: Column(
  2551. mainAxisSize: MainAxisSize.max,
  2552. children: [
  2553. Align(
  2554. alignment: AlignmentDirectional(-1.0, 0.0),
  2555. child: Text(
  2556. FFLocalizations.of(context).getText(
  2557. '4a28vwlf' /* Media */,
  2558. ),
  2559. style: FlutterFlowTheme.of(context)
  2560. .headlineSmall
  2561. .override(
  2562. font: GoogleFonts.notoSerif(
  2563. fontWeight: FlutterFlowTheme.of(context)
  2564. .headlineSmall
  2565. .fontWeight,
  2566. fontStyle: FlutterFlowTheme.of(context)
  2567. .headlineSmall
  2568. .fontStyle,
  2569. ),
  2570. fontSize: 16.0,
  2571. letterSpacing: 0.0,
  2572. fontWeight: FlutterFlowTheme.of(context)
  2573. .headlineSmall
  2574. .fontWeight,
  2575. fontStyle: FlutterFlowTheme.of(context)
  2576. .headlineSmall
  2577. .fontStyle,
  2578. ),
  2579. ),
  2580. ),
  2581. Align(
  2582. alignment: AlignmentDirectional(-1.0, 0.0),
  2583. child: Text(
  2584. FFLocalizations.of(context).getText(
  2585. 'nvi2k89n' /* Een logo en meerdere foto's. T... */,
  2586. ),
  2587. style:
  2588. FlutterFlowTheme.of(context).bodySmall.override(
  2589. font: GoogleFonts.roboto(
  2590. fontWeight: FlutterFlowTheme.of(context)
  2591. .bodySmall
  2592. .fontWeight,
  2593. fontStyle: FlutterFlowTheme.of(context)
  2594. .bodySmall
  2595. .fontStyle,
  2596. ),
  2597. color: FlutterFlowTheme.of(context)
  2598. .secondaryText,
  2599. letterSpacing: 0.0,
  2600. fontWeight: FlutterFlowTheme.of(context)
  2601. .bodySmall
  2602. .fontWeight,
  2603. fontStyle: FlutterFlowTheme.of(context)
  2604. .bodySmall
  2605. .fontStyle,
  2606. ),
  2607. ),
  2608. ),
  2609. Row(
  2610. mainAxisSize: MainAxisSize.max,
  2611. children: [
  2612. Align(
  2613. alignment: AlignmentDirectional(-1.0, 0.0),
  2614. child: FFButtonWidget(
  2615. onPressed: () async {
  2616. final selectedMedia =
  2617. await selectMediaWithSourceBottomSheet(
  2618. context: context,
  2619. allowPhoto: true,
  2620. );
  2621. if (selectedMedia != null &&
  2622. selectedMedia.every((m) =>
  2623. validateFileFormat(
  2624. m.storagePath, context))) {
  2625. safeSetState(() => _model
  2626. .isDataUploading_uploadDataLogoEvenement =
  2627. true);
  2628. var selectedUploadedFiles =
  2629. <FFUploadedFile>[];
  2630. try {
  2631. selectedUploadedFiles = selectedMedia
  2632. .map((m) => FFUploadedFile(
  2633. name: m.storagePath
  2634. .split('/')
  2635. .last,
  2636. bytes: m.bytes,
  2637. height: m.dimensions?.height,
  2638. width: m.dimensions?.width,
  2639. blurHash: m.blurHash,
  2640. originalFilename:
  2641. m.originalFilename,
  2642. ))
  2643. .toList();
  2644. } finally {
  2645. _model.isDataUploading_uploadDataLogoEvenement =
  2646. false;
  2647. }
  2648. if (selectedUploadedFiles.length ==
  2649. selectedMedia.length) {
  2650. safeSetState(() {
  2651. _model.uploadedLocalFile_uploadDataLogoEvenement =
  2652. selectedUploadedFiles.first;
  2653. });
  2654. } else {
  2655. safeSetState(() {});
  2656. return;
  2657. }
  2658. }
  2659. _model.logoevenementuploadResult =
  2660. await actions.bestandUpload(
  2661. _model
  2662. .uploadedLocalFile_uploadDataLogoEvenement,
  2663. '/en/flutterdrup/bestand_upload/upload.json',
  2664. FFAppState().userSessionname,
  2665. FFAppState().userSessionid,
  2666. FFAppState().userToken,
  2667. );
  2668. if (getJsonField(
  2669. _model.logoevenementuploadResult,
  2670. r'''$.success''',
  2671. )) {
  2672. _model.createLogoFid = getJsonField(
  2673. _model.logoevenementuploadResult,
  2674. r'''$.fid''',
  2675. ).toString();
  2676. _model.createLogoUrl = getJsonField(
  2677. _model.logoevenementuploadResult,
  2678. r'''$.url''',
  2679. ).toString();
  2680. safeSetState(() {});
  2681. } else {
  2682. ScaffoldMessenger.of(context).showSnackBar(
  2683. SnackBar(
  2684. content: Text(
  2685. getJsonField(
  2686. _model.logoevenementuploadResult,
  2687. r'''$.error''',
  2688. ).toString(),
  2689. style: TextStyle(
  2690. color: FlutterFlowTheme.of(context)
  2691. .primaryText,
  2692. ),
  2693. ),
  2694. duration: Duration(milliseconds: 4000),
  2695. backgroundColor:
  2696. FlutterFlowTheme.of(context)
  2697. .secondary,
  2698. ),
  2699. );
  2700. }
  2701. safeSetState(() {});
  2702. },
  2703. text: FFLocalizations.of(context).getText(
  2704. 'df4oowbq' /* Logo kiezen */,
  2705. ),
  2706. options: FFButtonOptions(
  2707. height: 40.0,
  2708. padding: EdgeInsetsDirectional.fromSTEB(
  2709. 16.0, 0.0, 16.0, 0.0),
  2710. iconPadding: EdgeInsetsDirectional.fromSTEB(
  2711. 0.0, 0.0, 0.0, 0.0),
  2712. color: FlutterFlowTheme.of(context).secondary,
  2713. textStyle: FlutterFlowTheme.of(context)
  2714. .titleSmall
  2715. .override(
  2716. font: GoogleFonts.roboto(
  2717. fontWeight:
  2718. FlutterFlowTheme.of(context)
  2719. .titleSmall
  2720. .fontWeight,
  2721. fontStyle:
  2722. FlutterFlowTheme.of(context)
  2723. .titleSmall
  2724. .fontStyle,
  2725. ),
  2726. color: Colors.white,
  2727. letterSpacing: 0.0,
  2728. fontWeight: FlutterFlowTheme.of(context)
  2729. .titleSmall
  2730. .fontWeight,
  2731. fontStyle: FlutterFlowTheme.of(context)
  2732. .titleSmall
  2733. .fontStyle,
  2734. ),
  2735. elevation: 0.0,
  2736. borderRadius: BorderRadius.circular(8.0),
  2737. ),
  2738. ),
  2739. ),
  2740. if (_model.createLogoUrl != null &&
  2741. _model.createLogoUrl != '')
  2742. ClipRRect(
  2743. borderRadius: BorderRadius.circular(8.0),
  2744. child: Image.network(
  2745. _model.createLogoUrl!,
  2746. width: 80.0,
  2747. height: 80.0,
  2748. fit: BoxFit.contain,
  2749. ),
  2750. ),
  2751. ],
  2752. ),
  2753. Row(
  2754. mainAxisSize: MainAxisSize.max,
  2755. children: [
  2756. if (_model.createFotosFids.length < 5)
  2757. Align(
  2758. alignment: AlignmentDirectional(-1.0, 0.0),
  2759. child: FFButtonWidget(
  2760. onPressed: () async {
  2761. final selectedMedia =
  2762. await selectMediaWithSourceBottomSheet(
  2763. context: context,
  2764. allowPhoto: true,
  2765. );
  2766. if (selectedMedia != null &&
  2767. selectedMedia.every((m) =>
  2768. validateFileFormat(
  2769. m.storagePath, context))) {
  2770. safeSetState(() => _model
  2771. .isDataUploading_uploadDataFotosEvent =
  2772. true);
  2773. var selectedUploadedFiles =
  2774. <FFUploadedFile>[];
  2775. try {
  2776. selectedUploadedFiles = selectedMedia
  2777. .map((m) => FFUploadedFile(
  2778. name: m.storagePath
  2779. .split('/')
  2780. .last,
  2781. bytes: m.bytes,
  2782. height: m.dimensions?.height,
  2783. width: m.dimensions?.width,
  2784. blurHash: m.blurHash,
  2785. originalFilename:
  2786. m.originalFilename,
  2787. ))
  2788. .toList();
  2789. } finally {
  2790. _model.isDataUploading_uploadDataFotosEvent =
  2791. false;
  2792. }
  2793. if (selectedUploadedFiles.length ==
  2794. selectedMedia.length) {
  2795. safeSetState(() {
  2796. _model.uploadedLocalFile_uploadDataFotosEvent =
  2797. selectedUploadedFiles.first;
  2798. });
  2799. } else {
  2800. safeSetState(() {});
  2801. return;
  2802. }
  2803. }
  2804. _model.fotoEvenementuploadResult =
  2805. await actions.bestandUpload(
  2806. _model
  2807. .uploadedLocalFile_uploadDataFotosEvent,
  2808. '/en/flutterdrup/bestand_upload/upload.json',
  2809. FFAppState().userSessionname,
  2810. FFAppState().userSessionid,
  2811. FFAppState().userToken,
  2812. );
  2813. if (getJsonField(
  2814. _model.fotoEvenementuploadResult,
  2815. r'''$.success''',
  2816. )) {
  2817. _model.addToCreateFotosFids(getJsonField(
  2818. _model.fotoEvenementuploadResult,
  2819. r'''$.fid''',
  2820. ).toString());
  2821. _model.addToCreateFotosUrls(getJsonField(
  2822. _model.fotoEvenementuploadResult,
  2823. r'''$.url''',
  2824. ).toString());
  2825. safeSetState(() {});
  2826. } else {
  2827. ScaffoldMessenger.of(context)
  2828. .showSnackBar(
  2829. SnackBar(
  2830. content: Text(
  2831. getJsonField(
  2832. _model.fotoEvenementuploadResult,
  2833. r'''$.error''',
  2834. ).toString(),
  2835. style: TextStyle(
  2836. color:
  2837. FlutterFlowTheme.of(context)
  2838. .primaryText,
  2839. ),
  2840. ),
  2841. duration:
  2842. Duration(milliseconds: 4000),
  2843. backgroundColor:
  2844. FlutterFlowTheme.of(context)
  2845. .secondary,
  2846. ),
  2847. );
  2848. }
  2849. safeSetState(() {});
  2850. },
  2851. text: FFLocalizations.of(context).getText(
  2852. 'hqwm9set' /* Foto's kiezen */,
  2853. ),
  2854. options: FFButtonOptions(
  2855. height: 40.0,
  2856. padding: EdgeInsetsDirectional.fromSTEB(
  2857. 16.0, 0.0, 16.0, 0.0),
  2858. iconPadding: EdgeInsetsDirectional.fromSTEB(
  2859. 0.0, 0.0, 0.0, 0.0),
  2860. color:
  2861. FlutterFlowTheme.of(context).secondary,
  2862. textStyle: FlutterFlowTheme.of(context)
  2863. .titleSmall
  2864. .override(
  2865. font: GoogleFonts.roboto(
  2866. fontWeight:
  2867. FlutterFlowTheme.of(context)
  2868. .titleSmall
  2869. .fontWeight,
  2870. fontStyle:
  2871. FlutterFlowTheme.of(context)
  2872. .titleSmall
  2873. .fontStyle,
  2874. ),
  2875. color: Colors.white,
  2876. letterSpacing: 0.0,
  2877. fontWeight:
  2878. FlutterFlowTheme.of(context)
  2879. .titleSmall
  2880. .fontWeight,
  2881. fontStyle:
  2882. FlutterFlowTheme.of(context)
  2883. .titleSmall
  2884. .fontStyle,
  2885. ),
  2886. elevation: 0.0,
  2887. borderRadius: BorderRadius.circular(8.0),
  2888. ),
  2889. ),
  2890. ),
  2891. if (_model.createFotosUrls.length > 0)
  2892. Builder(
  2893. builder: (context) {
  2894. final fotoItem =
  2895. _model.createFotosUrls.toList();
  2896. _model.debugGeneratorVariables[
  2897. 'fotoItem${fotoItem.length > 100 ? ' (first 100)' : ''}'] =
  2898. debugSerializeParam(
  2899. fotoItem.take(100),
  2900. ParamType.String,
  2901. isList: true,
  2902. link:
  2903. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  2904. name: 'String',
  2905. nullable: false,
  2906. );
  2907. debugLogWidgetClass(_model);
  2908. return Wrap(
  2909. spacing: 8.0,
  2910. runSpacing: 8.0,
  2911. alignment: WrapAlignment.start,
  2912. crossAxisAlignment:
  2913. WrapCrossAlignment.start,
  2914. direction: Axis.horizontal,
  2915. runAlignment: WrapAlignment.start,
  2916. verticalDirection: VerticalDirection.down,
  2917. clipBehavior: Clip.none,
  2918. children: List.generate(fotoItem.length,
  2919. (fotoItemIndex) {
  2920. final fotoItemItem =
  2921. fotoItem[fotoItemIndex];
  2922. return ClipRRect(
  2923. borderRadius:
  2924. BorderRadius.circular(8.0),
  2925. child: Image.network(
  2926. fotoItemItem,
  2927. width: 80.0,
  2928. height: 80.0,
  2929. fit: BoxFit.cover,
  2930. ),
  2931. );
  2932. }),
  2933. );
  2934. },
  2935. ),
  2936. ],
  2937. ),
  2938. ],
  2939. ),
  2940. ),
  2941. if (_model.createHorecagelegenheidNid != null &&
  2942. _model.createHorecagelegenheidNid != '')
  2943. FFButtonWidget(
  2944. onPressed: () async {
  2945. _model.createResult = await actions.evenementCreate(
  2946. FFAppState().userSessionname,
  2947. FFAppState().userSessionid,
  2948. FFAppState().userToken,
  2949. _model.createHorecagelegenheidNid!,
  2950. _model.textFieldTitelTextController.text,
  2951. dateTimeFormat(
  2952. "yyyy-MM-dd HH:mm:ss",
  2953. _model.datePicked1,
  2954. locale: FFLocalizations.of(context).languageCode,
  2955. ),
  2956. dateTimeFormat(
  2957. "yyyy-MM-dd HH:mm:ss",
  2958. _model.datePicked2,
  2959. locale: FFLocalizations.of(context).languageCode,
  2960. ),
  2961. _model.textFieldOmschrijvingTextController.text,
  2962. _model.createEntreeTid,
  2963. _model.textFieldEntreeprijsTextController.text,
  2964. _model.textFieldToelichtingEntreeTextController.text,
  2965. _model.textFieldTicketsURLTextController.text,
  2966. _model.textFieldWebsiteURLTextController.text,
  2967. _model.createCategorieTids.toList(),
  2968. _model.createLogoFid,
  2969. _model.createFotosFids.toList(),
  2970. );
  2971. if (getJsonField(
  2972. _model.createResult,
  2973. r'''$.success''',
  2974. )) {
  2975. ScaffoldMessenger.of(context).showSnackBar(
  2976. SnackBar(
  2977. content: Text(
  2978. 'Je evenement is geplaatst.',
  2979. style: TextStyle(
  2980. color:
  2981. FlutterFlowTheme.of(context).primaryText,
  2982. ),
  2983. ),
  2984. duration: Duration(milliseconds: 5000),
  2985. backgroundColor:
  2986. FlutterFlowTheme.of(context).secondary,
  2987. ),
  2988. );
  2989. context.safePop();
  2990. } else {
  2991. ScaffoldMessenger.of(context).showSnackBar(
  2992. SnackBar(
  2993. content: Text(
  2994. getJsonField(
  2995. _model.createResult,
  2996. r'''$.error''',
  2997. ).toString(),
  2998. style: TextStyle(
  2999. color:
  3000. FlutterFlowTheme.of(context).primaryText,
  3001. ),
  3002. ),
  3003. duration: Duration(milliseconds: 4000),
  3004. backgroundColor:
  3005. FlutterFlowTheme.of(context).secondary,
  3006. ),
  3007. );
  3008. }
  3009. safeSetState(() {});
  3010. },
  3011. text: FFLocalizations.of(context).getText(
  3012. '9qx16tm9' /* Evenement indienen */,
  3013. ),
  3014. options: FFButtonOptions(
  3015. height: 40.0,
  3016. padding: EdgeInsetsDirectional.fromSTEB(
  3017. 16.0, 0.0, 16.0, 0.0),
  3018. iconPadding:
  3019. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  3020. color: FlutterFlowTheme.of(context).secondary,
  3021. textStyle:
  3022. FlutterFlowTheme.of(context).titleSmall.override(
  3023. font: GoogleFonts.roboto(
  3024. fontWeight: FlutterFlowTheme.of(context)
  3025. .titleSmall
  3026. .fontWeight,
  3027. fontStyle: FlutterFlowTheme.of(context)
  3028. .titleSmall
  3029. .fontStyle,
  3030. ),
  3031. color: Colors.white,
  3032. letterSpacing: 0.0,
  3033. fontWeight: FlutterFlowTheme.of(context)
  3034. .titleSmall
  3035. .fontWeight,
  3036. fontStyle: FlutterFlowTheme.of(context)
  3037. .titleSmall
  3038. .fontStyle,
  3039. ),
  3040. elevation: 0.0,
  3041. borderRadius: BorderRadius.circular(8.0),
  3042. ),
  3043. ),
  3044. ],
  3045. ),
  3046. ),
  3047. ),
  3048. ),
  3049. ),
  3050. );
  3051. }
  3052. }