uitgaansevenement_aanmaken_widget.dart 176 KB

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