uitgaansevenement_aanmaken_widget.dart 176 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202
  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: MediaQuery.sizeOf(context)
  2762. .height *
  2763. 0.85,
  2764. child: FotoboekGridComponentWidget(
  2765. bijKeuze: (fid, url) async {
  2766. _model.createLogoFid = fid;
  2767. _model.createLogoUrl = url;
  2768. safeSetState(() {});
  2769. },
  2770. ),
  2771. ),
  2772. ),
  2773. );
  2774. },
  2775. ).then((value) => safeSetState(() {}));
  2776. },
  2777. text: FFLocalizations.of(context).getText(
  2778. 'ml0k1fmv' /* Uit fotoboek */,
  2779. ),
  2780. options: FFButtonOptions(
  2781. height: 40.0,
  2782. padding: EdgeInsetsDirectional.fromSTEB(
  2783. 16.0, 0.0, 16.0, 0.0),
  2784. iconPadding: EdgeInsetsDirectional.fromSTEB(
  2785. 0.0, 0.0, 0.0, 0.0),
  2786. color: FlutterFlowTheme.of(context).secondary,
  2787. textStyle: FlutterFlowTheme.of(context)
  2788. .titleSmall
  2789. .override(
  2790. font: GoogleFonts.roboto(
  2791. fontWeight:
  2792. FlutterFlowTheme.of(context)
  2793. .titleSmall
  2794. .fontWeight,
  2795. fontStyle:
  2796. FlutterFlowTheme.of(context)
  2797. .titleSmall
  2798. .fontStyle,
  2799. ),
  2800. color: Colors.white,
  2801. letterSpacing: 0.0,
  2802. fontWeight: FlutterFlowTheme.of(context)
  2803. .titleSmall
  2804. .fontWeight,
  2805. fontStyle: FlutterFlowTheme.of(context)
  2806. .titleSmall
  2807. .fontStyle,
  2808. ),
  2809. elevation: 0.0,
  2810. borderRadius: BorderRadius.circular(8.0),
  2811. ),
  2812. ),
  2813. ),
  2814. if (_model.createLogoUrl != null &&
  2815. _model.createLogoUrl != '')
  2816. ClipRRect(
  2817. borderRadius: BorderRadius.circular(8.0),
  2818. child: Image.network(
  2819. _model.createLogoUrl!,
  2820. width: 80.0,
  2821. height: 80.0,
  2822. fit: BoxFit.contain,
  2823. ),
  2824. ),
  2825. ],
  2826. ),
  2827. Row(
  2828. mainAxisSize: MainAxisSize.max,
  2829. children: [
  2830. if (_model.createFotosFids.length < 5)
  2831. Align(
  2832. alignment: AlignmentDirectional(-1.0, 0.0),
  2833. child: FFButtonWidget(
  2834. onPressed: () async {
  2835. final selectedMedia =
  2836. await selectMediaWithSourceBottomSheet(
  2837. context: context,
  2838. allowPhoto: true,
  2839. );
  2840. if (selectedMedia != null &&
  2841. selectedMedia.every((m) =>
  2842. validateFileFormat(
  2843. m.storagePath, context))) {
  2844. safeSetState(() => _model
  2845. .isDataUploading_uploadDataFotosEvent =
  2846. true);
  2847. var selectedUploadedFiles =
  2848. <FFUploadedFile>[];
  2849. try {
  2850. selectedUploadedFiles = selectedMedia
  2851. .map((m) => FFUploadedFile(
  2852. name: m.storagePath
  2853. .split('/')
  2854. .last,
  2855. bytes: m.bytes,
  2856. height: m.dimensions?.height,
  2857. width: m.dimensions?.width,
  2858. blurHash: m.blurHash,
  2859. originalFilename:
  2860. m.originalFilename,
  2861. ))
  2862. .toList();
  2863. } finally {
  2864. _model.isDataUploading_uploadDataFotosEvent =
  2865. false;
  2866. }
  2867. if (selectedUploadedFiles.length ==
  2868. selectedMedia.length) {
  2869. safeSetState(() {
  2870. _model.uploadedLocalFile_uploadDataFotosEvent =
  2871. selectedUploadedFiles.first;
  2872. });
  2873. } else {
  2874. safeSetState(() {});
  2875. return;
  2876. }
  2877. }
  2878. _model.fotoEvenementuploadResult =
  2879. await actions.bestandUpload(
  2880. _model
  2881. .uploadedLocalFile_uploadDataFotosEvent,
  2882. '/en/flutterdrup/bestand_upload/upload.json',
  2883. FFAppState().userSessionname,
  2884. FFAppState().userSessionid,
  2885. FFAppState().userToken,
  2886. );
  2887. if (getJsonField(
  2888. _model.fotoEvenementuploadResult,
  2889. r'''$.success''',
  2890. )) {
  2891. _model.addToCreateFotosFids(getJsonField(
  2892. _model.fotoEvenementuploadResult,
  2893. r'''$.fid''',
  2894. ).toString());
  2895. _model.addToCreateFotosUrls(getJsonField(
  2896. _model.fotoEvenementuploadResult,
  2897. r'''$.url''',
  2898. ).toString());
  2899. safeSetState(() {});
  2900. } else {
  2901. ScaffoldMessenger.of(context)
  2902. .showSnackBar(
  2903. SnackBar(
  2904. content: Text(
  2905. getJsonField(
  2906. _model.fotoEvenementuploadResult,
  2907. r'''$.error''',
  2908. ).toString(),
  2909. style: TextStyle(
  2910. color:
  2911. FlutterFlowTheme.of(context)
  2912. .primaryText,
  2913. ),
  2914. ),
  2915. duration:
  2916. Duration(milliseconds: 4000),
  2917. backgroundColor:
  2918. FlutterFlowTheme.of(context)
  2919. .secondary,
  2920. ),
  2921. );
  2922. }
  2923. safeSetState(() {});
  2924. },
  2925. text: FFLocalizations.of(context).getText(
  2926. 'hqwm9set' /* Foto's kiezen */,
  2927. ),
  2928. options: FFButtonOptions(
  2929. height: 40.0,
  2930. padding: EdgeInsetsDirectional.fromSTEB(
  2931. 16.0, 0.0, 16.0, 0.0),
  2932. iconPadding: EdgeInsetsDirectional.fromSTEB(
  2933. 0.0, 0.0, 0.0, 0.0),
  2934. color:
  2935. FlutterFlowTheme.of(context).secondary,
  2936. textStyle: FlutterFlowTheme.of(context)
  2937. .titleSmall
  2938. .override(
  2939. font: GoogleFonts.roboto(
  2940. fontWeight:
  2941. FlutterFlowTheme.of(context)
  2942. .titleSmall
  2943. .fontWeight,
  2944. fontStyle:
  2945. FlutterFlowTheme.of(context)
  2946. .titleSmall
  2947. .fontStyle,
  2948. ),
  2949. color: Colors.white,
  2950. letterSpacing: 0.0,
  2951. fontWeight:
  2952. FlutterFlowTheme.of(context)
  2953. .titleSmall
  2954. .fontWeight,
  2955. fontStyle:
  2956. FlutterFlowTheme.of(context)
  2957. .titleSmall
  2958. .fontStyle,
  2959. ),
  2960. elevation: 0.0,
  2961. borderRadius: BorderRadius.circular(8.0),
  2962. ),
  2963. ),
  2964. ),
  2965. if (_model.createFotosUrls.length > 0)
  2966. Builder(
  2967. builder: (context) {
  2968. final fotoItem =
  2969. _model.createFotosUrls.toList();
  2970. _model.debugGeneratorVariables[
  2971. 'fotoItem${fotoItem.length > 100 ? ' (first 100)' : ''}'] =
  2972. debugSerializeParam(
  2973. fotoItem.take(100),
  2974. ParamType.String,
  2975. isList: true,
  2976. link:
  2977. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  2978. name: 'String',
  2979. nullable: false,
  2980. );
  2981. debugLogWidgetClass(_model);
  2982. return Wrap(
  2983. spacing: 8.0,
  2984. runSpacing: 8.0,
  2985. alignment: WrapAlignment.start,
  2986. crossAxisAlignment:
  2987. WrapCrossAlignment.start,
  2988. direction: Axis.horizontal,
  2989. runAlignment: WrapAlignment.start,
  2990. verticalDirection: VerticalDirection.down,
  2991. clipBehavior: Clip.none,
  2992. children: List.generate(fotoItem.length,
  2993. (fotoItemIndex) {
  2994. final fotoItemItem =
  2995. fotoItem[fotoItemIndex];
  2996. return ClipRRect(
  2997. borderRadius:
  2998. BorderRadius.circular(8.0),
  2999. child: Image.network(
  3000. fotoItemItem,
  3001. width: 80.0,
  3002. height: 80.0,
  3003. fit: BoxFit.cover,
  3004. ),
  3005. );
  3006. }),
  3007. );
  3008. },
  3009. ),
  3010. ],
  3011. ),
  3012. if (_model.fotoboekOpen)
  3013. Padding(
  3014. padding: EdgeInsetsDirectional.fromSTEB(
  3015. 0.0, 12.0, 0.0, 0.0),
  3016. child: Container(
  3017. height: 300.0,
  3018. decoration: BoxDecoration(),
  3019. child: Visibility(
  3020. visible: _model.fotoboekOpen,
  3021. child: Column(
  3022. mainAxisSize: MainAxisSize.max,
  3023. children: [
  3024. Expanded(
  3025. child: wrapWithModel(
  3026. model:
  3027. _model.fotoboekGridComponentModel,
  3028. updateCallback: () =>
  3029. safeSetState(() {}),
  3030. child: Builder(builder: (_) {
  3031. return DebugFlutterFlowModelContext(
  3032. rootModel: _model.rootModel,
  3033. child: FotoboekGridComponentWidget(
  3034. bijKeuze: (fid, url) async {},
  3035. ),
  3036. );
  3037. }),
  3038. ),
  3039. ),
  3040. ],
  3041. ),
  3042. ),
  3043. ),
  3044. ),
  3045. ],
  3046. ),
  3047. ),
  3048. if (_model.createHorecagelegenheidNid != null &&
  3049. _model.createHorecagelegenheidNid != '')
  3050. FFButtonWidget(
  3051. onPressed: () async {
  3052. _model.createResult = await actions.evenementCreate(
  3053. FFAppState().userSessionname,
  3054. FFAppState().userSessionid,
  3055. FFAppState().userToken,
  3056. _model.createHorecagelegenheidNid!,
  3057. _model.textFieldTitelTextController.text,
  3058. dateTimeFormat(
  3059. "yyyy-MM-dd HH:mm:ss",
  3060. _model.datePicked1,
  3061. locale: FFLocalizations.of(context).languageCode,
  3062. ),
  3063. dateTimeFormat(
  3064. "yyyy-MM-dd HH:mm:ss",
  3065. _model.datePicked2,
  3066. locale: FFLocalizations.of(context).languageCode,
  3067. ),
  3068. _model.textFieldOmschrijvingTextController.text,
  3069. _model.createEntreeTid,
  3070. _model.textFieldEntreeprijsTextController.text,
  3071. _model.textFieldToelichtingEntreeTextController.text,
  3072. _model.textFieldTicketsURLTextController.text,
  3073. _model.textFieldWebsiteURLTextController.text,
  3074. _model.createCategorieTids.toList(),
  3075. _model.createLogoFid,
  3076. _model.createFotosFids.toList(),
  3077. );
  3078. if (getJsonField(
  3079. _model.createResult,
  3080. r'''$.success''',
  3081. )) {
  3082. ScaffoldMessenger.of(context).showSnackBar(
  3083. SnackBar(
  3084. content: Text(
  3085. 'Je evenement is geplaatst.',
  3086. style: TextStyle(
  3087. color:
  3088. FlutterFlowTheme.of(context).primaryText,
  3089. ),
  3090. ),
  3091. duration: Duration(milliseconds: 5000),
  3092. backgroundColor:
  3093. FlutterFlowTheme.of(context).secondary,
  3094. ),
  3095. );
  3096. context.safePop();
  3097. } else {
  3098. ScaffoldMessenger.of(context).showSnackBar(
  3099. SnackBar(
  3100. content: Text(
  3101. getJsonField(
  3102. _model.createResult,
  3103. r'''$.error''',
  3104. ).toString(),
  3105. style: TextStyle(
  3106. color:
  3107. FlutterFlowTheme.of(context).primaryText,
  3108. ),
  3109. ),
  3110. duration: Duration(milliseconds: 4000),
  3111. backgroundColor:
  3112. FlutterFlowTheme.of(context).secondary,
  3113. ),
  3114. );
  3115. }
  3116. safeSetState(() {});
  3117. },
  3118. text: FFLocalizations.of(context).getText(
  3119. '9qx16tm9' /* Evenement indienen */,
  3120. ),
  3121. options: FFButtonOptions(
  3122. height: 40.0,
  3123. padding: EdgeInsetsDirectional.fromSTEB(
  3124. 16.0, 0.0, 16.0, 0.0),
  3125. iconPadding:
  3126. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  3127. color: FlutterFlowTheme.of(context).secondary,
  3128. textStyle:
  3129. FlutterFlowTheme.of(context).titleSmall.override(
  3130. font: GoogleFonts.roboto(
  3131. fontWeight: FlutterFlowTheme.of(context)
  3132. .titleSmall
  3133. .fontWeight,
  3134. fontStyle: FlutterFlowTheme.of(context)
  3135. .titleSmall
  3136. .fontStyle,
  3137. ),
  3138. color: Colors.white,
  3139. letterSpacing: 0.0,
  3140. fontWeight: FlutterFlowTheme.of(context)
  3141. .titleSmall
  3142. .fontWeight,
  3143. fontStyle: FlutterFlowTheme.of(context)
  3144. .titleSmall
  3145. .fontStyle,
  3146. ),
  3147. elevation: 0.0,
  3148. borderRadius: BorderRadius.circular(8.0),
  3149. ),
  3150. ),
  3151. ],
  3152. ),
  3153. ),
  3154. ),
  3155. ),
  3156. ),
  3157. );
  3158. }
  3159. }