fotoboek_grid_component_model.dart 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. import '/backend/api_requests/api_calls.dart';
  2. import '/flutter_flow/flutter_flow_theme.dart';
  3. import '/flutter_flow/flutter_flow_util.dart';
  4. import '/flutter_flow/flutter_flow_widgets.dart';
  5. import '/shared/lege_lijst_component/lege_lijst_component_widget.dart';
  6. import 'dart:ui';
  7. import 'fotoboek_grid_component_widget.dart' show FotoboekGridComponentWidget;
  8. import 'package:easy_debounce/easy_debounce.dart';
  9. import 'package:flutter/material.dart';
  10. import 'package:flutter_spinkit/flutter_spinkit.dart';
  11. import 'package:google_fonts/google_fonts.dart';
  12. import 'package:provider/provider.dart';
  13. class FotoboekGridComponentModel
  14. extends FlutterFlowModel<FotoboekGridComponentWidget> {
  15. /// Local state fields for this component.
  16. String _zoekterm = '';
  17. set zoekterm(String value) {
  18. _zoekterm = value;
  19. debugLogWidgetClass(this);
  20. }
  21. String get zoekterm => _zoekterm;
  22. /// State fields for stateful widgets in this component.
  23. // State field(s) for TextField widget.
  24. FocusNode? textFieldFocusNode;
  25. TextEditingController? textController;
  26. String? Function(BuildContext, String?)? textControllerValidator;
  27. final Map<String, DebugDataField> debugGeneratorVariables = {};
  28. final Map<String, DebugDataField> debugBackendQueries = {};
  29. final Map<String, FlutterFlowModel> widgetBuilderComponents = {};
  30. @override
  31. void initState(BuildContext context) {}
  32. @override
  33. void dispose() {
  34. textFieldFocusNode?.dispose();
  35. textController?.dispose();
  36. }
  37. @override
  38. WidgetClassDebugData toWidgetClassDebugData() => WidgetClassDebugData(
  39. widgetParameters: {
  40. 'parameter1': debugSerializeParam(
  41. widget?.parameter1,
  42. ParamType.JSON,
  43. link:
  44. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=FotoboekGridComponent',
  45. searchReference:
  46. 'reference=ShoKFAoKcGFyYW1ldGVyMRIGOWQ1dXgxcgIICVAAWgpwYXJhbWV0ZXIx',
  47. name: 'dynamic',
  48. nullable: true,
  49. ),
  50. 'parameter2': debugSerializeParam(
  51. widget?.parameter2,
  52. ParamType.JSON,
  53. link:
  54. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=FotoboekGridComponent',
  55. searchReference:
  56. 'reference=ShoKFAoKcGFyYW1ldGVyMhIGb2o2cGM5cgIICVAAWgpwYXJhbWV0ZXIy',
  57. name: 'dynamic',
  58. nullable: true,
  59. ),
  60. 'parameter3': debugSerializeParam(
  61. widget?.parameter3,
  62. ParamType.JSON,
  63. link:
  64. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=FotoboekGridComponent',
  65. searchReference:
  66. 'reference=ShoKFAoKcGFyYW1ldGVyMxIGdXN6MTgwcgIICVAAWgpwYXJhbWV0ZXIz',
  67. name: 'dynamic',
  68. nullable: true,
  69. ),
  70. 'parameter4': debugSerializeParam(
  71. widget?.parameter4,
  72. ParamType.JSON,
  73. isList: true,
  74. link:
  75. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=FotoboekGridComponent',
  76. searchReference:
  77. 'reference=ShwKFAoKcGFyYW1ldGVyNBIGOWp4OHEwcgQSAggJUABaCnBhcmFtZXRlcjQ=',
  78. name: 'dynamic',
  79. nullable: true,
  80. ),
  81. 'bijKeuze': debugSerializeParam(
  82. widget?.bijKeuze,
  83. ParamType.Action,
  84. link:
  85. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=FotoboekGridComponent',
  86. searchReference:
  87. 'reference=SkgKEgoIYmlqS2V1emUSBnM2azYyaXIyCBUgATIVCg0KA2ZpZBIGbnNuaGl6cgQIAyABMhUKDQoDdXJsEgZtd3N5eW1yBAgEIAFQAFoIYmlqS2V1emU=',
  88. name: 'Future Function(String fid, String url)',
  89. nullable: true,
  90. )
  91. }.withoutNulls.entries,
  92. localStates: {
  93. 'zoekterm': debugSerializeParam(
  94. zoekterm,
  95. ParamType.String,
  96. link:
  97. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=FotoboekGridComponent',
  98. searchReference:
  99. 'reference=Qh0KEQoIem9la3Rlcm0SBXdoaWpuKgISAHIECAMgAVAAWgh6b2VrdGVybWIVRm90b2JvZWtHcmlkQ29tcG9uZW50',
  100. name: 'String',
  101. nullable: false,
  102. )
  103. }.entries,
  104. widgetStates: {
  105. 'textFieldText': debugSerializeParam(
  106. textController?.text,
  107. ParamType.String,
  108. link:
  109. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=FotoboekGridComponent',
  110. name: 'String',
  111. nullable: true,
  112. )
  113. }.entries,
  114. generatorVariables: debugGeneratorVariables.entries,
  115. backendQueries: debugBackendQueries.entries,
  116. componentStates: {
  117. ...widgetBuilderComponents.map(
  118. (key, value) => MapEntry(
  119. key,
  120. value.toWidgetClassDebugData(),
  121. ),
  122. ),
  123. }.withoutNulls.entries,
  124. link:
  125. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd/tab=uiBuilder&page=FotoboekGridComponent',
  126. searchReference:
  127. 'reference=OhVGb3RvYm9la0dyaWRDb21wb25lbnRQAFoVRm90b2JvZWtHcmlkQ29tcG9uZW50',
  128. widgetClassName: 'FotoboekGridComponent',
  129. );
  130. }