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 '/backend/schema/structs/index.dart'; import '/custom_code/actions/index.dart' as actions; import '/flutter_flow/custom_functions.dart' as functions; import 'stadsactiviteit_aanmaken_copy_widget.dart' show StadsactiviteitAanmakenCopyWidget; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_spinkit/flutter_spinkit.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:provider/provider.dart'; class StadsactiviteitAanmakenCopyModel extends FlutterFlowModel { /// Local state fields for this page. String? _createProvincieID; set createProvincieID(String? value) { _createProvincieID = value; debugLogWidgetClass(this); } String? get createProvincieID => _createProvincieID; String? _createGemeenteID; set createGemeenteID(String? value) { _createGemeenteID = value; debugLogWidgetClass(this); } String? get createGemeenteID => _createGemeenteID; String? _createPlaatsID; set createPlaatsID(String? value) { _createPlaatsID = value; debugLogWidgetClass(this); } String? get createPlaatsID => _createPlaatsID; 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]); /// State fields for stateful widgets in this page. // State field(s) for TextFieldTitel widget. FocusNode? textFieldTitelFocusNode; TextEditingController? textFieldTitelTextController; String? Function(BuildContext, String?)? textFieldTitelTextControllerValidator; 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 TextFieldOmschrijving widget. FocusNode? textFieldOmschrijvingFocusNode; TextEditingController? textFieldOmschrijvingTextController; String? Function(BuildContext, String?)? textFieldOmschrijvingTextControllerValidator; // State field(s) for TextFieldOrganisator widget. FocusNode? textFieldOrganisatorFocusNode; TextEditingController? textFieldOrganisatorTextController; String? Function(BuildContext, String?)? textFieldOrganisatorTextControllerValidator; // State field(s) for TextFieldContact widget. FocusNode? textFieldContactFocusNode; TextEditingController? textFieldContactTextController; String? Function(BuildContext, String?)? textFieldContactTextControllerValidator; // State field(s) for TextFieldAdres widget. FocusNode? textFieldAdresFocusNode; TextEditingController? textFieldAdresTextController; String? Function(BuildContext, String?)? textFieldAdresTextControllerValidator; // State field(s) for TextFieldPostcode widget. FocusNode? textFieldPostcodeFocusNode; TextEditingController? textFieldPostcodeTextController; String? Function(BuildContext, String?)? textFieldPostcodeTextControllerValidator; // State field(s) for TextFieldPlaats widget. FocusNode? textFieldPlaatsFocusNode; TextEditingController? textFieldPlaatsTextController; String? Function(BuildContext, String?)? textFieldPlaatsTextControllerValidator; // State field(s) for TextFieldEntreeprijs widget. FocusNode? textFieldEntreeprijsFocusNode; TextEditingController? textFieldEntreeprijsTextController; String? Function(BuildContext, String?)? textFieldEntreeprijsTextControllerValidator; // State field(s) for TextFieldToelichtingEntree widget. FocusNode? textFieldToelichtingEntreeFocusNode; TextEditingController? textFieldToelichtingEntreeTextController; String? Function(BuildContext, String?)? textFieldToelichtingEntreeTextControllerValidator; // State field(s) for TextFieldWebsiteURL widget. FocusNode? textFieldWebsiteURLFocusNode; TextEditingController? textFieldWebsiteURLTextController; String? Function(BuildContext, String?)? textFieldWebsiteURLTextControllerValidator; // State field(s) for DropDownGemeenten-mijngemeenten widget. String? _dropDownGemeentenMijngemeentenValue; set dropDownGemeentenMijngemeentenValue(String? value) { _dropDownGemeentenMijngemeentenValue = value; debugLogWidgetClass(this); } String? get dropDownGemeentenMijngemeentenValue => _dropDownGemeentenMijngemeentenValue; FormFieldController? dropDownGemeentenMijngemeentenValueController; // State field(s) for DropDownProvincie widget. String? _dropDownProvincieValue; set dropDownProvincieValue(String? value) { _dropDownProvincieValue = value; debugLogWidgetClass(this); } String? get dropDownProvincieValue => _dropDownProvincieValue; FormFieldController? dropDownProvincieValueController; // State field(s) for DropDownGemeente widget. String? _dropDownGemeenteValue; set dropDownGemeenteValue(String? value) { _dropDownGemeenteValue = value; debugLogWidgetClass(this); } String? get dropDownGemeenteValue => _dropDownGemeenteValue; FormFieldController? dropDownGemeenteValueController; // State field(s) for DropDownPlaats widget. String? _dropDownPlaatsValue; set dropDownPlaatsValue(String? value) { _dropDownPlaatsValue = value; debugLogWidgetClass(this); } String? get dropDownPlaatsValue => _dropDownPlaatsValue; FormFieldController? dropDownPlaatsValueController; // 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; // State field(s) for DropDownEntree widget. String? _dropDownEntreeValue; set dropDownEntreeValue(String? value) { _dropDownEntreeValue = value; debugLogWidgetClass(this); } String? get dropDownEntreeValue => _dropDownEntreeValue; FormFieldController? dropDownEntreeValueController; bool isDataUploading_uploadDataCnm = false; FFUploadedFile uploadedLocalFile_uploadDataCnm = FFUploadedFile(bytes: Uint8List.fromList([]), originalFilename: ''); // Stores action output result for [Custom Action - bestandUpload] action in ButtonLogo widget. dynamic? _logouploadResult; set logouploadResult(dynamic? value) { _logouploadResult = value; debugLogWidgetClass(this); } dynamic? get logouploadResult => _logouploadResult; bool isDataUploading_uploadDataFotoos3 = false; FFUploadedFile uploadedLocalFile_uploadDataFotoos3 = FFUploadedFile(bytes: Uint8List.fromList([]), originalFilename: ''); // Stores action output result for [Custom Action - bestandUpload] action in ButtonFotos widget. dynamic? _fotouploadResult; set fotouploadResult(dynamic? value) { _fotouploadResult = value; debugLogWidgetClass(this); } dynamic? get fotouploadResult => _fotouploadResult; // Stores action output result for [Custom Action - stadsactiviteitCreate] 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(); textFieldDatumStartFocusNode?.dispose(); textFieldDatumStartTextController?.dispose(); textFieldDatumEindFocusNode?.dispose(); textFieldDatumEindTextController?.dispose(); textFieldOmschrijvingFocusNode?.dispose(); textFieldOmschrijvingTextController?.dispose(); textFieldOrganisatorFocusNode?.dispose(); textFieldOrganisatorTextController?.dispose(); textFieldContactFocusNode?.dispose(); textFieldContactTextController?.dispose(); textFieldAdresFocusNode?.dispose(); textFieldAdresTextController?.dispose(); textFieldPostcodeFocusNode?.dispose(); textFieldPostcodeTextController?.dispose(); textFieldPlaatsFocusNode?.dispose(); textFieldPlaatsTextController?.dispose(); textFieldEntreeprijsFocusNode?.dispose(); textFieldEntreeprijsTextController?.dispose(); textFieldToelichtingEntreeFocusNode?.dispose(); textFieldToelichtingEntreeTextController?.dispose(); textFieldWebsiteURLFocusNode?.dispose(); textFieldWebsiteURLTextController?.dispose(); } @override WidgetClassDebugData toWidgetClassDebugData() => WidgetClassDebugData( localStates: { 'createProvincieID': debugSerializeParam( createProvincieID, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', searchReference: 'reference=QiYKGgoRY3JlYXRlUHJvdmluY2llSUQSBXIwb2E2KgISAHIECAMgAFABWhFjcmVhdGVQcm92aW5jaWVJRGIbc3RhZHNhY3Rpdml0ZWl0QWFubWFrZW5Db3B5', name: 'String', nullable: true, ), 'createGemeenteID': debugSerializeParam( createGemeenteID, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', searchReference: 'reference=QiUKGQoQY3JlYXRlR2VtZWVudGVJRBIFYmFwZW0qAhIAcgQIAyAAUAFaEGNyZWF0ZUdlbWVlbnRlSURiG3N0YWRzYWN0aXZpdGVpdEFhbm1ha2VuQ29weQ==', name: 'String', nullable: true, ), 'createPlaatsID': debugSerializeParam( createPlaatsID, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', searchReference: 'reference=QiMKFwoOY3JlYXRlUGxhYXRzSUQSBWd6bW1uKgISAHIECAMgAFABWg5jcmVhdGVQbGFhdHNJRGIbc3RhZHNhY3Rpdml0ZWl0QWFubWFrZW5Db3B5', name: 'String', nullable: true, ), 'createCategorieTids': debugSerializeParam( createCategorieTids, ParamType.String, isList: true, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', searchReference: 'reference=QiYKHAoTY3JlYXRlQ2F0ZWdvcmllVGlkcxIFcjQzeGRyBhICCAMgAVABWhNjcmVhdGVDYXRlZ29yaWVUaWRzYhtzdGFkc2FjdGl2aXRlaXRBYW5tYWtlbkNvcHk=', name: 'String', nullable: false, ), 'createEntreeTid': debugSerializeParam( createEntreeTid, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', searchReference: 'reference=QiQKGAoPY3JlYXRlRW50cmVlVGlkEgU2cm90YSoCEgByBAgDIABQAVoPY3JlYXRlRW50cmVlVGlkYhtzdGFkc2FjdGl2aXRlaXRBYW5tYWtlbkNvcHk=', name: 'String', nullable: true, ), 'createLogoFid': debugSerializeParam( createLogoFid, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', searchReference: 'reference=QiIKFgoNY3JlYXRlTG9nb0ZpZBIFMXZvanoqAhIAcgQIAyAAUAFaDWNyZWF0ZUxvZ29GaWRiG3N0YWRzYWN0aXZpdGVpdEFhbm1ha2VuQ29weQ==', name: 'String', nullable: true, ), 'createFotosFids': debugSerializeParam( createFotosFids, ParamType.String, isList: true, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', searchReference: 'reference=QiIKGAoPY3JlYXRlRm90b3NGaWRzEgU5enlvdnIGEgIIAyAAUAFaD2NyZWF0ZUZvdG9zRmlkc2Ibc3RhZHNhY3Rpdml0ZWl0QWFubWFrZW5Db3B5', name: 'String', nullable: false, ) }.entries, widgetStates: { 'textFieldTitelText': debugSerializeParam( textFieldTitelTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldDatumStartText': debugSerializeParam( textFieldDatumStartTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldDatumEindText': debugSerializeParam( textFieldDatumEindTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldOmschrijvingText': debugSerializeParam( textFieldOmschrijvingTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldOrganisatorText': debugSerializeParam( textFieldOrganisatorTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldContactText': debugSerializeParam( textFieldContactTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldAdresText': debugSerializeParam( textFieldAdresTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldPostcodeText': debugSerializeParam( textFieldPostcodeTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldPlaatsText': debugSerializeParam( textFieldPlaatsTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldEntreeprijsText': debugSerializeParam( textFieldEntreeprijsTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldToelichtingEntreeText': debugSerializeParam( textFieldToelichtingEntreeTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'textFieldWebsiteURLText': debugSerializeParam( textFieldWebsiteURLTextController?.text, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'dropDownGemeentenMijngemeentenValue': debugSerializeParam( dropDownGemeentenMijngemeentenValue, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'dropDownProvincieValue': debugSerializeParam( dropDownProvincieValue, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'dropDownGemeenteValue': debugSerializeParam( dropDownGemeenteValue, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'dropDownPlaatsValue': debugSerializeParam( dropDownPlaatsValue, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'dropDownCategorieenValue': debugSerializeParam( dropDownCategorieenValue, ParamType.String, isList: true, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ), 'dropDownEntreeValue': debugSerializeParam( dropDownEntreeValue, ParamType.String, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'String', nullable: true, ) }.entries, actionOutputs: { 'logouploadResult': debugSerializeParam( logouploadResult, ParamType.JSON, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'dynamic', nullable: true, ), 'fotouploadResult': debugSerializeParam( fotouploadResult, ParamType.JSON, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', name: 'dynamic', nullable: true, ), 'createResult': debugSerializeParam( createResult, ParamType.JSON, link: 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy', 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=stadsactiviteitAanmakenCopy', searchReference: 'reference=OhtzdGFkc2FjdGl2aXRlaXRBYW5tYWtlbkNvcHlQAVobc3RhZHNhY3Rpdml0ZWl0QWFubWFrZW5Db3B5', widgetClassName: 'stadsactiviteitAanmakenCopy', ); }