uitgaansevenement_aanmaken_widget.dart 170 KB

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