uitgaansevenement_aanmaken_model.dart 18 KB

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