uitgaansevenement_aanmaken_widget.dart 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445
  1. import '/backend/api_requests/api_calls.dart';
  2. import '/flutter_flow/flutter_flow_drop_down.dart';
  3. import '/flutter_flow/flutter_flow_theme.dart';
  4. import '/flutter_flow/flutter_flow_util.dart';
  5. import '/flutter_flow/flutter_flow_widgets.dart';
  6. import '/flutter_flow/form_field_controller.dart';
  7. import '/flutter_flow/upload_data.dart';
  8. import 'dart:ui';
  9. import '/custom_code/actions/index.dart' as actions;
  10. import '/flutter_flow/custom_functions.dart' as functions;
  11. import 'package:flutter/foundation.dart';
  12. import 'package:flutter/material.dart';
  13. import 'package:flutter_spinkit/flutter_spinkit.dart';
  14. import 'package:google_fonts/google_fonts.dart';
  15. import 'package:provider/provider.dart';
  16. import 'uitgaansevenement_aanmaken_model.dart';
  17. export 'uitgaansevenement_aanmaken_model.dart';
  18. class UitgaansevenementAanmakenWidget extends StatefulWidget {
  19. const UitgaansevenementAanmakenWidget({super.key});
  20. static String routeName = 'uitgaansevenementAanmaken';
  21. static String routePath = '/uitgaansevenementAanmaken';
  22. @override
  23. State<UitgaansevenementAanmakenWidget> createState() =>
  24. _UitgaansevenementAanmakenWidgetState();
  25. }
  26. class _UitgaansevenementAanmakenWidgetState
  27. extends State<UitgaansevenementAanmakenWidget> with RouteAware {
  28. late UitgaansevenementAanmakenModel _model;
  29. final scaffoldKey = GlobalKey<ScaffoldState>();
  30. @override
  31. void initState() {
  32. super.initState();
  33. _model = createModel(context, () => UitgaansevenementAanmakenModel());
  34. _model.textFieldTitelTextController ??= TextEditingController()
  35. ..addListener(() {
  36. debugLogWidgetClass(_model);
  37. });
  38. _model.textFieldTitelFocusNode ??= FocusNode();
  39. _model.textFieldOmschrijvingTextController ??= TextEditingController()
  40. ..addListener(() {
  41. debugLogWidgetClass(_model);
  42. });
  43. _model.textFieldOmschrijvingFocusNode ??= FocusNode();
  44. _model.textFieldDatumStartTextController ??= TextEditingController()
  45. ..addListener(() {
  46. debugLogWidgetClass(_model);
  47. });
  48. _model.textFieldDatumStartFocusNode ??= FocusNode();
  49. _model.textFieldDatumEindTextController ??= TextEditingController()
  50. ..addListener(() {
  51. debugLogWidgetClass(_model);
  52. });
  53. _model.textFieldDatumEindFocusNode ??= FocusNode();
  54. _model.textFieldWebsiteURLTextController ??= TextEditingController()
  55. ..addListener(() {
  56. debugLogWidgetClass(_model);
  57. });
  58. _model.textFieldWebsiteURLFocusNode ??= FocusNode();
  59. _model.textFieldToelichtingEntreeTextController ??= TextEditingController()
  60. ..addListener(() {
  61. debugLogWidgetClass(_model);
  62. });
  63. _model.textFieldToelichtingEntreeFocusNode ??= FocusNode();
  64. _model.textFieldEntreeprijsTextController ??= TextEditingController()
  65. ..addListener(() {
  66. debugLogWidgetClass(_model);
  67. });
  68. _model.textFieldEntreeprijsFocusNode ??= FocusNode();
  69. }
  70. @override
  71. void dispose() {
  72. routeObserver.unsubscribe(this);
  73. _model.dispose();
  74. super.dispose();
  75. }
  76. @override
  77. void didUpdateWidget(UitgaansevenementAanmakenWidget oldWidget) {
  78. super.didUpdateWidget(oldWidget);
  79. _model.widget = widget;
  80. }
  81. @override
  82. void didChangeDependencies() {
  83. super.didChangeDependencies();
  84. final route = DebugModalRoute.of(context);
  85. if (route != null) {
  86. routeObserver.subscribe(this, route);
  87. }
  88. debugLogGlobalProperty(context);
  89. }
  90. @override
  91. void didPopNext() {
  92. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  93. setState(() => _model.isRouteVisible = true);
  94. debugLogWidgetClass(_model);
  95. }
  96. }
  97. @override
  98. void didPush() {
  99. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  100. setState(() => _model.isRouteVisible = true);
  101. debugLogWidgetClass(_model);
  102. }
  103. }
  104. @override
  105. void didPop() {
  106. _model.isRouteVisible = false;
  107. }
  108. @override
  109. void didPushNext() {
  110. _model.isRouteVisible = false;
  111. }
  112. @override
  113. Widget build(BuildContext context) {
  114. DebugFlutterFlowModelContext.maybeOf(context)
  115. ?.parentModelCallback
  116. ?.call(_model);
  117. context.watch<FFAppState>();
  118. return GestureDetector(
  119. onTap: () {
  120. FocusScope.of(context).unfocus();
  121. FocusManager.instance.primaryFocus?.unfocus();
  122. },
  123. child: Scaffold(
  124. key: scaffoldKey,
  125. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  126. appBar: AppBar(
  127. backgroundColor: FlutterFlowTheme.of(context).primary,
  128. automaticallyImplyLeading: true,
  129. actions: [],
  130. centerTitle: true,
  131. elevation: 0.0,
  132. ),
  133. body: SafeArea(
  134. top: true,
  135. child: Padding(
  136. padding: EdgeInsets.all(16.0),
  137. child: SingleChildScrollView(
  138. child: Column(
  139. mainAxisSize: MainAxisSize.max,
  140. children: [
  141. Align(
  142. alignment: AlignmentDirectional(-1.0, 0.0),
  143. child: Padding(
  144. padding: EdgeInsets.all(16.0),
  145. child: Container(
  146. width: double.infinity,
  147. decoration: BoxDecoration(
  148. color:
  149. FlutterFlowTheme.of(context).secondaryBackground,
  150. borderRadius: BorderRadius.only(),
  151. border: Border.all(
  152. color: Color(0xFFEEEEEE),
  153. width: 3.0,
  154. ),
  155. ),
  156. child: Column(
  157. mainAxisSize: MainAxisSize.max,
  158. children: [
  159. Align(
  160. alignment: AlignmentDirectional(-1.0, 0.0),
  161. child: Container(
  162. width: double.infinity,
  163. child: TextFormField(
  164. controller:
  165. _model.textFieldTitelTextController,
  166. focusNode: _model.textFieldTitelFocusNode,
  167. autofocus: false,
  168. enabled: true,
  169. obscureText: false,
  170. decoration: InputDecoration(
  171. isDense: true,
  172. labelText:
  173. FFLocalizations.of(context).getText(
  174. 'vc80d3lh' /* Titel */,
  175. ),
  176. labelStyle: FlutterFlowTheme.of(context)
  177. .labelMedium
  178. .override(
  179. font: GoogleFonts.roboto(
  180. fontWeight:
  181. FlutterFlowTheme.of(context)
  182. .labelMedium
  183. .fontWeight,
  184. fontStyle:
  185. FlutterFlowTheme.of(context)
  186. .labelMedium
  187. .fontStyle,
  188. ),
  189. letterSpacing: 0.0,
  190. fontWeight:
  191. FlutterFlowTheme.of(context)
  192. .labelMedium
  193. .fontWeight,
  194. fontStyle:
  195. FlutterFlowTheme.of(context)
  196. .labelMedium
  197. .fontStyle,
  198. ),
  199. hintText:
  200. FFLocalizations.of(context).getText(
  201. 'vu6qv8cj' /* Titel activiteit */,
  202. ),
  203. hintStyle: FlutterFlowTheme.of(context)
  204. .labelMedium
  205. .override(
  206. font: GoogleFonts.roboto(
  207. fontWeight:
  208. FlutterFlowTheme.of(context)
  209. .labelMedium
  210. .fontWeight,
  211. fontStyle:
  212. FlutterFlowTheme.of(context)
  213. .labelMedium
  214. .fontStyle,
  215. ),
  216. letterSpacing: 0.0,
  217. fontWeight:
  218. FlutterFlowTheme.of(context)
  219. .labelMedium
  220. .fontWeight,
  221. fontStyle:
  222. FlutterFlowTheme.of(context)
  223. .labelMedium
  224. .fontStyle,
  225. ),
  226. enabledBorder: OutlineInputBorder(
  227. borderSide: BorderSide(
  228. color: Color(0x00000000),
  229. width: 1.0,
  230. ),
  231. borderRadius: BorderRadius.circular(0.0),
  232. ),
  233. focusedBorder: OutlineInputBorder(
  234. borderSide: BorderSide(
  235. color: Color(0x00000000),
  236. width: 1.0,
  237. ),
  238. borderRadius: BorderRadius.circular(0.0),
  239. ),
  240. errorBorder: OutlineInputBorder(
  241. borderSide: BorderSide(
  242. color:
  243. FlutterFlowTheme.of(context).error,
  244. width: 1.0,
  245. ),
  246. borderRadius: BorderRadius.circular(0.0),
  247. ),
  248. focusedErrorBorder: OutlineInputBorder(
  249. borderSide: BorderSide(
  250. color:
  251. FlutterFlowTheme.of(context).error,
  252. width: 1.0,
  253. ),
  254. borderRadius: BorderRadius.circular(0.0),
  255. ),
  256. filled: true,
  257. fillColor: FlutterFlowTheme.of(context)
  258. .secondaryBackground,
  259. ),
  260. style: FlutterFlowTheme.of(context)
  261. .bodyMedium
  262. .override(
  263. font: GoogleFonts.roboto(
  264. fontWeight:
  265. FlutterFlowTheme.of(context)
  266. .bodyMedium
  267. .fontWeight,
  268. fontStyle:
  269. FlutterFlowTheme.of(context)
  270. .bodyMedium
  271. .fontStyle,
  272. ),
  273. letterSpacing: 0.0,
  274. fontWeight: FlutterFlowTheme.of(context)
  275. .bodyMedium
  276. .fontWeight,
  277. fontStyle: FlutterFlowTheme.of(context)
  278. .bodyMedium
  279. .fontStyle,
  280. ),
  281. cursorColor:
  282. FlutterFlowTheme.of(context).primaryText,
  283. enableInteractiveSelection: true,
  284. validator: _model
  285. .textFieldTitelTextControllerValidator
  286. .asValidator(context),
  287. ),
  288. ),
  289. ),
  290. Container(
  291. width: double.infinity,
  292. child: TextFormField(
  293. controller:
  294. _model.textFieldOmschrijvingTextController,
  295. focusNode:
  296. _model.textFieldOmschrijvingFocusNode,
  297. autofocus: false,
  298. enabled: true,
  299. obscureText: false,
  300. decoration: InputDecoration(
  301. isDense: true,
  302. labelText:
  303. FFLocalizations.of(context).getText(
  304. 'd7zhpzuo' /* Omschrijving */,
  305. ),
  306. labelStyle: FlutterFlowTheme.of(context)
  307. .labelMedium
  308. .override(
  309. font: GoogleFonts.roboto(
  310. fontWeight:
  311. FlutterFlowTheme.of(context)
  312. .labelMedium
  313. .fontWeight,
  314. fontStyle:
  315. FlutterFlowTheme.of(context)
  316. .labelMedium
  317. .fontStyle,
  318. ),
  319. letterSpacing: 0.0,
  320. fontWeight: FlutterFlowTheme.of(context)
  321. .labelMedium
  322. .fontWeight,
  323. fontStyle: FlutterFlowTheme.of(context)
  324. .labelMedium
  325. .fontStyle,
  326. ),
  327. hintText: FFLocalizations.of(context).getText(
  328. '1gf3e9v1' /* Omschrijving activiteit */,
  329. ),
  330. hintStyle: FlutterFlowTheme.of(context)
  331. .labelMedium
  332. .override(
  333. font: GoogleFonts.roboto(
  334. fontWeight:
  335. FlutterFlowTheme.of(context)
  336. .labelMedium
  337. .fontWeight,
  338. fontStyle:
  339. FlutterFlowTheme.of(context)
  340. .labelMedium
  341. .fontStyle,
  342. ),
  343. letterSpacing: 0.0,
  344. fontWeight: FlutterFlowTheme.of(context)
  345. .labelMedium
  346. .fontWeight,
  347. fontStyle: FlutterFlowTheme.of(context)
  348. .labelMedium
  349. .fontStyle,
  350. ),
  351. enabledBorder: OutlineInputBorder(
  352. borderSide: BorderSide(
  353. color: Color(0x00000000),
  354. width: 1.0,
  355. ),
  356. borderRadius: BorderRadius.circular(0.0),
  357. ),
  358. focusedBorder: OutlineInputBorder(
  359. borderSide: BorderSide(
  360. color: Color(0x00000000),
  361. width: 1.0,
  362. ),
  363. borderRadius: BorderRadius.circular(0.0),
  364. ),
  365. errorBorder: OutlineInputBorder(
  366. borderSide: BorderSide(
  367. color: FlutterFlowTheme.of(context).error,
  368. width: 1.0,
  369. ),
  370. borderRadius: BorderRadius.circular(0.0),
  371. ),
  372. focusedErrorBorder: OutlineInputBorder(
  373. borderSide: BorderSide(
  374. color: FlutterFlowTheme.of(context).error,
  375. width: 1.0,
  376. ),
  377. borderRadius: BorderRadius.circular(0.0),
  378. ),
  379. filled: true,
  380. fillColor: FlutterFlowTheme.of(context)
  381. .secondaryBackground,
  382. ),
  383. style: FlutterFlowTheme.of(context)
  384. .bodyMedium
  385. .override(
  386. font: GoogleFonts.roboto(
  387. fontWeight: FlutterFlowTheme.of(context)
  388. .bodyMedium
  389. .fontWeight,
  390. fontStyle: FlutterFlowTheme.of(context)
  391. .bodyMedium
  392. .fontStyle,
  393. ),
  394. letterSpacing: 0.0,
  395. fontWeight: FlutterFlowTheme.of(context)
  396. .bodyMedium
  397. .fontWeight,
  398. fontStyle: FlutterFlowTheme.of(context)
  399. .bodyMedium
  400. .fontStyle,
  401. ),
  402. maxLines: 5,
  403. cursorColor:
  404. FlutterFlowTheme.of(context).primaryText,
  405. enableInteractiveSelection: true,
  406. validator: _model
  407. .textFieldOmschrijvingTextControllerValidator
  408. .asValidator(context),
  409. ),
  410. ),
  411. Align(
  412. alignment: AlignmentDirectional(-1.0, 0.0),
  413. child: Text(
  414. FFLocalizations.of(context).getText(
  415. 'p0xm7daj' /* Categorie evenement */,
  416. ),
  417. style: FlutterFlowTheme.of(context)
  418. .bodyMedium
  419. .override(
  420. font: GoogleFonts.roboto(
  421. fontWeight: FlutterFlowTheme.of(context)
  422. .bodyMedium
  423. .fontWeight,
  424. fontStyle: FlutterFlowTheme.of(context)
  425. .bodyMedium
  426. .fontStyle,
  427. ),
  428. letterSpacing: 0.0,
  429. fontWeight: FlutterFlowTheme.of(context)
  430. .bodyMedium
  431. .fontWeight,
  432. fontStyle: FlutterFlowTheme.of(context)
  433. .bodyMedium
  434. .fontStyle,
  435. ),
  436. ),
  437. ),
  438. Align(
  439. alignment: AlignmentDirectional(-1.0, 0.0),
  440. child: FutureBuilder<ApiCallResponse>(
  441. future: ProductieGroup.categorieenCall.call(
  442. sessionName: FFAppState().userSessionname,
  443. sessid: FFAppState().userSessionid,
  444. ),
  445. builder: (context, snapshot) {
  446. // Customize what your widget looks like when it's loading.
  447. if (!snapshot.hasData) {
  448. return Center(
  449. child: SizedBox(
  450. width: 80.0,
  451. height: 80.0,
  452. child: SpinKitFadingCircle(
  453. color: FlutterFlowTheme.of(context)
  454. .primary,
  455. size: 80.0,
  456. ),
  457. ),
  458. );
  459. }
  460. final dropDownCategorieenCategorieenResponse =
  461. snapshot.data!;
  462. _model.debugBackendQueries[
  463. 'ProductieGroup.categorieenCall_statusCode_DropDown_b8cbpd9v'] =
  464. debugSerializeParam(
  465. dropDownCategorieenCategorieenResponse
  466. .statusCode,
  467. ParamType.int,
  468. link:
  469. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  470. name: 'int',
  471. nullable: false,
  472. );
  473. _model.debugBackendQueries[
  474. 'ProductieGroup.categorieenCall_responseBody_DropDown_b8cbpd9v'] =
  475. debugSerializeParam(
  476. dropDownCategorieenCategorieenResponse
  477. .bodyText,
  478. ParamType.String,
  479. link:
  480. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  481. name: 'String',
  482. nullable: false,
  483. );
  484. debugLogWidgetClass(_model);
  485. return FlutterFlowDropDown<String>(
  486. multiSelectController: _model
  487. .dropDownCategorieenValueController ??=
  488. FormListFieldController<String>(null),
  489. options: List<String>.from(
  490. functions.categorieSubTids(
  491. dropDownCategorieenCategorieenResponse
  492. .jsonBody)!),
  493. optionLabels: functions.categorieSubLabels(
  494. dropDownCategorieenCategorieenResponse
  495. .jsonBody)!,
  496. width: 200.0,
  497. height: 40.0,
  498. searchHintTextStyle:
  499. FlutterFlowTheme.of(context)
  500. .labelMedium
  501. .override(
  502. font: GoogleFonts.roboto(
  503. fontWeight:
  504. FlutterFlowTheme.of(context)
  505. .labelMedium
  506. .fontWeight,
  507. fontStyle:
  508. FlutterFlowTheme.of(context)
  509. .labelMedium
  510. .fontStyle,
  511. ),
  512. letterSpacing: 0.0,
  513. fontWeight:
  514. FlutterFlowTheme.of(context)
  515. .labelMedium
  516. .fontWeight,
  517. fontStyle:
  518. FlutterFlowTheme.of(context)
  519. .labelMedium
  520. .fontStyle,
  521. ),
  522. searchTextStyle:
  523. FlutterFlowTheme.of(context)
  524. .bodyMedium
  525. .override(
  526. font: GoogleFonts.roboto(
  527. fontWeight:
  528. FlutterFlowTheme.of(context)
  529. .bodyMedium
  530. .fontWeight,
  531. fontStyle:
  532. FlutterFlowTheme.of(context)
  533. .bodyMedium
  534. .fontStyle,
  535. ),
  536. letterSpacing: 0.0,
  537. fontWeight:
  538. FlutterFlowTheme.of(context)
  539. .bodyMedium
  540. .fontWeight,
  541. fontStyle:
  542. FlutterFlowTheme.of(context)
  543. .bodyMedium
  544. .fontStyle,
  545. ),
  546. textStyle: FlutterFlowTheme.of(context)
  547. .bodyMedium
  548. .override(
  549. font: GoogleFonts.roboto(
  550. fontWeight:
  551. FlutterFlowTheme.of(context)
  552. .bodyMedium
  553. .fontWeight,
  554. fontStyle:
  555. FlutterFlowTheme.of(context)
  556. .bodyMedium
  557. .fontStyle,
  558. ),
  559. letterSpacing: 0.0,
  560. fontWeight:
  561. FlutterFlowTheme.of(context)
  562. .bodyMedium
  563. .fontWeight,
  564. fontStyle:
  565. FlutterFlowTheme.of(context)
  566. .bodyMedium
  567. .fontStyle,
  568. ),
  569. hintText:
  570. FFLocalizations.of(context).getText(
  571. '2hitlrxa' /* Select... */,
  572. ),
  573. searchHintText:
  574. FFLocalizations.of(context).getText(
  575. 'qtnlg7nd' /* Search... */,
  576. ),
  577. icon: Icon(
  578. Icons.keyboard_arrow_down_rounded,
  579. color: FlutterFlowTheme.of(context)
  580. .secondaryText,
  581. size: 24.0,
  582. ),
  583. fillColor: FlutterFlowTheme.of(context)
  584. .secondaryBackground,
  585. elevation: 2.0,
  586. borderColor: Colors.transparent,
  587. borderWidth: 0.0,
  588. borderRadius: 8.0,
  589. margin: EdgeInsetsDirectional.fromSTEB(
  590. 12.0, 0.0, 12.0, 0.0),
  591. hidesUnderline: true,
  592. isOverButton: false,
  593. isSearchable: true,
  594. isMultiSelect: true,
  595. onMultiSelectChanged: (val) async {
  596. safeSetState(() => _model
  597. .dropDownCategorieenValue = val);
  598. _model.createCategorieTids = _model
  599. .dropDownCategorieenValue!
  600. .toList()
  601. .cast<String>();
  602. safeSetState(() {});
  603. },
  604. );
  605. },
  606. ),
  607. ),
  608. ],
  609. ),
  610. ),
  611. ),
  612. ),
  613. Align(
  614. alignment: AlignmentDirectional(-1.0, 0.0),
  615. child: Padding(
  616. padding: EdgeInsets.all(16.0),
  617. child: Container(
  618. width: double.infinity,
  619. decoration: BoxDecoration(
  620. color:
  621. FlutterFlowTheme.of(context).secondaryBackground,
  622. borderRadius: BorderRadius.only(),
  623. border: Border.all(
  624. color: Color(0xFFEEEEEE),
  625. width: 3.0,
  626. ),
  627. ),
  628. child: Column(
  629. mainAxisSize: MainAxisSize.max,
  630. children: [
  631. Text(
  632. FFLocalizations.of(context).getText(
  633. 'gysg1wwq' /* Wanneer */,
  634. ),
  635. style: FlutterFlowTheme.of(context)
  636. .bodyMedium
  637. .override(
  638. font: GoogleFonts.roboto(
  639. fontWeight: FlutterFlowTheme.of(context)
  640. .bodyMedium
  641. .fontWeight,
  642. fontStyle: FlutterFlowTheme.of(context)
  643. .bodyMedium
  644. .fontStyle,
  645. ),
  646. letterSpacing: 0.0,
  647. fontWeight: FlutterFlowTheme.of(context)
  648. .bodyMedium
  649. .fontWeight,
  650. fontStyle: FlutterFlowTheme.of(context)
  651. .bodyMedium
  652. .fontStyle,
  653. ),
  654. ),
  655. InkWell(
  656. splashColor: Colors.transparent,
  657. focusColor: Colors.transparent,
  658. hoverColor: Colors.transparent,
  659. highlightColor: Colors.transparent,
  660. onTap: () async {
  661. final _datePicked1Date = await showDatePicker(
  662. context: context,
  663. initialDate: getCurrentTimestamp,
  664. firstDate: getCurrentTimestamp,
  665. lastDate: DateTime(2050),
  666. builder: (context, child) {
  667. return wrapInMaterialDatePickerTheme(
  668. context,
  669. child!,
  670. headerBackgroundColor:
  671. FlutterFlowTheme.of(context).primary,
  672. headerForegroundColor:
  673. FlutterFlowTheme.of(context).info,
  674. headerTextStyle: FlutterFlowTheme.of(
  675. context)
  676. .headlineLarge
  677. .override(
  678. font: GoogleFonts.roboto(
  679. fontWeight: FontWeight.w600,
  680. fontStyle:
  681. FlutterFlowTheme.of(context)
  682. .headlineLarge
  683. .fontStyle,
  684. ),
  685. fontSize: 32.0,
  686. letterSpacing: 0.0,
  687. fontWeight: FontWeight.w600,
  688. fontStyle:
  689. FlutterFlowTheme.of(context)
  690. .headlineLarge
  691. .fontStyle,
  692. ),
  693. pickerBackgroundColor:
  694. FlutterFlowTheme.of(context)
  695. .secondaryBackground,
  696. pickerForegroundColor:
  697. FlutterFlowTheme.of(context)
  698. .primaryText,
  699. selectedDateTimeBackgroundColor:
  700. FlutterFlowTheme.of(context).primary,
  701. selectedDateTimeForegroundColor:
  702. FlutterFlowTheme.of(context).info,
  703. actionButtonForegroundColor:
  704. FlutterFlowTheme.of(context)
  705. .primaryText,
  706. iconSize: 24.0,
  707. );
  708. },
  709. );
  710. TimeOfDay? _datePicked1Time;
  711. if (_datePicked1Date != null) {
  712. _datePicked1Time = await showTimePicker(
  713. context: context,
  714. initialTime: TimeOfDay.fromDateTime(
  715. getCurrentTimestamp),
  716. builder: (context, child) {
  717. return wrapInMaterialTimePickerTheme(
  718. context,
  719. child!,
  720. headerBackgroundColor:
  721. FlutterFlowTheme.of(context)
  722. .primary,
  723. headerForegroundColor:
  724. FlutterFlowTheme.of(context).info,
  725. headerTextStyle: FlutterFlowTheme.of(
  726. context)
  727. .headlineLarge
  728. .override(
  729. font: GoogleFonts.roboto(
  730. fontWeight: FontWeight.w600,
  731. fontStyle:
  732. FlutterFlowTheme.of(context)
  733. .headlineLarge
  734. .fontStyle,
  735. ),
  736. fontSize: 32.0,
  737. letterSpacing: 0.0,
  738. fontWeight: FontWeight.w600,
  739. fontStyle:
  740. FlutterFlowTheme.of(context)
  741. .headlineLarge
  742. .fontStyle,
  743. ),
  744. pickerBackgroundColor:
  745. FlutterFlowTheme.of(context)
  746. .secondaryBackground,
  747. pickerForegroundColor:
  748. FlutterFlowTheme.of(context)
  749. .primaryText,
  750. selectedDateTimeBackgroundColor:
  751. FlutterFlowTheme.of(context)
  752. .primary,
  753. selectedDateTimeForegroundColor:
  754. FlutterFlowTheme.of(context).info,
  755. actionButtonForegroundColor:
  756. FlutterFlowTheme.of(context)
  757. .primaryText,
  758. iconSize: 24.0,
  759. );
  760. },
  761. );
  762. }
  763. if (_datePicked1Date != null &&
  764. _datePicked1Time != null) {
  765. safeSetState(() {
  766. _model.datePicked1 = DateTime(
  767. _datePicked1Date.year,
  768. _datePicked1Date.month,
  769. _datePicked1Date.day,
  770. _datePicked1Time!.hour,
  771. _datePicked1Time.minute,
  772. );
  773. });
  774. } else if (_model.datePicked1 != null) {
  775. safeSetState(() {
  776. _model.datePicked1 = getCurrentTimestamp;
  777. });
  778. }
  779. safeSetState(() {
  780. _model.textFieldDatumStartTextController
  781. ?.text = _model.datePicked1!.toString();
  782. });
  783. },
  784. child: Container(
  785. width: double.infinity,
  786. decoration: BoxDecoration(),
  787. child: Container(
  788. width: double.infinity,
  789. child: TextFormField(
  790. controller: _model
  791. .textFieldDatumStartTextController,
  792. focusNode:
  793. _model.textFieldDatumStartFocusNode,
  794. autofocus: false,
  795. enabled: false,
  796. readOnly: true,
  797. obscureText: false,
  798. decoration: InputDecoration(
  799. isDense: true,
  800. labelText:
  801. FFLocalizations.of(context).getText(
  802. 'xceonmpt' /* Datum */,
  803. ),
  804. labelStyle: FlutterFlowTheme.of(context)
  805. .labelMedium
  806. .override(
  807. font: GoogleFonts.roboto(
  808. fontWeight:
  809. FlutterFlowTheme.of(context)
  810. .labelMedium
  811. .fontWeight,
  812. fontStyle:
  813. FlutterFlowTheme.of(context)
  814. .labelMedium
  815. .fontStyle,
  816. ),
  817. letterSpacing: 0.0,
  818. fontWeight:
  819. FlutterFlowTheme.of(context)
  820. .labelMedium
  821. .fontWeight,
  822. fontStyle:
  823. FlutterFlowTheme.of(context)
  824. .labelMedium
  825. .fontStyle,
  826. ),
  827. hintText:
  828. FFLocalizations.of(context).getText(
  829. 'nws4h1nz' /* Datum */,
  830. ),
  831. hintStyle: FlutterFlowTheme.of(context)
  832. .labelMedium
  833. .override(
  834. font: GoogleFonts.roboto(
  835. fontWeight:
  836. FlutterFlowTheme.of(context)
  837. .labelMedium
  838. .fontWeight,
  839. fontStyle:
  840. FlutterFlowTheme.of(context)
  841. .labelMedium
  842. .fontStyle,
  843. ),
  844. letterSpacing: 0.0,
  845. fontWeight:
  846. FlutterFlowTheme.of(context)
  847. .labelMedium
  848. .fontWeight,
  849. fontStyle:
  850. FlutterFlowTheme.of(context)
  851. .labelMedium
  852. .fontStyle,
  853. ),
  854. enabledBorder: OutlineInputBorder(
  855. borderSide: BorderSide(
  856. color: Color(0x00000000),
  857. width: 1.0,
  858. ),
  859. borderRadius:
  860. BorderRadius.circular(0.0),
  861. ),
  862. focusedBorder: OutlineInputBorder(
  863. borderSide: BorderSide(
  864. color: Color(0x00000000),
  865. width: 1.0,
  866. ),
  867. borderRadius:
  868. BorderRadius.circular(0.0),
  869. ),
  870. errorBorder: OutlineInputBorder(
  871. borderSide: BorderSide(
  872. color: FlutterFlowTheme.of(context)
  873. .error,
  874. width: 1.0,
  875. ),
  876. borderRadius:
  877. BorderRadius.circular(0.0),
  878. ),
  879. focusedErrorBorder: OutlineInputBorder(
  880. borderSide: BorderSide(
  881. color: FlutterFlowTheme.of(context)
  882. .error,
  883. width: 1.0,
  884. ),
  885. borderRadius:
  886. BorderRadius.circular(0.0),
  887. ),
  888. filled: true,
  889. fillColor: FlutterFlowTheme.of(context)
  890. .secondaryBackground,
  891. ),
  892. style: FlutterFlowTheme.of(context)
  893. .bodyMedium
  894. .override(
  895. font: GoogleFonts.roboto(
  896. fontWeight:
  897. FlutterFlowTheme.of(context)
  898. .bodyMedium
  899. .fontWeight,
  900. fontStyle:
  901. FlutterFlowTheme.of(context)
  902. .bodyMedium
  903. .fontStyle,
  904. ),
  905. letterSpacing: 0.0,
  906. fontWeight:
  907. FlutterFlowTheme.of(context)
  908. .bodyMedium
  909. .fontWeight,
  910. fontStyle:
  911. FlutterFlowTheme.of(context)
  912. .bodyMedium
  913. .fontStyle,
  914. ),
  915. cursorColor: FlutterFlowTheme.of(context)
  916. .primaryText,
  917. enableInteractiveSelection: true,
  918. validator: _model
  919. .textFieldDatumStartTextControllerValidator
  920. .asValidator(context),
  921. ),
  922. ),
  923. ),
  924. ),
  925. InkWell(
  926. splashColor: Colors.transparent,
  927. focusColor: Colors.transparent,
  928. hoverColor: Colors.transparent,
  929. highlightColor: Colors.transparent,
  930. onTap: () async {
  931. final _datePicked2Date = await showDatePicker(
  932. context: context,
  933. initialDate: getCurrentTimestamp,
  934. firstDate: getCurrentTimestamp,
  935. lastDate: DateTime(2050),
  936. builder: (context, child) {
  937. return wrapInMaterialDatePickerTheme(
  938. context,
  939. child!,
  940. headerBackgroundColor:
  941. FlutterFlowTheme.of(context).primary,
  942. headerForegroundColor:
  943. FlutterFlowTheme.of(context).info,
  944. headerTextStyle: FlutterFlowTheme.of(
  945. context)
  946. .headlineLarge
  947. .override(
  948. font: GoogleFonts.roboto(
  949. fontWeight: FontWeight.w600,
  950. fontStyle:
  951. FlutterFlowTheme.of(context)
  952. .headlineLarge
  953. .fontStyle,
  954. ),
  955. fontSize: 32.0,
  956. letterSpacing: 0.0,
  957. fontWeight: FontWeight.w600,
  958. fontStyle:
  959. FlutterFlowTheme.of(context)
  960. .headlineLarge
  961. .fontStyle,
  962. ),
  963. pickerBackgroundColor:
  964. FlutterFlowTheme.of(context)
  965. .secondaryBackground,
  966. pickerForegroundColor:
  967. FlutterFlowTheme.of(context)
  968. .primaryText,
  969. selectedDateTimeBackgroundColor:
  970. FlutterFlowTheme.of(context).primary,
  971. selectedDateTimeForegroundColor:
  972. FlutterFlowTheme.of(context).info,
  973. actionButtonForegroundColor:
  974. FlutterFlowTheme.of(context)
  975. .primaryText,
  976. iconSize: 24.0,
  977. );
  978. },
  979. );
  980. TimeOfDay? _datePicked2Time;
  981. if (_datePicked2Date != null) {
  982. _datePicked2Time = await showTimePicker(
  983. context: context,
  984. initialTime: TimeOfDay.fromDateTime(
  985. getCurrentTimestamp),
  986. builder: (context, child) {
  987. return wrapInMaterialTimePickerTheme(
  988. context,
  989. child!,
  990. headerBackgroundColor:
  991. FlutterFlowTheme.of(context)
  992. .primary,
  993. headerForegroundColor:
  994. FlutterFlowTheme.of(context).info,
  995. headerTextStyle: FlutterFlowTheme.of(
  996. context)
  997. .headlineLarge
  998. .override(
  999. font: GoogleFonts.roboto(
  1000. fontWeight: FontWeight.w600,
  1001. fontStyle:
  1002. FlutterFlowTheme.of(context)
  1003. .headlineLarge
  1004. .fontStyle,
  1005. ),
  1006. fontSize: 32.0,
  1007. letterSpacing: 0.0,
  1008. fontWeight: FontWeight.w600,
  1009. fontStyle:
  1010. FlutterFlowTheme.of(context)
  1011. .headlineLarge
  1012. .fontStyle,
  1013. ),
  1014. pickerBackgroundColor:
  1015. FlutterFlowTheme.of(context)
  1016. .secondaryBackground,
  1017. pickerForegroundColor:
  1018. FlutterFlowTheme.of(context)
  1019. .primaryText,
  1020. selectedDateTimeBackgroundColor:
  1021. FlutterFlowTheme.of(context)
  1022. .primary,
  1023. selectedDateTimeForegroundColor:
  1024. FlutterFlowTheme.of(context).info,
  1025. actionButtonForegroundColor:
  1026. FlutterFlowTheme.of(context)
  1027. .primaryText,
  1028. iconSize: 24.0,
  1029. );
  1030. },
  1031. );
  1032. }
  1033. if (_datePicked2Date != null &&
  1034. _datePicked2Time != null) {
  1035. safeSetState(() {
  1036. _model.datePicked2 = DateTime(
  1037. _datePicked2Date.year,
  1038. _datePicked2Date.month,
  1039. _datePicked2Date.day,
  1040. _datePicked2Time!.hour,
  1041. _datePicked2Time.minute,
  1042. );
  1043. });
  1044. } else if (_model.datePicked2 != null) {
  1045. safeSetState(() {
  1046. _model.datePicked2 = getCurrentTimestamp;
  1047. });
  1048. }
  1049. safeSetState(() {
  1050. _model.textFieldDatumEindTextController
  1051. ?.text = _model.datePicked2!.toString();
  1052. });
  1053. },
  1054. child: Container(
  1055. width: double.infinity,
  1056. decoration: BoxDecoration(),
  1057. child: Container(
  1058. width: double.infinity,
  1059. child: TextFormField(
  1060. controller:
  1061. _model.textFieldDatumEindTextController,
  1062. focusNode:
  1063. _model.textFieldDatumEindFocusNode,
  1064. autofocus: false,
  1065. enabled: false,
  1066. readOnly: true,
  1067. obscureText: false,
  1068. decoration: InputDecoration(
  1069. isDense: true,
  1070. labelText:
  1071. FFLocalizations.of(context).getText(
  1072. 'wkn1mu1d' /* Datum eind */,
  1073. ),
  1074. labelStyle: FlutterFlowTheme.of(context)
  1075. .labelMedium
  1076. .override(
  1077. font: GoogleFonts.roboto(
  1078. fontWeight:
  1079. FlutterFlowTheme.of(context)
  1080. .labelMedium
  1081. .fontWeight,
  1082. fontStyle:
  1083. FlutterFlowTheme.of(context)
  1084. .labelMedium
  1085. .fontStyle,
  1086. ),
  1087. letterSpacing: 0.0,
  1088. fontWeight:
  1089. FlutterFlowTheme.of(context)
  1090. .labelMedium
  1091. .fontWeight,
  1092. fontStyle:
  1093. FlutterFlowTheme.of(context)
  1094. .labelMedium
  1095. .fontStyle,
  1096. ),
  1097. hintText:
  1098. FFLocalizations.of(context).getText(
  1099. 'e42lwmdh' /* Datum eind */,
  1100. ),
  1101. hintStyle: FlutterFlowTheme.of(context)
  1102. .labelMedium
  1103. .override(
  1104. font: GoogleFonts.roboto(
  1105. fontWeight:
  1106. FlutterFlowTheme.of(context)
  1107. .labelMedium
  1108. .fontWeight,
  1109. fontStyle:
  1110. FlutterFlowTheme.of(context)
  1111. .labelMedium
  1112. .fontStyle,
  1113. ),
  1114. letterSpacing: 0.0,
  1115. fontWeight:
  1116. FlutterFlowTheme.of(context)
  1117. .labelMedium
  1118. .fontWeight,
  1119. fontStyle:
  1120. FlutterFlowTheme.of(context)
  1121. .labelMedium
  1122. .fontStyle,
  1123. ),
  1124. enabledBorder: OutlineInputBorder(
  1125. borderSide: BorderSide(
  1126. color: Color(0x00000000),
  1127. width: 1.0,
  1128. ),
  1129. borderRadius:
  1130. BorderRadius.circular(8.0),
  1131. ),
  1132. focusedBorder: OutlineInputBorder(
  1133. borderSide: BorderSide(
  1134. color: Color(0x00000000),
  1135. width: 1.0,
  1136. ),
  1137. borderRadius:
  1138. BorderRadius.circular(8.0),
  1139. ),
  1140. errorBorder: OutlineInputBorder(
  1141. borderSide: BorderSide(
  1142. color: FlutterFlowTheme.of(context)
  1143. .error,
  1144. width: 1.0,
  1145. ),
  1146. borderRadius:
  1147. BorderRadius.circular(8.0),
  1148. ),
  1149. focusedErrorBorder: OutlineInputBorder(
  1150. borderSide: BorderSide(
  1151. color: FlutterFlowTheme.of(context)
  1152. .error,
  1153. width: 1.0,
  1154. ),
  1155. borderRadius:
  1156. BorderRadius.circular(8.0),
  1157. ),
  1158. filled: true,
  1159. fillColor: FlutterFlowTheme.of(context)
  1160. .secondaryBackground,
  1161. ),
  1162. style: FlutterFlowTheme.of(context)
  1163. .bodyMedium
  1164. .override(
  1165. font: GoogleFonts.roboto(
  1166. fontWeight:
  1167. FlutterFlowTheme.of(context)
  1168. .bodyMedium
  1169. .fontWeight,
  1170. fontStyle:
  1171. FlutterFlowTheme.of(context)
  1172. .bodyMedium
  1173. .fontStyle,
  1174. ),
  1175. letterSpacing: 0.0,
  1176. fontWeight:
  1177. FlutterFlowTheme.of(context)
  1178. .bodyMedium
  1179. .fontWeight,
  1180. fontStyle:
  1181. FlutterFlowTheme.of(context)
  1182. .bodyMedium
  1183. .fontStyle,
  1184. ),
  1185. cursorColor: FlutterFlowTheme.of(context)
  1186. .primaryText,
  1187. enableInteractiveSelection: true,
  1188. validator: _model
  1189. .textFieldDatumEindTextControllerValidator
  1190. .asValidator(context),
  1191. ),
  1192. ),
  1193. ),
  1194. ),
  1195. ],
  1196. ),
  1197. ),
  1198. ),
  1199. ),
  1200. Align(
  1201. alignment: AlignmentDirectional(-1.0, 0.0),
  1202. child: Padding(
  1203. padding: EdgeInsets.all(16.0),
  1204. child: Container(
  1205. width: double.infinity,
  1206. decoration: BoxDecoration(
  1207. color:
  1208. FlutterFlowTheme.of(context).secondaryBackground,
  1209. borderRadius: BorderRadius.only(),
  1210. border: Border.all(
  1211. color: Color(0xFFEEEEEE),
  1212. width: 3.0,
  1213. ),
  1214. ),
  1215. child: Column(
  1216. mainAxisSize: MainAxisSize.max,
  1217. children: [
  1218. Text(
  1219. FFLocalizations.of(context).getText(
  1220. 'vkyrmq6a' /* Organisatie */,
  1221. ),
  1222. style: FlutterFlowTheme.of(context)
  1223. .bodyMedium
  1224. .override(
  1225. font: GoogleFonts.roboto(
  1226. fontWeight: FlutterFlowTheme.of(context)
  1227. .bodyMedium
  1228. .fontWeight,
  1229. fontStyle: FlutterFlowTheme.of(context)
  1230. .bodyMedium
  1231. .fontStyle,
  1232. ),
  1233. letterSpacing: 0.0,
  1234. fontWeight: FlutterFlowTheme.of(context)
  1235. .bodyMedium
  1236. .fontWeight,
  1237. fontStyle: FlutterFlowTheme.of(context)
  1238. .bodyMedium
  1239. .fontStyle,
  1240. ),
  1241. ),
  1242. Align(
  1243. alignment: AlignmentDirectional(-1.0, 0.0),
  1244. child: Container(
  1245. width: double.infinity,
  1246. child: TextFormField(
  1247. controller:
  1248. _model.textFieldWebsiteURLTextController,
  1249. focusNode:
  1250. _model.textFieldWebsiteURLFocusNode,
  1251. autofocus: false,
  1252. enabled: true,
  1253. obscureText: false,
  1254. decoration: InputDecoration(
  1255. isDense: true,
  1256. labelText:
  1257. FFLocalizations.of(context).getText(
  1258. 'e9n6cj1o' /* WebsiteURL */,
  1259. ),
  1260. labelStyle: FlutterFlowTheme.of(context)
  1261. .labelMedium
  1262. .override(
  1263. font: GoogleFonts.roboto(
  1264. fontWeight:
  1265. FlutterFlowTheme.of(context)
  1266. .labelMedium
  1267. .fontWeight,
  1268. fontStyle:
  1269. FlutterFlowTheme.of(context)
  1270. .labelMedium
  1271. .fontStyle,
  1272. ),
  1273. letterSpacing: 0.0,
  1274. fontWeight:
  1275. FlutterFlowTheme.of(context)
  1276. .labelMedium
  1277. .fontWeight,
  1278. fontStyle:
  1279. FlutterFlowTheme.of(context)
  1280. .labelMedium
  1281. .fontStyle,
  1282. ),
  1283. hintText:
  1284. FFLocalizations.of(context).getText(
  1285. 'qsf2va25' /* Website van de activiteit */,
  1286. ),
  1287. hintStyle: FlutterFlowTheme.of(context)
  1288. .labelMedium
  1289. .override(
  1290. font: GoogleFonts.roboto(
  1291. fontWeight:
  1292. FlutterFlowTheme.of(context)
  1293. .labelMedium
  1294. .fontWeight,
  1295. fontStyle:
  1296. FlutterFlowTheme.of(context)
  1297. .labelMedium
  1298. .fontStyle,
  1299. ),
  1300. letterSpacing: 0.0,
  1301. fontWeight:
  1302. FlutterFlowTheme.of(context)
  1303. .labelMedium
  1304. .fontWeight,
  1305. fontStyle:
  1306. FlutterFlowTheme.of(context)
  1307. .labelMedium
  1308. .fontStyle,
  1309. ),
  1310. enabledBorder: OutlineInputBorder(
  1311. borderSide: BorderSide(
  1312. color: Color(0x00000000),
  1313. width: 1.0,
  1314. ),
  1315. borderRadius: BorderRadius.circular(8.0),
  1316. ),
  1317. focusedBorder: OutlineInputBorder(
  1318. borderSide: BorderSide(
  1319. color: Color(0x00000000),
  1320. width: 1.0,
  1321. ),
  1322. borderRadius: BorderRadius.circular(8.0),
  1323. ),
  1324. errorBorder: OutlineInputBorder(
  1325. borderSide: BorderSide(
  1326. color:
  1327. FlutterFlowTheme.of(context).error,
  1328. width: 1.0,
  1329. ),
  1330. borderRadius: BorderRadius.circular(8.0),
  1331. ),
  1332. focusedErrorBorder: OutlineInputBorder(
  1333. borderSide: BorderSide(
  1334. color:
  1335. FlutterFlowTheme.of(context).error,
  1336. width: 1.0,
  1337. ),
  1338. borderRadius: BorderRadius.circular(8.0),
  1339. ),
  1340. filled: true,
  1341. fillColor: FlutterFlowTheme.of(context)
  1342. .secondaryBackground,
  1343. ),
  1344. style: FlutterFlowTheme.of(context)
  1345. .bodyMedium
  1346. .override(
  1347. font: GoogleFonts.roboto(
  1348. fontWeight:
  1349. FlutterFlowTheme.of(context)
  1350. .bodyMedium
  1351. .fontWeight,
  1352. fontStyle:
  1353. FlutterFlowTheme.of(context)
  1354. .bodyMedium
  1355. .fontStyle,
  1356. ),
  1357. letterSpacing: 0.0,
  1358. fontWeight: FlutterFlowTheme.of(context)
  1359. .bodyMedium
  1360. .fontWeight,
  1361. fontStyle: FlutterFlowTheme.of(context)
  1362. .bodyMedium
  1363. .fontStyle,
  1364. ),
  1365. cursorColor:
  1366. FlutterFlowTheme.of(context).primaryText,
  1367. enableInteractiveSelection: true,
  1368. validator: _model
  1369. .textFieldWebsiteURLTextControllerValidator
  1370. .asValidator(context),
  1371. ),
  1372. ),
  1373. ),
  1374. ],
  1375. ),
  1376. ),
  1377. ),
  1378. ),
  1379. Align(
  1380. alignment: AlignmentDirectional(-1.0, 0.0),
  1381. child: Padding(
  1382. padding: EdgeInsets.all(16.0),
  1383. child: Container(
  1384. width: double.infinity,
  1385. decoration: BoxDecoration(
  1386. color:
  1387. FlutterFlowTheme.of(context).secondaryBackground,
  1388. borderRadius: BorderRadius.only(),
  1389. border: Border.all(
  1390. color: Color(0xFFEEEEEE),
  1391. width: 3.0,
  1392. ),
  1393. ),
  1394. child: Align(
  1395. alignment: AlignmentDirectional(-1.0, 0.0),
  1396. child: Column(
  1397. mainAxisSize: MainAxisSize.max,
  1398. children: [
  1399. Align(
  1400. alignment: AlignmentDirectional(-1.0, 0.0),
  1401. child: Text(
  1402. FFLocalizations.of(context).getText(
  1403. 'obaet4ky' /* Entree */,
  1404. ),
  1405. style: FlutterFlowTheme.of(context)
  1406. .headlineSmall
  1407. .override(
  1408. font: GoogleFonts.roboto(
  1409. fontWeight:
  1410. FlutterFlowTheme.of(context)
  1411. .headlineSmall
  1412. .fontWeight,
  1413. fontStyle:
  1414. FlutterFlowTheme.of(context)
  1415. .headlineSmall
  1416. .fontStyle,
  1417. ),
  1418. letterSpacing: 0.0,
  1419. fontWeight: FlutterFlowTheme.of(context)
  1420. .headlineSmall
  1421. .fontWeight,
  1422. fontStyle: FlutterFlowTheme.of(context)
  1423. .headlineSmall
  1424. .fontStyle,
  1425. ),
  1426. ),
  1427. ),
  1428. Align(
  1429. alignment: AlignmentDirectional(-1.0, 0.0),
  1430. child: FutureBuilder<ApiCallResponse>(
  1431. future: ProductieGroup.entreeoptiesCall.call(
  1432. sessionName: FFAppState().userSessionname,
  1433. sessid: FFAppState().userSessionid,
  1434. ),
  1435. builder: (context, snapshot) {
  1436. // Customize what your widget looks like when it's loading.
  1437. if (!snapshot.hasData) {
  1438. return Center(
  1439. child: SizedBox(
  1440. width: 80.0,
  1441. height: 80.0,
  1442. child: SpinKitFadingCircle(
  1443. color: FlutterFlowTheme.of(context)
  1444. .primary,
  1445. size: 80.0,
  1446. ),
  1447. ),
  1448. );
  1449. }
  1450. final dropDownEntreeEntreeoptiesResponse =
  1451. snapshot.data!;
  1452. _model.debugBackendQueries[
  1453. 'ProductieGroup.entreeoptiesCall_statusCode_DropDown_pscb0l37'] =
  1454. debugSerializeParam(
  1455. dropDownEntreeEntreeoptiesResponse
  1456. .statusCode,
  1457. ParamType.int,
  1458. link:
  1459. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  1460. name: 'int',
  1461. nullable: false,
  1462. );
  1463. _model.debugBackendQueries[
  1464. 'ProductieGroup.entreeoptiesCall_responseBody_DropDown_pscb0l37'] =
  1465. debugSerializeParam(
  1466. dropDownEntreeEntreeoptiesResponse
  1467. .bodyText,
  1468. ParamType.String,
  1469. link:
  1470. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  1471. name: 'String',
  1472. nullable: false,
  1473. );
  1474. debugLogWidgetClass(_model);
  1475. return FlutterFlowDropDown<String>(
  1476. controller: _model
  1477. .dropDownEntreeValueController ??=
  1478. FormFieldController<String>(
  1479. _model.dropDownEntreeValue ??= '',
  1480. ),
  1481. options: List<String>.from((getJsonField(
  1482. dropDownEntreeEntreeoptiesResponse
  1483. .jsonBody,
  1484. r'''$[:].tid''',
  1485. true,
  1486. ) as List?)!
  1487. .map<String>((e) => e.toString())
  1488. .toList()
  1489. .cast<String>()),
  1490. optionLabels: (getJsonField(
  1491. dropDownEntreeEntreeoptiesResponse
  1492. .jsonBody,
  1493. r'''$[:].naam''',
  1494. true,
  1495. ) as List?)!
  1496. .map<String>((e) => e.toString())
  1497. .toList()
  1498. .cast<String>(),
  1499. onChanged: (val) async {
  1500. safeSetState(() =>
  1501. _model.dropDownEntreeValue = val);
  1502. _model.createEntreeTid =
  1503. _model.dropDownEntreeValue;
  1504. safeSetState(() {});
  1505. },
  1506. width: 200.0,
  1507. height: 40.0,
  1508. textStyle: FlutterFlowTheme.of(context)
  1509. .bodyMedium
  1510. .override(
  1511. font: GoogleFonts.roboto(
  1512. fontWeight:
  1513. FlutterFlowTheme.of(context)
  1514. .bodyMedium
  1515. .fontWeight,
  1516. fontStyle:
  1517. FlutterFlowTheme.of(context)
  1518. .bodyMedium
  1519. .fontStyle,
  1520. ),
  1521. letterSpacing: 0.0,
  1522. fontWeight:
  1523. FlutterFlowTheme.of(context)
  1524. .bodyMedium
  1525. .fontWeight,
  1526. fontStyle:
  1527. FlutterFlowTheme.of(context)
  1528. .bodyMedium
  1529. .fontStyle,
  1530. ),
  1531. hintText:
  1532. FFLocalizations.of(context).getText(
  1533. 'ht4toe4o' /* Select... */,
  1534. ),
  1535. icon: Icon(
  1536. Icons.keyboard_arrow_down_rounded,
  1537. color: FlutterFlowTheme.of(context)
  1538. .secondaryText,
  1539. size: 24.0,
  1540. ),
  1541. fillColor: FlutterFlowTheme.of(context)
  1542. .secondaryBackground,
  1543. elevation: 2.0,
  1544. borderColor: Colors.transparent,
  1545. borderWidth: 0.0,
  1546. borderRadius: 8.0,
  1547. margin: EdgeInsetsDirectional.fromSTEB(
  1548. 12.0, 0.0, 12.0, 0.0),
  1549. hidesUnderline: true,
  1550. isOverButton: false,
  1551. isSearchable: false,
  1552. isMultiSelect: false,
  1553. );
  1554. },
  1555. ),
  1556. ),
  1557. Align(
  1558. alignment: AlignmentDirectional(-1.0, 0.0),
  1559. child: Text(
  1560. FFLocalizations.of(context).getText(
  1561. 'qlzcyn78' /* Toelichting Entree */,
  1562. ),
  1563. style: FlutterFlowTheme.of(context)
  1564. .bodyMedium
  1565. .override(
  1566. font: GoogleFonts.roboto(
  1567. fontWeight:
  1568. FlutterFlowTheme.of(context)
  1569. .bodyMedium
  1570. .fontWeight,
  1571. fontStyle:
  1572. FlutterFlowTheme.of(context)
  1573. .bodyMedium
  1574. .fontStyle,
  1575. ),
  1576. letterSpacing: 0.0,
  1577. fontWeight: FlutterFlowTheme.of(context)
  1578. .bodyMedium
  1579. .fontWeight,
  1580. fontStyle: FlutterFlowTheme.of(context)
  1581. .bodyMedium
  1582. .fontStyle,
  1583. ),
  1584. ),
  1585. ),
  1586. Align(
  1587. alignment: AlignmentDirectional(-1.0, 0.0),
  1588. child: Container(
  1589. width: double.infinity,
  1590. child: TextFormField(
  1591. controller: _model
  1592. .textFieldToelichtingEntreeTextController,
  1593. focusNode: _model
  1594. .textFieldToelichtingEntreeFocusNode,
  1595. autofocus: false,
  1596. enabled: true,
  1597. obscureText: false,
  1598. decoration: InputDecoration(
  1599. isDense: true,
  1600. labelText:
  1601. FFLocalizations.of(context).getText(
  1602. 'taujsjo7' /* Toelichting Entree */,
  1603. ),
  1604. labelStyle: 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. hintStyle: FlutterFlowTheme.of(context)
  1628. .labelMedium
  1629. .override(
  1630. font: GoogleFonts.roboto(
  1631. fontWeight:
  1632. FlutterFlowTheme.of(context)
  1633. .labelMedium
  1634. .fontWeight,
  1635. fontStyle:
  1636. FlutterFlowTheme.of(context)
  1637. .labelMedium
  1638. .fontStyle,
  1639. ),
  1640. letterSpacing: 0.0,
  1641. fontWeight:
  1642. FlutterFlowTheme.of(context)
  1643. .labelMedium
  1644. .fontWeight,
  1645. fontStyle:
  1646. FlutterFlowTheme.of(context)
  1647. .labelMedium
  1648. .fontStyle,
  1649. ),
  1650. enabledBorder: OutlineInputBorder(
  1651. borderSide: BorderSide(
  1652. color: Color(0x00000000),
  1653. width: 1.0,
  1654. ),
  1655. borderRadius:
  1656. BorderRadius.circular(8.0),
  1657. ),
  1658. focusedBorder: OutlineInputBorder(
  1659. borderSide: BorderSide(
  1660. color: Color(0x00000000),
  1661. width: 1.0,
  1662. ),
  1663. borderRadius:
  1664. BorderRadius.circular(8.0),
  1665. ),
  1666. errorBorder: OutlineInputBorder(
  1667. borderSide: BorderSide(
  1668. color: FlutterFlowTheme.of(context)
  1669. .error,
  1670. width: 1.0,
  1671. ),
  1672. borderRadius:
  1673. BorderRadius.circular(8.0),
  1674. ),
  1675. focusedErrorBorder: OutlineInputBorder(
  1676. borderSide: BorderSide(
  1677. color: FlutterFlowTheme.of(context)
  1678. .error,
  1679. width: 1.0,
  1680. ),
  1681. borderRadius:
  1682. BorderRadius.circular(8.0),
  1683. ),
  1684. filled: true,
  1685. fillColor: FlutterFlowTheme.of(context)
  1686. .secondaryBackground,
  1687. ),
  1688. style: FlutterFlowTheme.of(context)
  1689. .bodyMedium
  1690. .override(
  1691. font: GoogleFonts.roboto(
  1692. fontWeight:
  1693. FlutterFlowTheme.of(context)
  1694. .bodyMedium
  1695. .fontWeight,
  1696. fontStyle:
  1697. FlutterFlowTheme.of(context)
  1698. .bodyMedium
  1699. .fontStyle,
  1700. ),
  1701. letterSpacing: 0.0,
  1702. fontWeight:
  1703. FlutterFlowTheme.of(context)
  1704. .bodyMedium
  1705. .fontWeight,
  1706. fontStyle:
  1707. FlutterFlowTheme.of(context)
  1708. .bodyMedium
  1709. .fontStyle,
  1710. ),
  1711. cursorColor: FlutterFlowTheme.of(context)
  1712. .primaryText,
  1713. enableInteractiveSelection: true,
  1714. validator: _model
  1715. .textFieldToelichtingEntreeTextControllerValidator
  1716. .asValidator(context),
  1717. ),
  1718. ),
  1719. ),
  1720. Align(
  1721. alignment: AlignmentDirectional(-1.0, 0.0),
  1722. child: Text(
  1723. FFLocalizations.of(context).getText(
  1724. 'r9s46lo7' /* Entreeprijs */,
  1725. ),
  1726. style: FlutterFlowTheme.of(context)
  1727. .bodyMedium
  1728. .override(
  1729. font: GoogleFonts.roboto(
  1730. fontWeight:
  1731. FlutterFlowTheme.of(context)
  1732. .bodyMedium
  1733. .fontWeight,
  1734. fontStyle:
  1735. FlutterFlowTheme.of(context)
  1736. .bodyMedium
  1737. .fontStyle,
  1738. ),
  1739. letterSpacing: 0.0,
  1740. fontWeight: FlutterFlowTheme.of(context)
  1741. .bodyMedium
  1742. .fontWeight,
  1743. fontStyle: FlutterFlowTheme.of(context)
  1744. .bodyMedium
  1745. .fontStyle,
  1746. ),
  1747. ),
  1748. ),
  1749. Align(
  1750. alignment: AlignmentDirectional(-1.0, 0.0),
  1751. child: Container(
  1752. width: double.infinity,
  1753. child: TextFormField(
  1754. controller: _model
  1755. .textFieldEntreeprijsTextController,
  1756. focusNode:
  1757. _model.textFieldEntreeprijsFocusNode,
  1758. autofocus: false,
  1759. enabled: true,
  1760. obscureText: false,
  1761. decoration: InputDecoration(
  1762. isDense: true,
  1763. labelText:
  1764. FFLocalizations.of(context).getText(
  1765. '3h3k4jh2' /* Entreeprijs */,
  1766. ),
  1767. labelStyle: FlutterFlowTheme.of(context)
  1768. .labelMedium
  1769. .override(
  1770. font: GoogleFonts.roboto(
  1771. fontWeight:
  1772. FlutterFlowTheme.of(context)
  1773. .labelMedium
  1774. .fontWeight,
  1775. fontStyle:
  1776. FlutterFlowTheme.of(context)
  1777. .labelMedium
  1778. .fontStyle,
  1779. ),
  1780. letterSpacing: 0.0,
  1781. fontWeight:
  1782. FlutterFlowTheme.of(context)
  1783. .labelMedium
  1784. .fontWeight,
  1785. fontStyle:
  1786. FlutterFlowTheme.of(context)
  1787. .labelMedium
  1788. .fontStyle,
  1789. ),
  1790. hintText:
  1791. FFLocalizations.of(context).getText(
  1792. 'ge5o3gf7' /* Entreeprijs */,
  1793. ),
  1794. hintStyle: FlutterFlowTheme.of(context)
  1795. .labelMedium
  1796. .override(
  1797. font: GoogleFonts.roboto(
  1798. fontWeight:
  1799. FlutterFlowTheme.of(context)
  1800. .labelMedium
  1801. .fontWeight,
  1802. fontStyle:
  1803. FlutterFlowTheme.of(context)
  1804. .labelMedium
  1805. .fontStyle,
  1806. ),
  1807. letterSpacing: 0.0,
  1808. fontWeight:
  1809. FlutterFlowTheme.of(context)
  1810. .labelMedium
  1811. .fontWeight,
  1812. fontStyle:
  1813. FlutterFlowTheme.of(context)
  1814. .labelMedium
  1815. .fontStyle,
  1816. ),
  1817. enabledBorder: OutlineInputBorder(
  1818. borderSide: BorderSide(
  1819. color: Color(0x00000000),
  1820. width: 1.0,
  1821. ),
  1822. borderRadius:
  1823. BorderRadius.circular(8.0),
  1824. ),
  1825. focusedBorder: OutlineInputBorder(
  1826. borderSide: BorderSide(
  1827. color: Color(0x00000000),
  1828. width: 1.0,
  1829. ),
  1830. borderRadius:
  1831. BorderRadius.circular(8.0),
  1832. ),
  1833. errorBorder: OutlineInputBorder(
  1834. borderSide: BorderSide(
  1835. color: FlutterFlowTheme.of(context)
  1836. .error,
  1837. width: 1.0,
  1838. ),
  1839. borderRadius:
  1840. BorderRadius.circular(8.0),
  1841. ),
  1842. focusedErrorBorder: OutlineInputBorder(
  1843. borderSide: BorderSide(
  1844. color: FlutterFlowTheme.of(context)
  1845. .error,
  1846. width: 1.0,
  1847. ),
  1848. borderRadius:
  1849. BorderRadius.circular(8.0),
  1850. ),
  1851. filled: true,
  1852. fillColor: FlutterFlowTheme.of(context)
  1853. .secondaryBackground,
  1854. ),
  1855. style: FlutterFlowTheme.of(context)
  1856. .bodyMedium
  1857. .override(
  1858. font: GoogleFonts.roboto(
  1859. fontWeight:
  1860. FlutterFlowTheme.of(context)
  1861. .bodyMedium
  1862. .fontWeight,
  1863. fontStyle:
  1864. FlutterFlowTheme.of(context)
  1865. .bodyMedium
  1866. .fontStyle,
  1867. ),
  1868. letterSpacing: 0.0,
  1869. fontWeight:
  1870. FlutterFlowTheme.of(context)
  1871. .bodyMedium
  1872. .fontWeight,
  1873. fontStyle:
  1874. FlutterFlowTheme.of(context)
  1875. .bodyMedium
  1876. .fontStyle,
  1877. ),
  1878. cursorColor: FlutterFlowTheme.of(context)
  1879. .primaryText,
  1880. enableInteractiveSelection: true,
  1881. validator: _model
  1882. .textFieldEntreeprijsTextControllerValidator
  1883. .asValidator(context),
  1884. ),
  1885. ),
  1886. ),
  1887. ],
  1888. ),
  1889. ),
  1890. ),
  1891. ),
  1892. ),
  1893. Container(
  1894. width: double.infinity,
  1895. decoration: BoxDecoration(
  1896. color: FlutterFlowTheme.of(context).secondaryBackground,
  1897. border: Border.all(
  1898. color: FlutterFlowTheme.of(context).alternate,
  1899. width: 3.0,
  1900. ),
  1901. ),
  1902. child: Column(
  1903. mainAxisSize: MainAxisSize.max,
  1904. children: [
  1905. Align(
  1906. alignment: AlignmentDirectional(-1.0, 0.0),
  1907. child: Text(
  1908. FFLocalizations.of(context).getText(
  1909. '4a28vwlf' /* Media */,
  1910. ),
  1911. style: FlutterFlowTheme.of(context)
  1912. .headlineSmall
  1913. .override(
  1914. font: GoogleFonts.roboto(
  1915. fontWeight: FlutterFlowTheme.of(context)
  1916. .headlineSmall
  1917. .fontWeight,
  1918. fontStyle: FlutterFlowTheme.of(context)
  1919. .headlineSmall
  1920. .fontStyle,
  1921. ),
  1922. letterSpacing: 0.0,
  1923. fontWeight: FlutterFlowTheme.of(context)
  1924. .headlineSmall
  1925. .fontWeight,
  1926. fontStyle: FlutterFlowTheme.of(context)
  1927. .headlineSmall
  1928. .fontStyle,
  1929. ),
  1930. ),
  1931. ),
  1932. Row(
  1933. mainAxisSize: MainAxisSize.max,
  1934. children: [
  1935. Align(
  1936. alignment: AlignmentDirectional(-1.0, 0.0),
  1937. child: FFButtonWidget(
  1938. onPressed: () async {
  1939. final selectedMedia =
  1940. await selectMediaWithSourceBottomSheet(
  1941. context: context,
  1942. allowPhoto: true,
  1943. );
  1944. if (selectedMedia != null &&
  1945. selectedMedia.every((m) =>
  1946. validateFileFormat(
  1947. m.storagePath, context))) {
  1948. safeSetState(() => _model
  1949. .isDataUploading_uploadDataLogoEvenement =
  1950. true);
  1951. var selectedUploadedFiles =
  1952. <FFUploadedFile>[];
  1953. try {
  1954. selectedUploadedFiles = selectedMedia
  1955. .map((m) => FFUploadedFile(
  1956. name: m.storagePath
  1957. .split('/')
  1958. .last,
  1959. bytes: m.bytes,
  1960. height: m.dimensions?.height,
  1961. width: m.dimensions?.width,
  1962. blurHash: m.blurHash,
  1963. originalFilename:
  1964. m.originalFilename,
  1965. ))
  1966. .toList();
  1967. } finally {
  1968. _model.isDataUploading_uploadDataLogoEvenement =
  1969. false;
  1970. }
  1971. if (selectedUploadedFiles.length ==
  1972. selectedMedia.length) {
  1973. safeSetState(() {
  1974. _model.uploadedLocalFile_uploadDataLogoEvenement =
  1975. selectedUploadedFiles.first;
  1976. });
  1977. } else {
  1978. safeSetState(() {});
  1979. return;
  1980. }
  1981. }
  1982. _model.logouploadResult =
  1983. await actions.bestandUpload(
  1984. _model
  1985. .uploadedLocalFile_uploadDataLogoEvenement,
  1986. '/en/flutterdrup/bestand_upload/upload.json',
  1987. FFAppState().userSessionname,
  1988. FFAppState().userSessionid,
  1989. FFAppState().userToken,
  1990. );
  1991. if (getJsonField(
  1992. _model.logouploadResult,
  1993. r'''$.success''',
  1994. )) {
  1995. _model.createLogoFid = getJsonField(
  1996. _model.logouploadResult,
  1997. r'''$.fid''',
  1998. ).toString();
  1999. _model.createLogoUrl = getJsonField(
  2000. _model.logouploadResult,
  2001. r'''$.url''',
  2002. ).toString();
  2003. safeSetState(() {});
  2004. } else {
  2005. ScaffoldMessenger.of(context).showSnackBar(
  2006. SnackBar(
  2007. content: Text(
  2008. getJsonField(
  2009. _model.logouploadResult,
  2010. r'''$.error''',
  2011. ).toString(),
  2012. style: TextStyle(
  2013. color: FlutterFlowTheme.of(context)
  2014. .primaryText,
  2015. ),
  2016. ),
  2017. duration: Duration(milliseconds: 4000),
  2018. backgroundColor:
  2019. FlutterFlowTheme.of(context)
  2020. .secondary,
  2021. ),
  2022. );
  2023. }
  2024. safeSetState(() {});
  2025. },
  2026. text: FFLocalizations.of(context).getText(
  2027. 'df4oowbq' /* Logo kiezen */,
  2028. ),
  2029. options: FFButtonOptions(
  2030. height: 40.0,
  2031. padding: EdgeInsetsDirectional.fromSTEB(
  2032. 16.0, 0.0, 16.0, 0.0),
  2033. iconPadding: EdgeInsetsDirectional.fromSTEB(
  2034. 0.0, 0.0, 0.0, 0.0),
  2035. color: FlutterFlowTheme.of(context).secondary,
  2036. textStyle: FlutterFlowTheme.of(context)
  2037. .titleSmall
  2038. .override(
  2039. font: GoogleFonts.roboto(
  2040. fontWeight:
  2041. FlutterFlowTheme.of(context)
  2042. .titleSmall
  2043. .fontWeight,
  2044. fontStyle:
  2045. FlutterFlowTheme.of(context)
  2046. .titleSmall
  2047. .fontStyle,
  2048. ),
  2049. color: Colors.white,
  2050. letterSpacing: 0.0,
  2051. fontWeight: FlutterFlowTheme.of(context)
  2052. .titleSmall
  2053. .fontWeight,
  2054. fontStyle: FlutterFlowTheme.of(context)
  2055. .titleSmall
  2056. .fontStyle,
  2057. ),
  2058. elevation: 0.0,
  2059. borderRadius: BorderRadius.circular(8.0),
  2060. ),
  2061. ),
  2062. ),
  2063. if (_model.createLogoUrl != null &&
  2064. _model.createLogoUrl != '')
  2065. ClipRRect(
  2066. borderRadius: BorderRadius.circular(8.0),
  2067. child: Image.network(
  2068. _model.createLogoUrl!,
  2069. width: 80.0,
  2070. height: 80.0,
  2071. fit: BoxFit.cover,
  2072. ),
  2073. ),
  2074. ],
  2075. ),
  2076. Row(
  2077. mainAxisSize: MainAxisSize.max,
  2078. children: [
  2079. if (_model.createFotosFids.length < 5)
  2080. Align(
  2081. alignment: AlignmentDirectional(-1.0, 0.0),
  2082. child: FFButtonWidget(
  2083. onPressed: () async {
  2084. final selectedMedia =
  2085. await selectMediaWithSourceBottomSheet(
  2086. context: context,
  2087. allowPhoto: true,
  2088. );
  2089. if (selectedMedia != null &&
  2090. selectedMedia.every((m) =>
  2091. validateFileFormat(
  2092. m.storagePath, context))) {
  2093. safeSetState(() => _model
  2094. .isDataUploading_uploadDataFotosEvent =
  2095. true);
  2096. var selectedUploadedFiles =
  2097. <FFUploadedFile>[];
  2098. try {
  2099. selectedUploadedFiles = selectedMedia
  2100. .map((m) => FFUploadedFile(
  2101. name: m.storagePath
  2102. .split('/')
  2103. .last,
  2104. bytes: m.bytes,
  2105. height: m.dimensions?.height,
  2106. width: m.dimensions?.width,
  2107. blurHash: m.blurHash,
  2108. originalFilename:
  2109. m.originalFilename,
  2110. ))
  2111. .toList();
  2112. } finally {
  2113. _model.isDataUploading_uploadDataFotosEvent =
  2114. false;
  2115. }
  2116. if (selectedUploadedFiles.length ==
  2117. selectedMedia.length) {
  2118. safeSetState(() {
  2119. _model.uploadedLocalFile_uploadDataFotosEvent =
  2120. selectedUploadedFiles.first;
  2121. });
  2122. } else {
  2123. safeSetState(() {});
  2124. return;
  2125. }
  2126. }
  2127. _model.fotouploadResult =
  2128. await actions.bestandUpload(
  2129. _model
  2130. .uploadedLocalFile_uploadDataFotosEvent,
  2131. '/en/flutterdrup/bestand_upload/upload.json',
  2132. FFAppState().userSessionname,
  2133. FFAppState().userSessionid,
  2134. FFAppState().userToken,
  2135. );
  2136. if (getJsonField(
  2137. _model.logouploadResult,
  2138. r'''$.success''',
  2139. )) {
  2140. _model.addToCreateFotosFids(getJsonField(
  2141. _model.fotouploadResult,
  2142. r'''$.fid''',
  2143. ).toString());
  2144. _model.addToCreateFotosUrls(getJsonField(
  2145. _model.fotouploadResult,
  2146. r'''$.url''',
  2147. ).toString());
  2148. safeSetState(() {});
  2149. } else {
  2150. ScaffoldMessenger.of(context)
  2151. .showSnackBar(
  2152. SnackBar(
  2153. content: Text(
  2154. getJsonField(
  2155. _model.logouploadResult,
  2156. r'''$.error''',
  2157. ).toString(),
  2158. style: TextStyle(
  2159. color:
  2160. FlutterFlowTheme.of(context)
  2161. .primaryText,
  2162. ),
  2163. ),
  2164. duration:
  2165. Duration(milliseconds: 4000),
  2166. backgroundColor:
  2167. FlutterFlowTheme.of(context)
  2168. .secondary,
  2169. ),
  2170. );
  2171. }
  2172. safeSetState(() {});
  2173. },
  2174. text: FFLocalizations.of(context).getText(
  2175. 'hqwm9set' /* Foto's kiezen */,
  2176. ),
  2177. options: FFButtonOptions(
  2178. height: 40.0,
  2179. padding: EdgeInsetsDirectional.fromSTEB(
  2180. 16.0, 0.0, 16.0, 0.0),
  2181. iconPadding: EdgeInsetsDirectional.fromSTEB(
  2182. 0.0, 0.0, 0.0, 0.0),
  2183. color:
  2184. FlutterFlowTheme.of(context).secondary,
  2185. textStyle: FlutterFlowTheme.of(context)
  2186. .titleSmall
  2187. .override(
  2188. font: GoogleFonts.roboto(
  2189. fontWeight:
  2190. FlutterFlowTheme.of(context)
  2191. .titleSmall
  2192. .fontWeight,
  2193. fontStyle:
  2194. FlutterFlowTheme.of(context)
  2195. .titleSmall
  2196. .fontStyle,
  2197. ),
  2198. color: Colors.white,
  2199. letterSpacing: 0.0,
  2200. fontWeight:
  2201. FlutterFlowTheme.of(context)
  2202. .titleSmall
  2203. .fontWeight,
  2204. fontStyle:
  2205. FlutterFlowTheme.of(context)
  2206. .titleSmall
  2207. .fontStyle,
  2208. ),
  2209. elevation: 0.0,
  2210. borderRadius: BorderRadius.circular(8.0),
  2211. ),
  2212. ),
  2213. ),
  2214. if (_model.createFotosUrls.length > 0)
  2215. Builder(
  2216. builder: (context) {
  2217. final fotoItem =
  2218. _model.createFotosUrls.toList();
  2219. _model.debugGeneratorVariables[
  2220. 'fotoItem${fotoItem.length > 100 ? ' (first 100)' : ''}'] =
  2221. debugSerializeParam(
  2222. fotoItem.take(100),
  2223. ParamType.String,
  2224. isList: true,
  2225. link:
  2226. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  2227. name: 'String',
  2228. nullable: false,
  2229. );
  2230. debugLogWidgetClass(_model);
  2231. return Wrap(
  2232. spacing: 8.0,
  2233. runSpacing: 8.0,
  2234. alignment: WrapAlignment.start,
  2235. crossAxisAlignment:
  2236. WrapCrossAlignment.start,
  2237. direction: Axis.horizontal,
  2238. runAlignment: WrapAlignment.start,
  2239. verticalDirection: VerticalDirection.down,
  2240. clipBehavior: Clip.none,
  2241. children: List.generate(fotoItem.length,
  2242. (fotoItemIndex) {
  2243. final fotoItemItem =
  2244. fotoItem[fotoItemIndex];
  2245. return ClipRRect(
  2246. borderRadius:
  2247. BorderRadius.circular(8.0),
  2248. child: Image.network(
  2249. fotoItemItem,
  2250. width: 80.0,
  2251. height: 80.0,
  2252. fit: BoxFit.cover,
  2253. ),
  2254. );
  2255. }),
  2256. );
  2257. },
  2258. ),
  2259. ],
  2260. ),
  2261. ],
  2262. ),
  2263. ),
  2264. if (_model.createPlaatsID != null &&
  2265. _model.createPlaatsID != '')
  2266. FFButtonWidget(
  2267. onPressed: () async {
  2268. _model.createResult = await actions.evenementCreate(
  2269. '',
  2270. '',
  2271. '',
  2272. '',
  2273. '',
  2274. '',
  2275. '',
  2276. '',
  2277. '',
  2278. '',
  2279. '',
  2280. '',
  2281. '',
  2282. [],
  2283. '',
  2284. [],
  2285. );
  2286. if (getJsonField(
  2287. _model.createResult,
  2288. r'''$.success''',
  2289. )) {
  2290. ScaffoldMessenger.of(context).showSnackBar(
  2291. SnackBar(
  2292. content: Text(
  2293. 'Je activiteit is ingediend en wordt beoordeeld door de redactie.',
  2294. style: TextStyle(
  2295. color:
  2296. FlutterFlowTheme.of(context).primaryText,
  2297. ),
  2298. ),
  2299. duration: Duration(milliseconds: 5000),
  2300. backgroundColor:
  2301. FlutterFlowTheme.of(context).secondary,
  2302. ),
  2303. );
  2304. context.safePop();
  2305. } else {
  2306. ScaffoldMessenger.of(context).showSnackBar(
  2307. SnackBar(
  2308. content: Text(
  2309. getJsonField(
  2310. _model.createResult,
  2311. r'''$.error''',
  2312. ).toString(),
  2313. style: TextStyle(
  2314. color:
  2315. FlutterFlowTheme.of(context).primaryText,
  2316. ),
  2317. ),
  2318. duration: Duration(milliseconds: 4000),
  2319. backgroundColor:
  2320. FlutterFlowTheme.of(context).secondary,
  2321. ),
  2322. );
  2323. }
  2324. safeSetState(() {});
  2325. },
  2326. text: FFLocalizations.of(context).getText(
  2327. '9qx16tm9' /* Activiteit indienen */,
  2328. ),
  2329. options: FFButtonOptions(
  2330. height: 40.0,
  2331. padding: EdgeInsetsDirectional.fromSTEB(
  2332. 16.0, 0.0, 16.0, 0.0),
  2333. iconPadding:
  2334. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  2335. color: FlutterFlowTheme.of(context).secondary,
  2336. textStyle:
  2337. FlutterFlowTheme.of(context).titleSmall.override(
  2338. font: GoogleFonts.roboto(
  2339. fontWeight: FlutterFlowTheme.of(context)
  2340. .titleSmall
  2341. .fontWeight,
  2342. fontStyle: FlutterFlowTheme.of(context)
  2343. .titleSmall
  2344. .fontStyle,
  2345. ),
  2346. color: Colors.white,
  2347. letterSpacing: 0.0,
  2348. fontWeight: FlutterFlowTheme.of(context)
  2349. .titleSmall
  2350. .fontWeight,
  2351. fontStyle: FlutterFlowTheme.of(context)
  2352. .titleSmall
  2353. .fontStyle,
  2354. ),
  2355. elevation: 0.0,
  2356. borderRadius: BorderRadius.circular(8.0),
  2357. ),
  2358. ),
  2359. Align(
  2360. alignment: AlignmentDirectional(-1.0, 0.0),
  2361. child: Padding(
  2362. padding: EdgeInsets.all(16.0),
  2363. child: Container(
  2364. decoration: BoxDecoration(
  2365. color:
  2366. FlutterFlowTheme.of(context).secondaryBackground,
  2367. borderRadius: BorderRadius.only(),
  2368. border: Border.all(
  2369. color: Color(0xFFEEEEEE),
  2370. width: 3.0,
  2371. ),
  2372. ),
  2373. child: Text(
  2374. FFLocalizations.of(context).getText(
  2375. 'f16hjeid' /* Hello World */,
  2376. ),
  2377. style:
  2378. FlutterFlowTheme.of(context).bodyMedium.override(
  2379. font: GoogleFonts.roboto(
  2380. fontWeight: FlutterFlowTheme.of(context)
  2381. .bodyMedium
  2382. .fontWeight,
  2383. fontStyle: FlutterFlowTheme.of(context)
  2384. .bodyMedium
  2385. .fontStyle,
  2386. ),
  2387. letterSpacing: 0.0,
  2388. fontWeight: FlutterFlowTheme.of(context)
  2389. .bodyMedium
  2390. .fontWeight,
  2391. fontStyle: FlutterFlowTheme.of(context)
  2392. .bodyMedium
  2393. .fontStyle,
  2394. ),
  2395. ),
  2396. ),
  2397. ),
  2398. ),
  2399. ],
  2400. ),
  2401. ),
  2402. ),
  2403. ),
  2404. ),
  2405. );
  2406. }
  2407. }