|
|
@@ -1,11 +1,14 @@
|
|
|
import '/components/header_buttons_component_widget.dart';
|
|
|
+import '/flutter_flow/flutter_flow_choice_chips.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 '/shared/drawer_component/drawer_component_widget.dart';
|
|
|
import '/uitgaanspaginas/home_uitgaan_slider_component/home_uitgaan_slider_component_widget.dart';
|
|
|
import '/uitgaanspaginas/home_uitgaantabel_kaart_component/home_uitgaantabel_kaart_component_widget.dart';
|
|
|
import 'dart:ui';
|
|
|
+import '/flutter_flow/custom_functions.dart' as functions;
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_spinkit/flutter_spinkit.dart';
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
@@ -101,6 +104,7 @@ class _HomeWidgetState extends State<HomeWidget>
|
|
|
DebugFlutterFlowModelContext.maybeOf(context)
|
|
|
?.parentModelCallback
|
|
|
?.call(_model);
|
|
|
+ context.watch<FFAppState>();
|
|
|
|
|
|
return GestureDetector(
|
|
|
onTap: () {
|
|
|
@@ -180,6 +184,87 @@ class _HomeWidgetState extends State<HomeWidget>
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
+ FlutterFlowChoiceChips(
|
|
|
+ options: [
|
|
|
+ ChipData(FFLocalizations.of(context).getText(
|
|
|
+ '8khvlnye' /* Alles */,
|
|
|
+ )),
|
|
|
+ ChipData(FFLocalizations.of(context).getText(
|
|
|
+ 'iov8u1yi' /* Vandaag */,
|
|
|
+ )),
|
|
|
+ ChipData(FFLocalizations.of(context).getText(
|
|
|
+ 'gco4jgol' /* Dit weekend */,
|
|
|
+ )),
|
|
|
+ ChipData(FFLocalizations.of(context).getText(
|
|
|
+ 'h6ou1q9q' /* Deze week */,
|
|
|
+ ))
|
|
|
+ ],
|
|
|
+ onChanged: (val) async {
|
|
|
+ safeSetState(
|
|
|
+ () => _model.choiceChipsValue = val?.firstOrNull);
|
|
|
+ FFAppState().datumFilter = _model.choiceChipsValue!;
|
|
|
+ safeSetState(() {});
|
|
|
+ },
|
|
|
+ selectedChipStyle: ChipStyle(
|
|
|
+ backgroundColor: FlutterFlowTheme.of(context).primary,
|
|
|
+ textStyle: FlutterFlowTheme.of(context).bodyMedium.override(
|
|
|
+ font: GoogleFonts.roboto(
|
|
|
+ fontWeight: FlutterFlowTheme.of(context)
|
|
|
+ .bodyMedium
|
|
|
+ .fontWeight,
|
|
|
+ fontStyle:
|
|
|
+ FlutterFlowTheme.of(context).bodyMedium.fontStyle,
|
|
|
+ ),
|
|
|
+ color: FlutterFlowTheme.of(context).info,
|
|
|
+ letterSpacing: 0.0,
|
|
|
+ fontWeight:
|
|
|
+ FlutterFlowTheme.of(context).bodyMedium.fontWeight,
|
|
|
+ fontStyle:
|
|
|
+ FlutterFlowTheme.of(context).bodyMedium.fontStyle,
|
|
|
+ ),
|
|
|
+ iconColor: FlutterFlowTheme.of(context).info,
|
|
|
+ iconSize: 16.0,
|
|
|
+ elevation: 0.0,
|
|
|
+ borderRadius: BorderRadius.circular(8.0),
|
|
|
+ ),
|
|
|
+ unselectedChipStyle: ChipStyle(
|
|
|
+ backgroundColor:
|
|
|
+ FlutterFlowTheme.of(context).secondaryBackground,
|
|
|
+ textStyle: FlutterFlowTheme.of(context).bodyMedium.override(
|
|
|
+ font: GoogleFonts.roboto(
|
|
|
+ fontWeight: FlutterFlowTheme.of(context)
|
|
|
+ .bodyMedium
|
|
|
+ .fontWeight,
|
|
|
+ fontStyle:
|
|
|
+ FlutterFlowTheme.of(context).bodyMedium.fontStyle,
|
|
|
+ ),
|
|
|
+ color: FlutterFlowTheme.of(context).secondaryText,
|
|
|
+ letterSpacing: 0.0,
|
|
|
+ fontWeight:
|
|
|
+ FlutterFlowTheme.of(context).bodyMedium.fontWeight,
|
|
|
+ fontStyle:
|
|
|
+ FlutterFlowTheme.of(context).bodyMedium.fontStyle,
|
|
|
+ ),
|
|
|
+ iconColor: FlutterFlowTheme.of(context).secondaryText,
|
|
|
+ iconSize: 16.0,
|
|
|
+ elevation: 0.0,
|
|
|
+ borderRadius: BorderRadius.circular(8.0),
|
|
|
+ ),
|
|
|
+ chipSpacing: 8.0,
|
|
|
+ rowSpacing: 8.0,
|
|
|
+ multiselect: false,
|
|
|
+ initialized: _model.choiceChipsValue != null,
|
|
|
+ alignment: WrapAlignment.start,
|
|
|
+ controller: _model.choiceChipsValueController ??=
|
|
|
+ FormFieldController<List<String>>(
|
|
|
+ [
|
|
|
+ FFLocalizations.of(context).getText(
|
|
|
+ 'g09d1fb5' /* Alles */,
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ wrapped: true,
|
|
|
+ ),
|
|
|
Expanded(
|
|
|
child: Column(
|
|
|
children: [
|
|
|
@@ -296,7 +381,12 @@ class _HomeWidgetState extends State<HomeWidget>
|
|
|
rootModel: _model.rootModel,
|
|
|
child:
|
|
|
HomeUitgaantabelKaartComponentWidget(
|
|
|
+ key: ValueKey(FFAppState().datumFilter),
|
|
|
displayid: 'services_3',
|
|
|
+ datumVan: functions.filterDatumVan(
|
|
|
+ FFAppState().datumFilter),
|
|
|
+ datumTot: functions.filterDatumTot(
|
|
|
+ FFAppState().datumFilter),
|
|
|
),
|
|
|
);
|
|
|
}),
|
|
|
@@ -321,7 +411,15 @@ class _HomeWidgetState extends State<HomeWidget>
|
|
|
rootModel: _model.rootModel,
|
|
|
child:
|
|
|
HomeUitgaantabelKaartComponentWidget(
|
|
|
+ key: ValueKey(
|
|
|
+ FFAppState().datumFilter),
|
|
|
displayid: 'services_4',
|
|
|
+ datumVan:
|
|
|
+ functions.filterDatumVan(
|
|
|
+ FFAppState().datumFilter),
|
|
|
+ datumTot:
|
|
|
+ functions.filterDatumTot(
|
|
|
+ FFAppState().datumFilter),
|
|
|
),
|
|
|
);
|
|
|
}),
|
|
|
@@ -358,7 +456,15 @@ class _HomeWidgetState extends State<HomeWidget>
|
|
|
rootModel: _model.rootModel,
|
|
|
child:
|
|
|
HomeUitgaantabelKaartComponentWidget(
|
|
|
+ key: ValueKey(
|
|
|
+ FFAppState().datumFilter),
|
|
|
displayid: 'services_5',
|
|
|
+ datumVan:
|
|
|
+ functions.filterDatumVan(
|
|
|
+ FFAppState().datumFilter),
|
|
|
+ datumTot:
|
|
|
+ functions.filterDatumTot(
|
|
|
+ FFAppState().datumFilter),
|
|
|
),
|
|
|
);
|
|
|
}),
|
|
|
@@ -395,7 +501,15 @@ class _HomeWidgetState extends State<HomeWidget>
|
|
|
rootModel: _model.rootModel,
|
|
|
child:
|
|
|
HomeUitgaantabelKaartComponentWidget(
|
|
|
+ key: ValueKey(
|
|
|
+ FFAppState().datumFilter),
|
|
|
displayid: 'services_6',
|
|
|
+ datumVan:
|
|
|
+ functions.filterDatumVan(
|
|
|
+ FFAppState().datumFilter),
|
|
|
+ datumTot:
|
|
|
+ functions.filterDatumTot(
|
|
|
+ FFAppState().datumFilter),
|
|
|
),
|
|
|
);
|
|
|
}),
|
|
|
@@ -432,7 +546,15 @@ class _HomeWidgetState extends State<HomeWidget>
|
|
|
rootModel: _model.rootModel,
|
|
|
child:
|
|
|
HomeUitgaantabelKaartComponentWidget(
|
|
|
+ key: ValueKey(
|
|
|
+ FFAppState().datumFilter),
|
|
|
displayid: 'services_7',
|
|
|
+ datumVan:
|
|
|
+ functions.filterDatumVan(
|
|
|
+ FFAppState().datumFilter),
|
|
|
+ datumTot:
|
|
|
+ functions.filterDatumTot(
|
|
|
+ FFAppState().datumFilter),
|
|
|
),
|
|
|
);
|
|
|
}),
|