uitgaansevenement_aanmaken_model.dart 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  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 'uitgaansevenement_aanmaken_widget.dart'
  12. show UitgaansevenementAanmakenWidget;
  13. import 'package:flutter/foundation.dart';
  14. import 'package:flutter/material.dart';
  15. import 'package:flutter/scheduler.dart';
  16. import 'package:flutter_spinkit/flutter_spinkit.dart';
  17. import 'package:google_fonts/google_fonts.dart';
  18. import 'package:provider/provider.dart';
  19. class UitgaansevenementAanmakenModel
  20. extends FlutterFlowModel<UitgaansevenementAanmakenWidget> {
  21. /// Local state fields for this page.
  22. String? _createHorecagelegenheidNid;
  23. set createHorecagelegenheidNid(String? value) {
  24. _createHorecagelegenheidNid = value;
  25. debugLogWidgetClass(this);
  26. }
  27. String? get createHorecagelegenheidNid => _createHorecagelegenheidNid;
  28. late LoggableList<String> _createCategorieTids = LoggableList([]);
  29. set createCategorieTids(List<String> value) {
  30. if (value != null) {
  31. _createCategorieTids = LoggableList(value);
  32. }
  33. debugLogWidgetClass(this);
  34. }
  35. List<String> get createCategorieTids =>
  36. _createCategorieTids?..logger = () => debugLogWidgetClass(this);
  37. void addToCreateCategorieTids(String item) => createCategorieTids.add(item);
  38. void removeFromCreateCategorieTids(String item) =>
  39. createCategorieTids.remove(item);
  40. void removeAtIndexFromCreateCategorieTids(int index) =>
  41. createCategorieTids.removeAt(index);
  42. void insertAtIndexInCreateCategorieTids(int index, String item) =>
  43. createCategorieTids.insert(index, item);
  44. void updateCreateCategorieTidsAtIndex(int index, Function(String) updateFn) =>
  45. createCategorieTids[index] = updateFn(createCategorieTids[index]);
  46. String? _createEntreeTid;
  47. set createEntreeTid(String? value) {
  48. _createEntreeTid = value;
  49. debugLogWidgetClass(this);
  50. }
  51. String? get createEntreeTid => _createEntreeTid;
  52. String? _createLogoFid;
  53. set createLogoFid(String? value) {
  54. _createLogoFid = value;
  55. debugLogWidgetClass(this);
  56. }
  57. String? get createLogoFid => _createLogoFid;
  58. late LoggableList<String> _createFotosFids = LoggableList([]);
  59. set createFotosFids(List<String> value) {
  60. if (value != null) {
  61. _createFotosFids = LoggableList(value);
  62. }
  63. debugLogWidgetClass(this);
  64. }
  65. List<String> get createFotosFids =>
  66. _createFotosFids?..logger = () => debugLogWidgetClass(this);
  67. void addToCreateFotosFids(String item) => createFotosFids.add(item);
  68. void removeFromCreateFotosFids(String item) => createFotosFids.remove(item);
  69. void removeAtIndexFromCreateFotosFids(int index) =>
  70. createFotosFids.removeAt(index);
  71. void insertAtIndexInCreateFotosFids(int index, String item) =>
  72. createFotosFids.insert(index, item);
  73. void updateCreateFotosFidsAtIndex(int index, Function(String) updateFn) =>
  74. createFotosFids[index] = updateFn(createFotosFids[index]);
  75. String? _createLogoUrl;
  76. set createLogoUrl(String? value) {
  77. _createLogoUrl = value;
  78. debugLogWidgetClass(this);
  79. }
  80. String? get createLogoUrl => _createLogoUrl;
  81. late LoggableList<String> _createFotosUrls = LoggableList([]);
  82. set createFotosUrls(List<String> value) {
  83. if (value != null) {
  84. _createFotosUrls = LoggableList(value);
  85. }
  86. debugLogWidgetClass(this);
  87. }
  88. List<String> get createFotosUrls =>
  89. _createFotosUrls?..logger = () => debugLogWidgetClass(this);
  90. void addToCreateFotosUrls(String item) => createFotosUrls.add(item);
  91. void removeFromCreateFotosUrls(String item) => createFotosUrls.remove(item);
  92. void removeAtIndexFromCreateFotosUrls(int index) =>
  93. createFotosUrls.removeAt(index);
  94. void insertAtIndexInCreateFotosUrls(int index, String item) =>
  95. createFotosUrls.insert(index, item);
  96. void updateCreateFotosUrlsAtIndex(int index, Function(String) updateFn) =>
  97. createFotosUrls[index] = updateFn(createFotosUrls[index]);
  98. /// State fields for stateful widgets in this page.
  99. // State field(s) for TextFieldTitel widget.
  100. FocusNode? textFieldTitelFocusNode;
  101. TextEditingController? textFieldTitelTextController;
  102. String? Function(BuildContext, String?)?
  103. textFieldTitelTextControllerValidator;
  104. // State field(s) for TextFieldOmschrijving widget.
  105. FocusNode? textFieldOmschrijvingFocusNode;
  106. TextEditingController? textFieldOmschrijvingTextController;
  107. String? Function(BuildContext, String?)?
  108. textFieldOmschrijvingTextControllerValidator;
  109. // State field(s) for DropDownHorecagelegenheid widget.
  110. String? _dropDownHorecagelegenheidValue;
  111. set dropDownHorecagelegenheidValue(String? value) {
  112. _dropDownHorecagelegenheidValue = value;
  113. debugLogWidgetClass(this);
  114. }
  115. String? get dropDownHorecagelegenheidValue => _dropDownHorecagelegenheidValue;
  116. FormFieldController<String>? dropDownHorecagelegenheidValueController;
  117. // State field(s) for DropDownCategorieen widget.
  118. LoggableList<String>? _dropDownCategorieenValue;
  119. set dropDownCategorieenValue(List<String>? value) {
  120. if (value != null) {
  121. _dropDownCategorieenValue = LoggableList(value);
  122. } else {
  123. _dropDownCategorieenValue = null;
  124. }
  125. debugLogWidgetClass(this);
  126. }
  127. List<String>? get dropDownCategorieenValue =>
  128. _dropDownCategorieenValue?..logger = () => debugLogWidgetClass(this);
  129. FormFieldController<List<String>>? dropDownCategorieenValueController;
  130. DateTime? datePicked1;
  131. // State field(s) for TextFieldDatumStart widget.
  132. FocusNode? textFieldDatumStartFocusNode;
  133. TextEditingController? textFieldDatumStartTextController;
  134. String? Function(BuildContext, String?)?
  135. textFieldDatumStartTextControllerValidator;
  136. DateTime? datePicked2;
  137. // State field(s) for TextFieldDatumEind widget.
  138. FocusNode? textFieldDatumEindFocusNode;
  139. TextEditingController? textFieldDatumEindTextController;
  140. String? Function(BuildContext, String?)?
  141. textFieldDatumEindTextControllerValidator;
  142. // State field(s) for TextFieldWebsiteURL widget.
  143. FocusNode? textFieldWebsiteURLFocusNode;
  144. TextEditingController? textFieldWebsiteURLTextController;
  145. String? Function(BuildContext, String?)?
  146. textFieldWebsiteURLTextControllerValidator;
  147. // State field(s) for TextFieldTicketsURL widget.
  148. FocusNode? textFieldTicketsURLFocusNode;
  149. TextEditingController? textFieldTicketsURLTextController;
  150. String? Function(BuildContext, String?)?
  151. textFieldTicketsURLTextControllerValidator;
  152. // State field(s) for DropDownEntree widget.
  153. String? _dropDownEntreeValue;
  154. set dropDownEntreeValue(String? value) {
  155. _dropDownEntreeValue = value;
  156. debugLogWidgetClass(this);
  157. }
  158. String? get dropDownEntreeValue => _dropDownEntreeValue;
  159. FormFieldController<String>? dropDownEntreeValueController;
  160. // State field(s) for TextFieldToelichtingEntree widget.
  161. FocusNode? textFieldToelichtingEntreeFocusNode;
  162. TextEditingController? textFieldToelichtingEntreeTextController;
  163. String? Function(BuildContext, String?)?
  164. textFieldToelichtingEntreeTextControllerValidator;
  165. // State field(s) for TextFieldEntreeprijs widget.
  166. FocusNode? textFieldEntreeprijsFocusNode;
  167. TextEditingController? textFieldEntreeprijsTextController;
  168. String? Function(BuildContext, String?)?
  169. textFieldEntreeprijsTextControllerValidator;
  170. bool isDataUploading_uploadDataLogoEvenement = false;
  171. FFUploadedFile uploadedLocalFile_uploadDataLogoEvenement =
  172. FFUploadedFile(bytes: Uint8List.fromList([]), originalFilename: '');
  173. // Stores action output result for [Custom Action - bestandUpload] action in ButtonLogo widget.
  174. dynamic? _logoevenementuploadResult;
  175. set logoevenementuploadResult(dynamic? value) {
  176. _logoevenementuploadResult = value;
  177. debugLogWidgetClass(this);
  178. }
  179. dynamic? get logoevenementuploadResult => _logoevenementuploadResult;
  180. bool isDataUploading_uploadDataFotosEvent = false;
  181. FFUploadedFile uploadedLocalFile_uploadDataFotosEvent =
  182. FFUploadedFile(bytes: Uint8List.fromList([]), originalFilename: '');
  183. // Stores action output result for [Custom Action - bestandUpload] action in ButtonFotos widget.
  184. dynamic? _fotoEvenementuploadResult;
  185. set fotoEvenementuploadResult(dynamic? value) {
  186. _fotoEvenementuploadResult = value;
  187. debugLogWidgetClass(this);
  188. }
  189. dynamic? get fotoEvenementuploadResult => _fotoEvenementuploadResult;
  190. // Stores action output result for [Custom Action - evenementCreate] action in ButtonIndienen widget.
  191. dynamic? _createResult;
  192. set createResult(dynamic? value) {
  193. _createResult = value;
  194. debugLogWidgetClass(this);
  195. }
  196. dynamic? get createResult => _createResult;
  197. final Map<String, DebugDataField> debugGeneratorVariables = {};
  198. final Map<String, DebugDataField> debugBackendQueries = {};
  199. final Map<String, FlutterFlowModel> widgetBuilderComponents = {};
  200. @override
  201. void initState(BuildContext context) {
  202. debugLogWidgetClass(this);
  203. }
  204. @override
  205. void dispose() {
  206. textFieldTitelFocusNode?.dispose();
  207. textFieldTitelTextController?.dispose();
  208. textFieldOmschrijvingFocusNode?.dispose();
  209. textFieldOmschrijvingTextController?.dispose();
  210. textFieldDatumStartFocusNode?.dispose();
  211. textFieldDatumStartTextController?.dispose();
  212. textFieldDatumEindFocusNode?.dispose();
  213. textFieldDatumEindTextController?.dispose();
  214. textFieldWebsiteURLFocusNode?.dispose();
  215. textFieldWebsiteURLTextController?.dispose();
  216. textFieldTicketsURLFocusNode?.dispose();
  217. textFieldTicketsURLTextController?.dispose();
  218. textFieldToelichtingEntreeFocusNode?.dispose();
  219. textFieldToelichtingEntreeTextController?.dispose();
  220. textFieldEntreeprijsFocusNode?.dispose();
  221. textFieldEntreeprijsTextController?.dispose();
  222. }
  223. @override
  224. WidgetClassDebugData toWidgetClassDebugData() => WidgetClassDebugData(
  225. widgetParameters: {
  226. 'horecagelegenheidNid': debugSerializeParam(
  227. widget?.horecagelegenheidNid,
  228. ParamType.String,
  229. link:
  230. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  231. searchReference:
  232. 'reference=SiYKHgoUaG9yZWNhZ2VsZWdlbmhlaWROaWQSBnpwZWk2MHIECAMgAFABWhRob3JlY2FnZWxlZ2VuaGVpZE5pZA==',
  233. name: 'String',
  234. nullable: true,
  235. )
  236. }.withoutNulls.entries,
  237. localStates: {
  238. 'createHorecagelegenheidNid': debugSerializeParam(
  239. createHorecagelegenheidNid,
  240. ParamType.String,
  241. link:
  242. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  243. searchReference:
  244. 'reference=Qi8KIwoaY3JlYXRlSG9yZWNhZ2VsZWdlbmhlaWROaWQSBWd6bW1uKgISAHIECAMgAFABWhpjcmVhdGVIb3JlY2FnZWxlZ2VuaGVpZE5pZGIZdWl0Z2FhbnNldmVuZW1lbnRBYW5tYWtlbg==',
  245. name: 'String',
  246. nullable: true,
  247. ),
  248. 'createCategorieTids': debugSerializeParam(
  249. createCategorieTids,
  250. ParamType.String,
  251. isList: true,
  252. link:
  253. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  254. searchReference:
  255. 'reference=QiYKHAoTY3JlYXRlQ2F0ZWdvcmllVGlkcxIFcjQzeGRyBhICCAMgAVABWhNjcmVhdGVDYXRlZ29yaWVUaWRzYhl1aXRnYWFuc2V2ZW5lbWVudEFhbm1ha2Vu',
  256. name: 'String',
  257. nullable: false,
  258. ),
  259. 'createEntreeTid': debugSerializeParam(
  260. createEntreeTid,
  261. ParamType.String,
  262. link:
  263. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  264. searchReference:
  265. 'reference=QiQKGAoPY3JlYXRlRW50cmVlVGlkEgU2cm90YSoCEgByBAgDIABQAVoPY3JlYXRlRW50cmVlVGlkYhl1aXRnYWFuc2V2ZW5lbWVudEFhbm1ha2Vu',
  266. name: 'String',
  267. nullable: true,
  268. ),
  269. 'createLogoFid': debugSerializeParam(
  270. createLogoFid,
  271. ParamType.String,
  272. link:
  273. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  274. searchReference:
  275. 'reference=QiIKFgoNY3JlYXRlTG9nb0ZpZBIFMXZvanoqAhIAcgQIAyAAUAFaDWNyZWF0ZUxvZ29GaWRiGXVpdGdhYW5zZXZlbmVtZW50QWFubWFrZW4=',
  276. name: 'String',
  277. nullable: true,
  278. ),
  279. 'createFotosFids': debugSerializeParam(
  280. createFotosFids,
  281. ParamType.String,
  282. isList: true,
  283. link:
  284. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  285. searchReference:
  286. 'reference=QiIKGAoPY3JlYXRlRm90b3NGaWRzEgU5enlvdnIGEgIIAyAAUAFaD2NyZWF0ZUZvdG9zRmlkc2IZdWl0Z2FhbnNldmVuZW1lbnRBYW5tYWtlbg==',
  287. name: 'String',
  288. nullable: false,
  289. ),
  290. 'createLogoUrl': debugSerializeParam(
  291. createLogoUrl,
  292. ParamType.String,
  293. link:
  294. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  295. searchReference:
  296. 'reference=Qh4KFgoNY3JlYXRlTG9nb1VybBIFZGYzMnpyBAgEIABQAVoNY3JlYXRlTG9nb1VybGIZdWl0Z2FhbnNldmVuZW1lbnRBYW5tYWtlbg==',
  297. name: 'String',
  298. nullable: true,
  299. ),
  300. 'createFotosUrls': debugSerializeParam(
  301. createFotosUrls,
  302. ParamType.String,
  303. isList: true,
  304. link:
  305. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  306. searchReference:
  307. 'reference=QiIKGAoPY3JlYXRlRm90b3NVcmxzEgVjZDhwNXIGEgIIBCABUAFaD2NyZWF0ZUZvdG9zVXJsc2IZdWl0Z2FhbnNldmVuZW1lbnRBYW5tYWtlbg==',
  308. name: 'String',
  309. nullable: false,
  310. )
  311. }.entries,
  312. widgetStates: {
  313. 'textFieldTitelText': debugSerializeParam(
  314. textFieldTitelTextController?.text,
  315. ParamType.String,
  316. link:
  317. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  318. name: 'String',
  319. nullable: true,
  320. ),
  321. 'textFieldOmschrijvingText': debugSerializeParam(
  322. textFieldOmschrijvingTextController?.text,
  323. ParamType.String,
  324. link:
  325. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  326. name: 'String',
  327. nullable: true,
  328. ),
  329. 'dropDownHorecagelegenheidValue': debugSerializeParam(
  330. dropDownHorecagelegenheidValue,
  331. ParamType.String,
  332. link:
  333. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  334. name: 'String',
  335. nullable: true,
  336. ),
  337. 'dropDownCategorieenValue': debugSerializeParam(
  338. dropDownCategorieenValue,
  339. ParamType.String,
  340. isList: true,
  341. link:
  342. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  343. name: 'String',
  344. nullable: true,
  345. ),
  346. 'textFieldDatumStartText': debugSerializeParam(
  347. textFieldDatumStartTextController?.text,
  348. ParamType.String,
  349. link:
  350. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  351. name: 'String',
  352. nullable: true,
  353. ),
  354. 'textFieldDatumEindText': debugSerializeParam(
  355. textFieldDatumEindTextController?.text,
  356. ParamType.String,
  357. link:
  358. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  359. name: 'String',
  360. nullable: true,
  361. ),
  362. 'textFieldWebsiteURLText': debugSerializeParam(
  363. textFieldWebsiteURLTextController?.text,
  364. ParamType.String,
  365. link:
  366. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  367. name: 'String',
  368. nullable: true,
  369. ),
  370. 'textFieldTicketsURLText': debugSerializeParam(
  371. textFieldTicketsURLTextController?.text,
  372. ParamType.String,
  373. link:
  374. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  375. name: 'String',
  376. nullable: true,
  377. ),
  378. 'dropDownEntreeValue': debugSerializeParam(
  379. dropDownEntreeValue,
  380. ParamType.String,
  381. link:
  382. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  383. name: 'String',
  384. nullable: true,
  385. ),
  386. 'textFieldToelichtingEntreeText': debugSerializeParam(
  387. textFieldToelichtingEntreeTextController?.text,
  388. ParamType.String,
  389. link:
  390. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  391. name: 'String',
  392. nullable: true,
  393. ),
  394. 'textFieldEntreeprijsText': debugSerializeParam(
  395. textFieldEntreeprijsTextController?.text,
  396. ParamType.String,
  397. link:
  398. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  399. name: 'String',
  400. nullable: true,
  401. )
  402. }.entries,
  403. actionOutputs: {
  404. 'logoevenementuploadResult': debugSerializeParam(
  405. logoevenementuploadResult,
  406. ParamType.JSON,
  407. link:
  408. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  409. name: 'dynamic',
  410. nullable: true,
  411. ),
  412. 'fotoEvenementuploadResult': debugSerializeParam(
  413. fotoEvenementuploadResult,
  414. ParamType.JSON,
  415. link:
  416. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  417. name: 'dynamic',
  418. nullable: true,
  419. ),
  420. 'createResult': debugSerializeParam(
  421. createResult,
  422. ParamType.JSON,
  423. link:
  424. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
  425. name: 'dynamic',
  426. nullable: true,
  427. )
  428. }.entries,
  429. generatorVariables: debugGeneratorVariables.entries,
  430. backendQueries: debugBackendQueries.entries,
  431. componentStates: {
  432. ...widgetBuilderComponents.map(
  433. (key, value) => MapEntry(
  434. key,
  435. value.toWidgetClassDebugData(),
  436. ),
  437. ),
  438. }.withoutNulls.entries,
  439. link:
  440. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd/tab=uiBuilder&page=uitgaansevenementAanmaken',
  441. searchReference:
  442. 'reference=Ohl1aXRnYWFuc2V2ZW5lbWVudEFhbm1ha2VuUAFaGXVpdGdhYW5zZXZlbmVtZW50QWFubWFrZW4=',
  443. widgetClassName: 'uitgaansevenementAanmaken',
  444. );
  445. }