|
|
@@ -7,6 +7,7 @@ import '/flutter_flow/flutter_flow_widgets.dart';
|
|
|
import '/flutter_flow/form_field_controller.dart';
|
|
|
import '/flutter_flow/upload_data.dart';
|
|
|
import '/shared/drawer_component/drawer_component_widget.dart';
|
|
|
+import '/shared/lege_lijst_component/lege_lijst_component_widget.dart';
|
|
|
import 'dart:ui';
|
|
|
import '/custom_code/actions/index.dart' as actions;
|
|
|
import '/flutter_flow/custom_functions.dart' as functions;
|
|
|
@@ -2775,6 +2776,50 @@ class _UitgaansevenementAanmakenWidgetState
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
+ Align(
|
|
|
+ alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
+ child: FFButtonWidget(
|
|
|
+ onPressed: () async {
|
|
|
+ _model.fotoboekOpen = !_model.fotoboekOpen;
|
|
|
+ safeSetState(() {});
|
|
|
+ },
|
|
|
+ text: FFLocalizations.of(context).getText(
|
|
|
+ 'ml0k1fmv' /* Uit fotoboek */,
|
|
|
+ ),
|
|
|
+ options: FFButtonOptions(
|
|
|
+ height: 40.0,
|
|
|
+ padding: EdgeInsetsDirectional.fromSTEB(
|
|
|
+ 16.0, 0.0, 16.0, 0.0),
|
|
|
+ iconPadding: EdgeInsetsDirectional.fromSTEB(
|
|
|
+ 0.0, 0.0, 0.0, 0.0),
|
|
|
+ color: FlutterFlowTheme.of(context).secondary,
|
|
|
+ textStyle: FlutterFlowTheme.of(context)
|
|
|
+ .titleSmall
|
|
|
+ .override(
|
|
|
+ font: GoogleFonts.roboto(
|
|
|
+ fontWeight:
|
|
|
+ FlutterFlowTheme.of(context)
|
|
|
+ .titleSmall
|
|
|
+ .fontWeight,
|
|
|
+ fontStyle:
|
|
|
+ FlutterFlowTheme.of(context)
|
|
|
+ .titleSmall
|
|
|
+ .fontStyle,
|
|
|
+ ),
|
|
|
+ color: Colors.white,
|
|
|
+ letterSpacing: 0.0,
|
|
|
+ fontWeight: FlutterFlowTheme.of(context)
|
|
|
+ .titleSmall
|
|
|
+ .fontWeight,
|
|
|
+ fontStyle: FlutterFlowTheme.of(context)
|
|
|
+ .titleSmall
|
|
|
+ .fontStyle,
|
|
|
+ ),
|
|
|
+ elevation: 0.0,
|
|
|
+ borderRadius: BorderRadius.circular(8.0),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
if (_model.createLogoUrl != null &&
|
|
|
_model.createLogoUrl != '')
|
|
|
ClipRRect(
|
|
|
@@ -2977,6 +3022,163 @@ class _UitgaansevenementAanmakenWidgetState
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
+ if (_model.fotoboekOpen)
|
|
|
+ Padding(
|
|
|
+ padding: EdgeInsetsDirectional.fromSTEB(
|
|
|
+ 0.0, 12.0, 0.0, 0.0),
|
|
|
+ child: Container(
|
|
|
+ height: 300.0,
|
|
|
+ decoration: BoxDecoration(),
|
|
|
+ child: Visibility(
|
|
|
+ visible: _model.fotoboekOpen,
|
|
|
+ child: Column(
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
+ children: [
|
|
|
+ Expanded(
|
|
|
+ child: FutureBuilder<ApiCallResponse>(
|
|
|
+ future: MijnFotosCall.call(
|
|
|
+ sessionName:
|
|
|
+ FFAppState().userSessionname,
|
|
|
+ sessid: FFAppState().userSessionid,
|
|
|
+ ),
|
|
|
+ builder: (context, snapshot) {
|
|
|
+ // Customize what your widget looks like when it's loading.
|
|
|
+ if (!snapshot.hasData) {
|
|
|
+ return Center(
|
|
|
+ child: SizedBox(
|
|
|
+ width: 80.0,
|
|
|
+ height: 80.0,
|
|
|
+ child: SpinKitFadingCircle(
|
|
|
+ color: FlutterFlowTheme.of(
|
|
|
+ context)
|
|
|
+ .primary,
|
|
|
+ size: 80.0,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ final gridViewMijnFotosResponse =
|
|
|
+ snapshot.data!;
|
|
|
+ _model.debugBackendQueries[
|
|
|
+ 'MijnFotosCall_statusCode_GridView_pu3jv77b'] =
|
|
|
+ debugSerializeParam(
|
|
|
+ gridViewMijnFotosResponse
|
|
|
+ .statusCode,
|
|
|
+ ParamType.int,
|
|
|
+ link:
|
|
|
+ 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
|
|
|
+ name: 'int',
|
|
|
+ nullable: false,
|
|
|
+ );
|
|
|
+ _model.debugBackendQueries[
|
|
|
+ 'MijnFotosCall_responseBody_GridView_pu3jv77b'] =
|
|
|
+ debugSerializeParam(
|
|
|
+ gridViewMijnFotosResponse.bodyText,
|
|
|
+ ParamType.String,
|
|
|
+ link:
|
|
|
+ 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
|
|
|
+ name: 'String',
|
|
|
+ nullable: false,
|
|
|
+ );
|
|
|
+ debugLogWidgetClass(_model);
|
|
|
+
|
|
|
+ return Builder(
|
|
|
+ builder: (context) {
|
|
|
+ final fotoboekItem =
|
|
|
+ MijnFotosCall.items(
|
|
|
+ gridViewMijnFotosResponse
|
|
|
+ .jsonBody,
|
|
|
+ )?.toList() ??
|
|
|
+ [];
|
|
|
+ if (fotoboekItem.isEmpty) {
|
|
|
+ return Center(
|
|
|
+ child:
|
|
|
+ LegeLijstComponentWidget(
|
|
|
+ tekst:
|
|
|
+ 'Je hebt nog geen foto\'s. Upload er een met Logo kiezen.',
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
+ _model.debugGeneratorVariables[
|
|
|
+ 'fotoboekItem${fotoboekItem.length > 100 ? ' (first 100)' : ''}'] =
|
|
|
+ debugSerializeParam(
|
|
|
+ fotoboekItem.take(100),
|
|
|
+ ParamType.JSON,
|
|
|
+ isList: true,
|
|
|
+ link:
|
|
|
+ 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=uitgaansevenementAanmaken',
|
|
|
+ name: 'dynamic',
|
|
|
+ nullable: false,
|
|
|
+ );
|
|
|
+ debugLogWidgetClass(_model);
|
|
|
+
|
|
|
+ return GridView.builder(
|
|
|
+ padding: EdgeInsets.zero,
|
|
|
+ gridDelegate:
|
|
|
+ SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
+ crossAxisCount: 3,
|
|
|
+ crossAxisSpacing: 10.0,
|
|
|
+ mainAxisSpacing: 10.0,
|
|
|
+ childAspectRatio: 1.0,
|
|
|
+ ),
|
|
|
+ scrollDirection: Axis.vertical,
|
|
|
+ itemCount: fotoboekItem.length,
|
|
|
+ itemBuilder: (context,
|
|
|
+ fotoboekItemIndex) {
|
|
|
+ final fotoboekItemItem =
|
|
|
+ fotoboekItem[
|
|
|
+ fotoboekItemIndex];
|
|
|
+ return InkWell(
|
|
|
+ splashColor:
|
|
|
+ Colors.transparent,
|
|
|
+ focusColor:
|
|
|
+ Colors.transparent,
|
|
|
+ hoverColor:
|
|
|
+ Colors.transparent,
|
|
|
+ highlightColor:
|
|
|
+ Colors.transparent,
|
|
|
+ onTap: () async {
|
|
|
+ _model.createLogoFid =
|
|
|
+ getJsonField(
|
|
|
+ fotoboekItemItem,
|
|
|
+ r'''$.fid''',
|
|
|
+ ).toString();
|
|
|
+ _model.createLogoUrl =
|
|
|
+ getJsonField(
|
|
|
+ fotoboekItemItem,
|
|
|
+ r'''$.url''',
|
|
|
+ ).toString();
|
|
|
+ _model.fotoboekOpen =
|
|
|
+ false;
|
|
|
+ safeSetState(() {});
|
|
|
+ },
|
|
|
+ child: ClipRRect(
|
|
|
+ borderRadius:
|
|
|
+ BorderRadius.circular(
|
|
|
+ 8.0),
|
|
|
+ child: Image.network(
|
|
|
+ getJsonField(
|
|
|
+ fotoboekItemItem,
|
|
|
+ r'''$.thumb''',
|
|
|
+ ).toString(),
|
|
|
+ width: double.infinity,
|
|
|
+ height: double.infinity,
|
|
|
+ fit: BoxFit.cover,
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ },
|
|
|
+ );
|
|
|
+ },
|
|
|
+ );
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
],
|
|
|
),
|
|
|
),
|