|
@@ -211,28 +211,31 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
child: Column(
|
|
child: Column(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
children: [
|
|
children: [
|
|
|
- Text(
|
|
|
|
|
- FFLocalizations.of(context).getText(
|
|
|
|
|
- 'hu7xw8pm' /* Wat */,
|
|
|
|
|
- ),
|
|
|
|
|
- style: FlutterFlowTheme.of(context)
|
|
|
|
|
- .bodyMedium
|
|
|
|
|
- .override(
|
|
|
|
|
- font: GoogleFonts.roboto(
|
|
|
|
|
|
|
+ Align(
|
|
|
|
|
+ alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ FFLocalizations.of(context).getText(
|
|
|
|
|
+ 'hu7xw8pm' /* Wat */,
|
|
|
|
|
+ ),
|
|
|
|
|
+ style: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyMedium
|
|
|
|
|
+ .override(
|
|
|
|
|
+ font: GoogleFonts.roboto(
|
|
|
|
|
+ fontWeight: FontWeight.w600,
|
|
|
|
|
+ fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyMedium
|
|
|
|
|
+ .fontStyle,
|
|
|
|
|
+ ),
|
|
|
|
|
+ color: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .primaryText,
|
|
|
|
|
+ fontSize: 16.0,
|
|
|
|
|
+ letterSpacing: 0.0,
|
|
|
fontWeight: FontWeight.w600,
|
|
fontWeight: FontWeight.w600,
|
|
|
fontStyle: FlutterFlowTheme.of(context)
|
|
fontStyle: FlutterFlowTheme.of(context)
|
|
|
.bodyMedium
|
|
.bodyMedium
|
|
|
.fontStyle,
|
|
.fontStyle,
|
|
|
),
|
|
),
|
|
|
- color: FlutterFlowTheme.of(context)
|
|
|
|
|
- .primaryText,
|
|
|
|
|
- fontSize: 16.0,
|
|
|
|
|
- letterSpacing: 0.0,
|
|
|
|
|
- fontWeight: FontWeight.w600,
|
|
|
|
|
- fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
- .bodyMedium
|
|
|
|
|
- .fontStyle,
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
Align(
|
|
Align(
|
|
|
alignment: AlignmentDirectional(-1.0, 0.0),
|
|
alignment: AlignmentDirectional(-1.0, 0.0),
|
|
@@ -707,26 +710,29 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
child: Column(
|
|
child: Column(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
children: [
|
|
children: [
|
|
|
- Text(
|
|
|
|
|
- FFLocalizations.of(context).getText(
|
|
|
|
|
- 'dq3j79df' /* Wanneer */,
|
|
|
|
|
- ),
|
|
|
|
|
- style: FlutterFlowTheme.of(context)
|
|
|
|
|
- .bodyMedium
|
|
|
|
|
- .override(
|
|
|
|
|
- font: GoogleFonts.roboto(
|
|
|
|
|
|
|
+ Align(
|
|
|
|
|
+ alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ FFLocalizations.of(context).getText(
|
|
|
|
|
+ 'dq3j79df' /* Wanneer */,
|
|
|
|
|
+ ),
|
|
|
|
|
+ style: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyMedium
|
|
|
|
|
+ .override(
|
|
|
|
|
+ font: GoogleFonts.roboto(
|
|
|
|
|
+ fontWeight: FontWeight.w600,
|
|
|
|
|
+ fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyMedium
|
|
|
|
|
+ .fontStyle,
|
|
|
|
|
+ ),
|
|
|
|
|
+ fontSize: 16.0,
|
|
|
|
|
+ letterSpacing: 0.0,
|
|
|
fontWeight: FontWeight.w600,
|
|
fontWeight: FontWeight.w600,
|
|
|
fontStyle: FlutterFlowTheme.of(context)
|
|
fontStyle: FlutterFlowTheme.of(context)
|
|
|
.bodyMedium
|
|
.bodyMedium
|
|
|
.fontStyle,
|
|
.fontStyle,
|
|
|
),
|
|
),
|
|
|
- fontSize: 16.0,
|
|
|
|
|
- letterSpacing: 0.0,
|
|
|
|
|
- fontWeight: FontWeight.w600,
|
|
|
|
|
- fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
- .bodyMedium
|
|
|
|
|
- .fontStyle,
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
InkWell(
|
|
InkWell(
|
|
|
splashColor: Colors.transparent,
|
|
splashColor: Colors.transparent,
|
|
@@ -1295,26 +1301,29 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
child: Column(
|
|
child: Column(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
children: [
|
|
children: [
|
|
|
- Text(
|
|
|
|
|
- FFLocalizations.of(context).getText(
|
|
|
|
|
- 'go2ky4mu' /* Waar */,
|
|
|
|
|
- ),
|
|
|
|
|
- style: FlutterFlowTheme.of(context)
|
|
|
|
|
- .bodyMedium
|
|
|
|
|
- .override(
|
|
|
|
|
- font: GoogleFonts.roboto(
|
|
|
|
|
|
|
+ Align(
|
|
|
|
|
+ alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ FFLocalizations.of(context).getText(
|
|
|
|
|
+ 'go2ky4mu' /* Waar */,
|
|
|
|
|
+ ),
|
|
|
|
|
+ style: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyMedium
|
|
|
|
|
+ .override(
|
|
|
|
|
+ font: GoogleFonts.roboto(
|
|
|
|
|
+ fontWeight: FontWeight.w600,
|
|
|
|
|
+ fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyMedium
|
|
|
|
|
+ .fontStyle,
|
|
|
|
|
+ ),
|
|
|
|
|
+ fontSize: 16.0,
|
|
|
|
|
+ letterSpacing: 0.0,
|
|
|
fontWeight: FontWeight.w600,
|
|
fontWeight: FontWeight.w600,
|
|
|
fontStyle: FlutterFlowTheme.of(context)
|
|
fontStyle: FlutterFlowTheme.of(context)
|
|
|
.bodyMedium
|
|
.bodyMedium
|
|
|
.fontStyle,
|
|
.fontStyle,
|
|
|
),
|
|
),
|
|
|
- fontSize: 16.0,
|
|
|
|
|
- letterSpacing: 0.0,
|
|
|
|
|
- fontWeight: FontWeight.w600,
|
|
|
|
|
- fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
- .bodyMedium
|
|
|
|
|
- .fontStyle,
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
Align(
|
|
Align(
|
|
|
alignment: AlignmentDirectional(-1.0, 0.0),
|
|
alignment: AlignmentDirectional(-1.0, 0.0),
|
|
@@ -2237,7 +2246,7 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
),
|
|
),
|
|
|
filled: true,
|
|
filled: true,
|
|
|
fillColor: FlutterFlowTheme.of(context)
|
|
fillColor: FlutterFlowTheme.of(context)
|
|
|
- .secondaryBackground,
|
|
|
|
|
|
|
+ .primaryBackground,
|
|
|
),
|
|
),
|
|
|
style: FlutterFlowTheme.of(context)
|
|
style: FlutterFlowTheme.of(context)
|
|
|
.bodyMedium
|
|
.bodyMedium
|
|
@@ -2289,26 +2298,29 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
child: Column(
|
|
child: Column(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
children: [
|
|
children: [
|
|
|
- Text(
|
|
|
|
|
- FFLocalizations.of(context).getText(
|
|
|
|
|
- '90c9lm1u' /* Organisatie */,
|
|
|
|
|
- ),
|
|
|
|
|
- style: FlutterFlowTheme.of(context)
|
|
|
|
|
- .bodyMedium
|
|
|
|
|
- .override(
|
|
|
|
|
- font: GoogleFonts.roboto(
|
|
|
|
|
|
|
+ Align(
|
|
|
|
|
+ alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ FFLocalizations.of(context).getText(
|
|
|
|
|
+ '90c9lm1u' /* Organisatie */,
|
|
|
|
|
+ ),
|
|
|
|
|
+ style: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyMedium
|
|
|
|
|
+ .override(
|
|
|
|
|
+ font: GoogleFonts.roboto(
|
|
|
|
|
+ fontWeight: FontWeight.w600,
|
|
|
|
|
+ fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyMedium
|
|
|
|
|
+ .fontStyle,
|
|
|
|
|
+ ),
|
|
|
|
|
+ fontSize: 16.0,
|
|
|
|
|
+ letterSpacing: 0.0,
|
|
|
fontWeight: FontWeight.w600,
|
|
fontWeight: FontWeight.w600,
|
|
|
fontStyle: FlutterFlowTheme.of(context)
|
|
fontStyle: FlutterFlowTheme.of(context)
|
|
|
.bodyMedium
|
|
.bodyMedium
|
|
|
.fontStyle,
|
|
.fontStyle,
|
|
|
),
|
|
),
|
|
|
- fontSize: 16.0,
|
|
|
|
|
- letterSpacing: 0.0,
|
|
|
|
|
- fontWeight: FontWeight.w600,
|
|
|
|
|
- fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
- .bodyMedium
|
|
|
|
|
- .fontStyle,
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
Container(
|
|
Container(
|
|
|
width: double.infinity,
|
|
width: double.infinity,
|
|
@@ -3201,28 +3213,39 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
- Container(
|
|
|
|
|
- width: double.infinity,
|
|
|
|
|
- decoration: BoxDecoration(
|
|
|
|
|
- color: FlutterFlowTheme.of(context).secondaryBackground,
|
|
|
|
|
- border: Border.all(
|
|
|
|
|
- color: FlutterFlowTheme.of(context).alternate,
|
|
|
|
|
- width: 3.0,
|
|
|
|
|
|
|
+ Padding(
|
|
|
|
|
+ padding: EdgeInsets.all(16.0),
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ width: double.infinity,
|
|
|
|
|
+ decoration: BoxDecoration(
|
|
|
|
|
+ color: FlutterFlowTheme.of(context).secondaryBackground,
|
|
|
|
|
+ border: Border.all(
|
|
|
|
|
+ color: FlutterFlowTheme.of(context).alternate,
|
|
|
|
|
+ width: 3.0,
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
- ),
|
|
|
|
|
- child: Column(
|
|
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
|
|
- children: [
|
|
|
|
|
- Align(
|
|
|
|
|
- alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
|
|
- child: Text(
|
|
|
|
|
- FFLocalizations.of(context).getText(
|
|
|
|
|
- 'nfxdqk4i' /* Media */,
|
|
|
|
|
- ),
|
|
|
|
|
- style: FlutterFlowTheme.of(context)
|
|
|
|
|
- .headlineSmall
|
|
|
|
|
- .override(
|
|
|
|
|
- font: GoogleFonts.roboto(
|
|
|
|
|
|
|
+ child: Column(
|
|
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ Align(
|
|
|
|
|
+ alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ FFLocalizations.of(context).getText(
|
|
|
|
|
+ 'nfxdqk4i' /* Media */,
|
|
|
|
|
+ ),
|
|
|
|
|
+ style: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .headlineSmall
|
|
|
|
|
+ .override(
|
|
|
|
|
+ font: GoogleFonts.roboto(
|
|
|
|
|
+ fontWeight: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .headlineSmall
|
|
|
|
|
+ .fontWeight,
|
|
|
|
|
+ fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .headlineSmall
|
|
|
|
|
+ .fontStyle,
|
|
|
|
|
+ ),
|
|
|
|
|
+ fontSize: 16.0,
|
|
|
|
|
+ letterSpacing: 0.0,
|
|
|
fontWeight: FlutterFlowTheme.of(context)
|
|
fontWeight: FlutterFlowTheme.of(context)
|
|
|
.headlineSmall
|
|
.headlineSmall
|
|
|
.fontWeight,
|
|
.fontWeight,
|
|
@@ -3230,168 +3253,11 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
.headlineSmall
|
|
.headlineSmall
|
|
|
.fontStyle,
|
|
.fontStyle,
|
|
|
),
|
|
),
|
|
|
- fontSize: 16.0,
|
|
|
|
|
- letterSpacing: 0.0,
|
|
|
|
|
- fontWeight: FlutterFlowTheme.of(context)
|
|
|
|
|
- .headlineSmall
|
|
|
|
|
- .fontWeight,
|
|
|
|
|
- fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
- .headlineSmall
|
|
|
|
|
- .fontStyle,
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- Row(
|
|
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
|
|
- children: [
|
|
|
|
|
- Align(
|
|
|
|
|
- alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
|
|
- child: FFButtonWidget(
|
|
|
|
|
- onPressed: () async {
|
|
|
|
|
- final selectedMedia =
|
|
|
|
|
- await selectMediaWithSourceBottomSheet(
|
|
|
|
|
- context: context,
|
|
|
|
|
- allowPhoto: true,
|
|
|
|
|
- );
|
|
|
|
|
- if (selectedMedia != null &&
|
|
|
|
|
- selectedMedia.every((m) =>
|
|
|
|
|
- validateFileFormat(
|
|
|
|
|
- m.storagePath, context))) {
|
|
|
|
|
- safeSetState(() => _model
|
|
|
|
|
- .isDataUploading_uploadDatalogoUpload =
|
|
|
|
|
- true);
|
|
|
|
|
- var selectedUploadedFiles =
|
|
|
|
|
- <FFUploadedFile>[];
|
|
|
|
|
-
|
|
|
|
|
- try {
|
|
|
|
|
- selectedUploadedFiles = selectedMedia
|
|
|
|
|
- .map((m) => FFUploadedFile(
|
|
|
|
|
- name: m.storagePath
|
|
|
|
|
- .split('/')
|
|
|
|
|
- .last,
|
|
|
|
|
- bytes: m.bytes,
|
|
|
|
|
- height: m.dimensions?.height,
|
|
|
|
|
- width: m.dimensions?.width,
|
|
|
|
|
- blurHash: m.blurHash,
|
|
|
|
|
- originalFilename:
|
|
|
|
|
- m.originalFilename,
|
|
|
|
|
- ))
|
|
|
|
|
- .toList();
|
|
|
|
|
- } finally {
|
|
|
|
|
- _model.isDataUploading_uploadDatalogoUpload =
|
|
|
|
|
- false;
|
|
|
|
|
- }
|
|
|
|
|
- if (selectedUploadedFiles.length ==
|
|
|
|
|
- selectedMedia.length) {
|
|
|
|
|
- safeSetState(() {
|
|
|
|
|
- _model.uploadedLocalFile_uploadDatalogoUpload =
|
|
|
|
|
- selectedUploadedFiles.first;
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- safeSetState(() {});
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- _model.logouploadResult =
|
|
|
|
|
- await actions.bestandUpload(
|
|
|
|
|
- _model
|
|
|
|
|
- .uploadedLocalFile_uploadDatalogoUpload,
|
|
|
|
|
- '/en/flutterdrup/bestand_upload/upload.json',
|
|
|
|
|
- FFAppState().userSessionname,
|
|
|
|
|
- FFAppState().userSessionid,
|
|
|
|
|
- FFAppState().userToken,
|
|
|
|
|
- );
|
|
|
|
|
- if (getJsonField(
|
|
|
|
|
- _model.logouploadResult,
|
|
|
|
|
- r'''$.success''',
|
|
|
|
|
- )) {
|
|
|
|
|
- _model.createLogoFid = getJsonField(
|
|
|
|
|
- _model.logouploadResult,
|
|
|
|
|
- r'''$.fid''',
|
|
|
|
|
- ).toString();
|
|
|
|
|
- _model.createLogoUrl = getJsonField(
|
|
|
|
|
- _model.logouploadResult,
|
|
|
|
|
- r'''$.url''',
|
|
|
|
|
- ).toString();
|
|
|
|
|
- safeSetState(() {});
|
|
|
|
|
- } else {
|
|
|
|
|
- ScaffoldMessenger.of(context).showSnackBar(
|
|
|
|
|
- SnackBar(
|
|
|
|
|
- content: Text(
|
|
|
|
|
- getJsonField(
|
|
|
|
|
- _model.logouploadResult,
|
|
|
|
|
- r'''$.error''',
|
|
|
|
|
- ).toString(),
|
|
|
|
|
- style: TextStyle(
|
|
|
|
|
- color: FlutterFlowTheme.of(context)
|
|
|
|
|
- .primaryText,
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- duration: Duration(milliseconds: 4000),
|
|
|
|
|
- backgroundColor:
|
|
|
|
|
- FlutterFlowTheme.of(context)
|
|
|
|
|
- .secondary,
|
|
|
|
|
- ),
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- safeSetState(() {});
|
|
|
|
|
- },
|
|
|
|
|
- text: FFLocalizations.of(context).getText(
|
|
|
|
|
- 'r6ckp0e0' /* Logo kiezen */,
|
|
|
|
|
- ),
|
|
|
|
|
- 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(0.0),
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
),
|
|
),
|
|
|
- if (_model.createLogoUrl != null &&
|
|
|
|
|
- _model.createLogoUrl != '')
|
|
|
|
|
- ClipRRect(
|
|
|
|
|
- borderRadius: BorderRadius.circular(0.0),
|
|
|
|
|
- child: Image.network(
|
|
|
|
|
- _model.createLogoUrl!,
|
|
|
|
|
- width: 80.0,
|
|
|
|
|
- height: 80.0,
|
|
|
|
|
- fit: BoxFit.cover,
|
|
|
|
|
- ),
|
|
|
|
|
- ),
|
|
|
|
|
- ],
|
|
|
|
|
- ),
|
|
|
|
|
- Row(
|
|
|
|
|
- mainAxisSize: MainAxisSize.max,
|
|
|
|
|
- children: [
|
|
|
|
|
- if (_model.createFotosFids.length < 5)
|
|
|
|
|
|
|
+ ),
|
|
|
|
|
+ Row(
|
|
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
|
|
+ children: [
|
|
|
Align(
|
|
Align(
|
|
|
alignment: AlignmentDirectional(-1.0, 0.0),
|
|
alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
child: FFButtonWidget(
|
|
child: FFButtonWidget(
|
|
@@ -3406,7 +3272,7 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
validateFileFormat(
|
|
validateFileFormat(
|
|
|
m.storagePath, context))) {
|
|
m.storagePath, context))) {
|
|
|
safeSetState(() => _model
|
|
safeSetState(() => _model
|
|
|
- .isDataUploading_uploadDataFotoos2 =
|
|
|
|
|
|
|
+ .isDataUploading_uploadDatalogoUpload =
|
|
|
true);
|
|
true);
|
|
|
var selectedUploadedFiles =
|
|
var selectedUploadedFiles =
|
|
|
<FFUploadedFile>[];
|
|
<FFUploadedFile>[];
|
|
@@ -3426,13 +3292,13 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
))
|
|
))
|
|
|
.toList();
|
|
.toList();
|
|
|
} finally {
|
|
} finally {
|
|
|
- _model.isDataUploading_uploadDataFotoos2 =
|
|
|
|
|
|
|
+ _model.isDataUploading_uploadDatalogoUpload =
|
|
|
false;
|
|
false;
|
|
|
}
|
|
}
|
|
|
if (selectedUploadedFiles.length ==
|
|
if (selectedUploadedFiles.length ==
|
|
|
selectedMedia.length) {
|
|
selectedMedia.length) {
|
|
|
safeSetState(() {
|
|
safeSetState(() {
|
|
|
- _model.uploadedLocalFile_uploadDataFotoos2 =
|
|
|
|
|
|
|
+ _model.uploadedLocalFile_uploadDatalogoUpload =
|
|
|
selectedUploadedFiles.first;
|
|
selectedUploadedFiles.first;
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
@@ -3441,27 +3307,27 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- _model.fotouploadResult =
|
|
|
|
|
|
|
+ _model.logouploadResult =
|
|
|
await actions.bestandUpload(
|
|
await actions.bestandUpload(
|
|
|
_model
|
|
_model
|
|
|
- .uploadedLocalFile_uploadDataFotoos2,
|
|
|
|
|
|
|
+ .uploadedLocalFile_uploadDatalogoUpload,
|
|
|
'/en/flutterdrup/bestand_upload/upload.json',
|
|
'/en/flutterdrup/bestand_upload/upload.json',
|
|
|
FFAppState().userSessionname,
|
|
FFAppState().userSessionname,
|
|
|
FFAppState().userSessionid,
|
|
FFAppState().userSessionid,
|
|
|
FFAppState().userToken,
|
|
FFAppState().userToken,
|
|
|
);
|
|
);
|
|
|
if (getJsonField(
|
|
if (getJsonField(
|
|
|
- _model.fotouploadResult,
|
|
|
|
|
|
|
+ _model.logouploadResult,
|
|
|
r'''$.success''',
|
|
r'''$.success''',
|
|
|
)) {
|
|
)) {
|
|
|
- _model.addToCreateFotosFids(getJsonField(
|
|
|
|
|
- _model.fotouploadResult,
|
|
|
|
|
|
|
+ _model.createLogoFid = getJsonField(
|
|
|
|
|
+ _model.logouploadResult,
|
|
|
r'''$.fid''',
|
|
r'''$.fid''',
|
|
|
- ).toString());
|
|
|
|
|
- _model.addToCreateFotosUrls(getJsonField(
|
|
|
|
|
- _model.fotouploadResult,
|
|
|
|
|
|
|
+ ).toString();
|
|
|
|
|
+ _model.createLogoUrl = getJsonField(
|
|
|
|
|
+ _model.logouploadResult,
|
|
|
r'''$.url''',
|
|
r'''$.url''',
|
|
|
- ).toString());
|
|
|
|
|
|
|
+ ).toString();
|
|
|
safeSetState(() {});
|
|
safeSetState(() {});
|
|
|
} else {
|
|
} else {
|
|
|
ScaffoldMessenger.of(context)
|
|
ScaffoldMessenger.of(context)
|
|
@@ -3469,8 +3335,8 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
SnackBar(
|
|
SnackBar(
|
|
|
content: Text(
|
|
content: Text(
|
|
|
getJsonField(
|
|
getJsonField(
|
|
|
- _model.fotouploadResult,
|
|
|
|
|
- r'''$.success''',
|
|
|
|
|
|
|
+ _model.logouploadResult,
|
|
|
|
|
+ r'''$.error''',
|
|
|
).toString(),
|
|
).toString(),
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
color:
|
|
color:
|
|
@@ -3490,7 +3356,7 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
safeSetState(() {});
|
|
safeSetState(() {});
|
|
|
},
|
|
},
|
|
|
text: FFLocalizations.of(context).getText(
|
|
text: FFLocalizations.of(context).getText(
|
|
|
- '41moeajb' /* Foto's kiezen */,
|
|
|
|
|
|
|
+ 'r6ckp0e0' /* Logo kiezen */,
|
|
|
),
|
|
),
|
|
|
options: FFButtonOptions(
|
|
options: FFButtonOptions(
|
|
|
height: 40.0,
|
|
height: 40.0,
|
|
@@ -3529,55 +3395,214 @@ class _StadsactiviteitAanmakenWidgetState
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
- if (_model.createFotosUrls.length > 0)
|
|
|
|
|
- Builder(
|
|
|
|
|
- builder: (context) {
|
|
|
|
|
- final fotoItem =
|
|
|
|
|
- _model.createFotosUrls.toList();
|
|
|
|
|
- _model.debugGeneratorVariables[
|
|
|
|
|
- 'fotoItem${fotoItem.length > 100 ? ' (first 100)' : ''}'] =
|
|
|
|
|
- debugSerializeParam(
|
|
|
|
|
- fotoItem.take(100),
|
|
|
|
|
- ParamType.String,
|
|
|
|
|
- isList: true,
|
|
|
|
|
- link:
|
|
|
|
|
- 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
|
|
|
|
|
- name: 'String',
|
|
|
|
|
- nullable: false,
|
|
|
|
|
- );
|
|
|
|
|
- debugLogWidgetClass(_model);
|
|
|
|
|
|
|
+ if (_model.createLogoUrl != null &&
|
|
|
|
|
+ _model.createLogoUrl != '')
|
|
|
|
|
+ ClipRRect(
|
|
|
|
|
+ borderRadius: BorderRadius.circular(0.0),
|
|
|
|
|
+ child: Image.network(
|
|
|
|
|
+ _model.createLogoUrl!,
|
|
|
|
|
+ width: 80.0,
|
|
|
|
|
+ height: 80.0,
|
|
|
|
|
+ fit: BoxFit.cover,
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
|
|
+ Row(
|
|
|
|
|
+ mainAxisSize: MainAxisSize.max,
|
|
|
|
|
+ children: [
|
|
|
|
|
+ if (_model.createFotosFids.length < 5)
|
|
|
|
|
+ Align(
|
|
|
|
|
+ alignment: AlignmentDirectional(-1.0, 0.0),
|
|
|
|
|
+ child: FFButtonWidget(
|
|
|
|
|
+ onPressed: () async {
|
|
|
|
|
+ final selectedMedia =
|
|
|
|
|
+ await selectMediaWithSourceBottomSheet(
|
|
|
|
|
+ context: context,
|
|
|
|
|
+ allowPhoto: true,
|
|
|
|
|
+ );
|
|
|
|
|
+ if (selectedMedia != null &&
|
|
|
|
|
+ selectedMedia.every((m) =>
|
|
|
|
|
+ validateFileFormat(
|
|
|
|
|
+ m.storagePath, context))) {
|
|
|
|
|
+ safeSetState(() => _model
|
|
|
|
|
+ .isDataUploading_uploadDataFotoos2 =
|
|
|
|
|
+ true);
|
|
|
|
|
+ var selectedUploadedFiles =
|
|
|
|
|
+ <FFUploadedFile>[];
|
|
|
|
|
|
|
|
- return Wrap(
|
|
|
|
|
- spacing: 8.0,
|
|
|
|
|
- runSpacing: 8.0,
|
|
|
|
|
- alignment: WrapAlignment.start,
|
|
|
|
|
- crossAxisAlignment:
|
|
|
|
|
- WrapCrossAlignment.start,
|
|
|
|
|
- direction: Axis.horizontal,
|
|
|
|
|
- runAlignment: WrapAlignment.start,
|
|
|
|
|
- verticalDirection: VerticalDirection.down,
|
|
|
|
|
- clipBehavior: Clip.none,
|
|
|
|
|
- children: List.generate(fotoItem.length,
|
|
|
|
|
- (fotoItemIndex) {
|
|
|
|
|
- final fotoItemItem =
|
|
|
|
|
- fotoItem[fotoItemIndex];
|
|
|
|
|
- return ClipRRect(
|
|
|
|
|
- borderRadius:
|
|
|
|
|
- BorderRadius.circular(0.0),
|
|
|
|
|
- child: Image.network(
|
|
|
|
|
- fotoItemItem,
|
|
|
|
|
- width: 80.0,
|
|
|
|
|
- height: 80.0,
|
|
|
|
|
- fit: BoxFit.cover,
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ try {
|
|
|
|
|
+ selectedUploadedFiles = selectedMedia
|
|
|
|
|
+ .map((m) => FFUploadedFile(
|
|
|
|
|
+ name: m.storagePath
|
|
|
|
|
+ .split('/')
|
|
|
|
|
+ .last,
|
|
|
|
|
+ bytes: m.bytes,
|
|
|
|
|
+ height:
|
|
|
|
|
+ m.dimensions?.height,
|
|
|
|
|
+ width: m.dimensions?.width,
|
|
|
|
|
+ blurHash: m.blurHash,
|
|
|
|
|
+ originalFilename:
|
|
|
|
|
+ m.originalFilename,
|
|
|
|
|
+ ))
|
|
|
|
|
+ .toList();
|
|
|
|
|
+ } finally {
|
|
|
|
|
+ _model.isDataUploading_uploadDataFotoos2 =
|
|
|
|
|
+ false;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (selectedUploadedFiles.length ==
|
|
|
|
|
+ selectedMedia.length) {
|
|
|
|
|
+ safeSetState(() {
|
|
|
|
|
+ _model.uploadedLocalFile_uploadDataFotoos2 =
|
|
|
|
|
+ selectedUploadedFiles.first;
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ safeSetState(() {});
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ _model.fotouploadResult =
|
|
|
|
|
+ await actions.bestandUpload(
|
|
|
|
|
+ _model
|
|
|
|
|
+ .uploadedLocalFile_uploadDataFotoos2,
|
|
|
|
|
+ '/en/flutterdrup/bestand_upload/upload.json',
|
|
|
|
|
+ FFAppState().userSessionname,
|
|
|
|
|
+ FFAppState().userSessionid,
|
|
|
|
|
+ FFAppState().userToken,
|
|
|
);
|
|
);
|
|
|
- }),
|
|
|
|
|
- );
|
|
|
|
|
- },
|
|
|
|
|
- ),
|
|
|
|
|
- ],
|
|
|
|
|
- ),
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ if (getJsonField(
|
|
|
|
|
+ _model.fotouploadResult,
|
|
|
|
|
+ r'''$.success''',
|
|
|
|
|
+ )) {
|
|
|
|
|
+ _model
|
|
|
|
|
+ .addToCreateFotosFids(getJsonField(
|
|
|
|
|
+ _model.fotouploadResult,
|
|
|
|
|
+ r'''$.fid''',
|
|
|
|
|
+ ).toString());
|
|
|
|
|
+ _model
|
|
|
|
|
+ .addToCreateFotosUrls(getJsonField(
|
|
|
|
|
+ _model.fotouploadResult,
|
|
|
|
|
+ r'''$.url''',
|
|
|
|
|
+ ).toString());
|
|
|
|
|
+ safeSetState(() {});
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ScaffoldMessenger.of(context)
|
|
|
|
|
+ .showSnackBar(
|
|
|
|
|
+ SnackBar(
|
|
|
|
|
+ content: Text(
|
|
|
|
|
+ getJsonField(
|
|
|
|
|
+ _model.fotouploadResult,
|
|
|
|
|
+ r'''$.success''',
|
|
|
|
|
+ ).toString(),
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ color:
|
|
|
|
|
+ FlutterFlowTheme.of(context)
|
|
|
|
|
+ .primaryText,
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ duration:
|
|
|
|
|
+ Duration(milliseconds: 4000),
|
|
|
|
|
+ backgroundColor:
|
|
|
|
|
+ FlutterFlowTheme.of(context)
|
|
|
|
|
+ .secondary,
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ safeSetState(() {});
|
|
|
|
|
+ },
|
|
|
|
|
+ text: FFLocalizations.of(context).getText(
|
|
|
|
|
+ '41moeajb' /* Foto's kiezen */,
|
|
|
|
|
+ ),
|
|
|
|
|
+ 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(0.0),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ if (_model.createFotosUrls.length > 0)
|
|
|
|
|
+ Builder(
|
|
|
|
|
+ builder: (context) {
|
|
|
|
|
+ final fotoItem =
|
|
|
|
|
+ _model.createFotosUrls.toList();
|
|
|
|
|
+ _model.debugGeneratorVariables[
|
|
|
|
|
+ 'fotoItem${fotoItem.length > 100 ? ' (first 100)' : ''}'] =
|
|
|
|
|
+ debugSerializeParam(
|
|
|
|
|
+ fotoItem.take(100),
|
|
|
|
|
+ ParamType.String,
|
|
|
|
|
+ isList: true,
|
|
|
|
|
+ link:
|
|
|
|
|
+ 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
|
|
|
|
|
+ name: 'String',
|
|
|
|
|
+ nullable: false,
|
|
|
|
|
+ );
|
|
|
|
|
+ debugLogWidgetClass(_model);
|
|
|
|
|
+
|
|
|
|
|
+ return Wrap(
|
|
|
|
|
+ spacing: 8.0,
|
|
|
|
|
+ runSpacing: 8.0,
|
|
|
|
|
+ alignment: WrapAlignment.start,
|
|
|
|
|
+ crossAxisAlignment:
|
|
|
|
|
+ WrapCrossAlignment.start,
|
|
|
|
|
+ direction: Axis.horizontal,
|
|
|
|
|
+ runAlignment: WrapAlignment.start,
|
|
|
|
|
+ verticalDirection: VerticalDirection.down,
|
|
|
|
|
+ clipBehavior: Clip.none,
|
|
|
|
|
+ children: List.generate(fotoItem.length,
|
|
|
|
|
+ (fotoItemIndex) {
|
|
|
|
|
+ final fotoItemItem =
|
|
|
|
|
+ fotoItem[fotoItemIndex];
|
|
|
|
|
+ return ClipRRect(
|
|
|
|
|
+ borderRadius:
|
|
|
|
|
+ BorderRadius.circular(0.0),
|
|
|
|
|
+ child: Image.network(
|
|
|
|
|
+ fotoItemItem,
|
|
|
|
|
+ width: 80.0,
|
|
|
|
|
+ height: 80.0,
|
|
|
|
|
+ fit: BoxFit.cover,
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ }),
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
|
|
+ ),
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
|
|
+ ],
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
if (_model.createPlaatsID != null &&
|
|
if (_model.createPlaatsID != null &&
|