import '/backend/api_requests/api_calls.dart'; import '/flutter_flow/flutter_flow_drop_down.dart'; import '/flutter_flow/flutter_flow_theme.dart'; import '/flutter_flow/flutter_flow_util.dart'; import '/flutter_flow/flutter_flow_widgets.dart'; import '/flutter_flow/form_field_controller.dart'; import '/flutter_flow/upload_data.dart'; import 'dart:ui'; import '/custom_code/actions/index.dart' as actions; import '/flutter_flow/custom_functions.dart' as functions; import 'uitgaansevenement_aanmaken_widget.dart' show UitgaansevenementAanmakenWidget; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; import 'package:flutter_spinkit/flutter_spinkit.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:provider/provider.dart'; class UitgaansevenementAanmakenModel extends FlutterFlowModel { /// Local state fields for this page. String? _createHorecagelegenheidNid; set createHorecagelegenheidNid(String? value) { _createHorecagelegenheidNid = value; debugLogWidgetClass(this); } String? get createHorecagelegenheidNid => _createHorecagelegenheidNid; late LoggableList _createCategorieTids = LoggableList([]); set createCategorieTids(List value) { if (value != null) { _createCategorieTids = LoggableList(value); } debugLogWidgetClass(this); } List get createCategorieTids => _createCategorieTids?..logger = () => debugLogWidgetClass(this); void addToCreateCategorieTids(String item) => createCategorieTids.add(item); void removeFromCreateCategorieTids(String item) => createCategorieTids.remove(item); void removeAtIndexFromCreateCategorieTids(int index) => createCategorieTids.removeAt(index); void insertAtIndexInCreateCategorieTids(int index, String item) => createCategorieTids.insert(index, item); void updateCreateCategorieTidsAtIndex(int index, Function(String) updateFn) => createCategorieTids[index] = updateFn(createCategorieTids[index]); String? _createEntreeTid; set createEntreeTid(String? value) { _createEntreeTid = value; debugLogWidgetClass(this); } String? get createEntreeTid => _createEntreeTid; String? _createLogoFid; set createLogoFid(String? value) { _createLogoFid = value; debugLogWidgetClass(this); } String? get createLogoFid => _createLogoFid; late LoggableList _createFotosFids = LoggableList([]); set createFotosFids(List value) { if (value != null) { _createFotosFids = LoggableList(value); } debugLogWidgetClass(this); } List get createFotosFids => _createFotosFids?..logger = () => debugLogWidgetClass(this); void addToCreateFotosFids(String item) => createFotosFids.add(item); void removeFromCreateFotosFids(String item) => createFotosFids.remove(item); void removeAtIndexFromCreateFotosFids(int index) => createFotosFids.removeAt(index); void insertAtIndexInCreateFotosFids(int index, String item) => createFotosFids.insert(index, item); void updateCreateFotosFidsAtIndex(int index, Function(String) updateFn) => createFotosFids[index] = updateFn(createFotosFids[index]); String? _createLogoUrl; set createLogoUrl(String? value) { _createLogoUrl = value; debugLogWidgetClass(this); } String? get createLogoUrl => _createLogoUrl; late LoggableList _createFotosUrls = LoggableList([]); set createFotosUrls(List value) { if (value != null) { _createFotosUrls = LoggableList(value); } debugLogWidgetClass(this); } List get createFotosUrls => _createFotosUrls?..logger = () => debugLogWidgetClass(this); void addToCreateFotosUrls(String item) => createFotosUrls.add(item); void removeFromCreateFotosUrls(String item) => createFotosUrls.remove(item); void removeAtIndexFromCreateFotosUrls(int index) => createFotosUrls.removeAt(index); void insertAtIndexInCreateFotosUrls(int index, String item) => createFotosUrls.insert(index, item); void updateCreateFotosUrlsAtIndex(int index, Function(String) updateFn) => createFotosUrls[index] = updateFn(createFotosUrls[index]); /// State fields for stateful widgets in this page. // State field(s) for TextFieldTitel widget. FocusNode? textFieldTitelFocusNode; TextEditingController? textFieldTitelTextController; String? Function(BuildContext, String?)? textFieldTitelTextControllerValidator; // State field(s) for TextFieldOmschrijving widget. FocusNode? textFieldOmschrijvingFocusNode; TextEditingController? textFieldOmschrijvingTextController; String? Function(BuildContext, String?)? textFieldOmschrijvingTextControllerValidator; // State field(s) for DropDownHorecagelegenheid widget. String? _dropDownHorecagelegenheidValue; set dropDownHorecagelegenheidValue(String? value) { _dropDownHorecagelegenheidValue = value; debugLogWidgetClass(this); } String? get dropDownHorecagelegenheidValue => _dropDownHorecagelegenheidValue; FormFieldController? dropDownHorecagelegenheidValueController; // State field(s) for DropDownCategorieen widget. LoggableList? _dropDownCategorieenValue; set dropDownCategorieenValue(List? value) { if (value != null) { _dropDownCategorieenValue = LoggableList(value); } else { _dropDownCategorieenValue = null; } debugLogWidgetClass(this); } List? get dropDownCategorieenValue => _dropDownCategorieenValue?..logger = () => debugLogWidgetClass(this); FormFieldController>? dropDownCategorieenValueController; DateTime? datePicked1; // State field(s) for TextFieldDatumStart widget. FocusNode? textFieldDatumStartFocusNode; TextEditingController? textFieldDatumStartTextController; String? Function(BuildContext, String?)? textFieldDatumStartTextControllerValidator; DateTime? datePicked2; // State field(s) for TextFieldDatumEind widget. FocusNode? textFieldDatumEindFocusNode; TextEditingController? textFieldDatumEindTextController; String? Function(BuildContext, String?)? textFieldDatumEindTextControllerValidator; // State field(s) for TextFieldWebsiteURL widget. FocusNode? textFieldWebsiteURLFocusNode; TextEditingController? textFieldWebsiteURLTextController; String? Function(BuildContext, String?)? textFieldWebsiteURLTextControllerValidator; // State field(s) for TextFieldTicketsURL widget. FocusNode? textFieldTicketsURLFocusNode; TextEditingController? textFieldTicketsURLTextController; String? Function(BuildContext, String?)? textFieldTicketsURLTextControllerValidator; // State field(s) for DropDownEntree widget. String? _dropDownEntreeValue; set dropDownEntreeValue(String? value) { _dropDownEntreeValue = value; debugLogWidgetClass(this); } String? get dropDownEntreeValue => _dropDownEntreeValue; FormFieldController? dropDownEntreeValueController; // State field(s) for TextFieldToelichtingEntree widget. FocusNode? textFieldToelichtingEntreeFocusNode; TextEditingController? textFieldToelichtingEntreeTextController; String? Function(BuildContext, String?)? textFieldToelichtingEntreeTextControllerValidator; // State field(s) for TextFieldEntreeprijs widget. FocusNode? textFieldEntreeprijsFocusNode; TextEditingController? textFieldEntreeprijsTextController; String? Function(BuildContext, String?)? textFieldEntreeprijsTextControllerValidator; bool isDataUploading_uploadDataLogoEvenement = false; FFUploadedFile uploadedLocalFile_uploadDataLogoEvenement = FFUploadedFile(bytes: Uint8List.fromList([]), originalFilename: ''); // Stores action output result for [Custom Action - bestandUpload] action in ButtonLogo widget. dynamic? _logoevenementuploadResult; set logoevenementuploadResult(dynamic? value) { _logoevenementuploadResult = value; debugLogWidgetClass(this); } dynamic? get logoevenementuploadResult => _logoevenementuploadResult; bool isDataUploading_uploadDataFotosEvent = false; FFUploadedFile uploadedLocalFile_uploadDataFotosEvent = FFUploadedFile(bytes: Uint8List.fromList([]), originalFilename: ''); // Stores action output result for [Custom Action - bestandUpload] action in ButtonFotos widget. dynamic? _fotoEvenementuploadResult; set fotoEvenementuploadResult(dynamic? value) { _fotoEvenementuploadResult = value; debugLogWidgetClass(this); } dynamic? get fotoEvenementuploadResult => _fotoEvenementuploadResult; // Stores action output result for [Custom Action - evenementCreate] action in ButtonIndienen widget. dynamic? _createResult; set createResult(dynamic? value) { _createResult = value; debugLogWidgetClass(this); } dynamic? get createResult => _createResult; final Map debugGeneratorVariables = {}; final Map debugBackendQueries = {}; final Map widgetBuilderComponents = {}; @override void initState(BuildContext context) { debugLogWidgetClass(this); } @override void dispose() { textFieldTitelFocusNode?.dispose(); textFieldTitelTextController?.dispose(); textFieldOmschrijvingFocusNode?.dispose(); textFieldOmschrijvingTextController?.dispose(); textFieldDatumStartFocusNode?.dispose(); textFieldDatumStartTextController?.dispose(); textFieldDatumEindFocusNode?.dispose(); textFieldDatumEindTextController?.dispose(); textFieldWebsiteURLFocusNode?.dispose(); textFieldWebsiteURLTextController?.dispose(); textFieldTicketsURLFocusNode?.dispose(); textFieldTicketsURLTextController?.dispose(); textFieldToelichtingEntreeFocusNode?.dispose(); textFieldToelichtingEntreeTextController?.dispose(); textFieldEntreeprijsFocusNode?.dispose(); textFieldEntreeprijsTextController?.dispose(); } @override WidgetClassDebugData toWidgetClassDebugData() => WidgetClassDebugData( widgetParameters: { 'horecagelegenheidNid': debugSerializeParam( widget?.horecagelegenheidNid, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=SiYKHgoUaG9yZWNhZ2VsZWdlbmhlaWROaWQSBnpwZWk2MHIECAMgAFABWhRob3JlY2FnZWxlZ2VuaGVpZE5pZA==', name: 'String', nullable: true, ) }.withoutNulls.entries, localStates: { 'createHorecagelegenheidNid': debugSerializeParam( createHorecagelegenheidNid, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=Qi8KIwoaY3JlYXRlSG9yZWNhZ2VsZWdlbmhlaWROaWQSBWd6bW1uKgISAHIECAMgAFABWhpjcmVhdGVIb3JlY2FnZWxlZ2VuaGVpZE5pZGIZdWl0Z2FhbnNldmVuZW1lbnRBYW5tYWtlbg==', name: 'String', nullable: true, ), 'createCategorieTids': debugSerializeParam( createCategorieTids, ParamType.String, isList: true, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=QiYKHAoTY3JlYXRlQ2F0ZWdvcmllVGlkcxIFcjQzeGRyBhICCAMgAVABWhNjcmVhdGVDYXRlZ29yaWVUaWRzYhl1aXRnYWFuc2V2ZW5lbWVudEFhbm1ha2Vu', name: 'String', nullable: false, ), 'createEntreeTid': debugSerializeParam( createEntreeTid, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=QiQKGAoPY3JlYXRlRW50cmVlVGlkEgU2cm90YSoCEgByBAgDIABQAVoPY3JlYXRlRW50cmVlVGlkYhl1aXRnYWFuc2V2ZW5lbWVudEFhbm1ha2Vu', name: 'String', nullable: true, ), 'createLogoFid': debugSerializeParam( createLogoFid, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=QiIKFgoNY3JlYXRlTG9nb0ZpZBIFMXZvanoqAhIAcgQIAyAAUAFaDWNyZWF0ZUxvZ29GaWRiGXVpdGdhYW5zZXZlbmVtZW50QWFubWFrZW4=', name: 'String', nullable: true, ), 'createFotosFids': debugSerializeParam( createFotosFids, ParamType.String, isList: true, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=QiIKGAoPY3JlYXRlRm90b3NGaWRzEgU5enlvdnIGEgIIAyAAUAFaD2NyZWF0ZUZvdG9zRmlkc2IZdWl0Z2FhbnNldmVuZW1lbnRBYW5tYWtlbg==', name: 'String', nullable: false, ), 'createLogoUrl': debugSerializeParam( createLogoUrl, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=Qh4KFgoNY3JlYXRlTG9nb1VybBIFZGYzMnpyBAgEIABQAVoNY3JlYXRlTG9nb1VybGIZdWl0Z2FhbnNldmVuZW1lbnRBYW5tYWtlbg==', name: 'String', nullable: true, ), 'createFotosUrls': debugSerializeParam( createFotosUrls, ParamType.String, isList: true, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=QiIKGAoPY3JlYXRlRm90b3NVcmxzEgVjZDhwNXIGEgIIBCABUAFaD2NyZWF0ZUZvdG9zVXJsc2IZdWl0Z2FhbnNldmVuZW1lbnRBYW5tYWtlbg==', name: 'String', nullable: false, ) }.entries, widgetStates: { 'textFieldTitelText': debugSerializeParam( textFieldTitelTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'textFieldOmschrijvingText': debugSerializeParam( textFieldOmschrijvingTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'dropDownHorecagelegenheidValue': debugSerializeParam( dropDownHorecagelegenheidValue, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'dropDownCategorieenValue': debugSerializeParam( dropDownCategorieenValue, ParamType.String, isList: true, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'textFieldDatumStartText': debugSerializeParam( textFieldDatumStartTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'textFieldDatumEindText': debugSerializeParam( textFieldDatumEindTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'textFieldWebsiteURLText': debugSerializeParam( textFieldWebsiteURLTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'textFieldTicketsURLText': debugSerializeParam( textFieldTicketsURLTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'dropDownEntreeValue': debugSerializeParam( dropDownEntreeValue, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'textFieldToelichtingEntreeText': debugSerializeParam( textFieldToelichtingEntreeTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ), 'textFieldEntreeprijsText': debugSerializeParam( textFieldEntreeprijsTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'String', nullable: true, ) }.entries, actionOutputs: { 'logoevenementuploadResult': debugSerializeParam( logoevenementuploadResult, ParamType.JSON, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'dynamic', nullable: true, ), 'fotoEvenementuploadResult': debugSerializeParam( fotoEvenementuploadResult, ParamType.JSON, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'dynamic', nullable: true, ), 'createResult': debugSerializeParam( createResult, ParamType.JSON, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken', name: 'dynamic', nullable: true, ) }.entries, generatorVariables: debugGeneratorVariables.entries, backendQueries: debugBackendQueries.entries, componentStates: { ...widgetBuilderComponents.map( (key, value) => MapEntry( key, value.toWidgetClassDebugData(), ), ), }.withoutNulls.entries, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd/tab=uiBuilder&page=uitgaansevenementAanmaken', searchReference: 'reference=Ohl1aXRnYWFuc2V2ZW5lbWVudEFhbm1ha2VuUAFaGXVpdGdhYW5zZXZlbmVtZW50QWFubWFrZW4=', widgetClassName: 'uitgaansevenementAanmaken', ); }