|
@@ -1,5 +1,6 @@
|
|
|
import '/backend/api_requests/api_calls.dart';
|
|
import '/backend/api_requests/api_calls.dart';
|
|
|
import '/components/header_buttons_component_widget.dart';
|
|
import '/components/header_buttons_component_widget.dart';
|
|
|
|
|
+import '/flutter_flow/flutter_flow_icon_button.dart';
|
|
|
import '/flutter_flow/flutter_flow_theme.dart';
|
|
import '/flutter_flow/flutter_flow_theme.dart';
|
|
|
import '/flutter_flow/flutter_flow_util.dart';
|
|
import '/flutter_flow/flutter_flow_util.dart';
|
|
|
import '/flutter_flow/flutter_flow_widgets.dart';
|
|
import '/flutter_flow/flutter_flow_widgets.dart';
|
|
@@ -7,6 +8,7 @@ import '/horecagelegenhedenoverzicht/horecagelegenheid_event_tabel_component_cop
|
|
|
import '/shared/drawer_component/drawer_component_widget.dart';
|
|
import '/shared/drawer_component/drawer_component_widget.dart';
|
|
|
import 'dart:ui';
|
|
import 'dart:ui';
|
|
|
import '/custom_code/widgets/index.dart' as custom_widgets;
|
|
import '/custom_code/widgets/index.dart' as custom_widgets;
|
|
|
|
|
+import 'package:aligned_tooltip/aligned_tooltip.dart';
|
|
|
import 'package:carousel_slider/carousel_slider.dart';
|
|
import 'package:carousel_slider/carousel_slider.dart';
|
|
|
import 'package:cached_network_image/cached_network_image.dart';
|
|
import 'package:cached_network_image/cached_network_image.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
@@ -214,70 +216,135 @@ class _HorecagelegenheidCurrentWidgetState
|
|
|
child: Column(
|
|
child: Column(
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
children: [
|
|
children: [
|
|
|
- Container(
|
|
|
|
|
- width: 366.1,
|
|
|
|
|
- height: 281.5,
|
|
|
|
|
- decoration: BoxDecoration(
|
|
|
|
|
- color: FlutterFlowTheme.of(context).secondaryBackground,
|
|
|
|
|
- ),
|
|
|
|
|
- child: Builder(
|
|
|
|
|
- builder: (context) {
|
|
|
|
|
- final fotoos =
|
|
|
|
|
- EstablishmentInfoCall.establishmentFotoos(
|
|
|
|
|
- horecagelegenheidCurrentEstablishmentInfoResponse
|
|
|
|
|
- .jsonBody,
|
|
|
|
|
- )?.toList() ??
|
|
|
|
|
- [];
|
|
|
|
|
- _model.debugGeneratorVariables[
|
|
|
|
|
- 'fotoos${fotoos.length > 100 ? ' (first 100)' : ''}'] =
|
|
|
|
|
- debugSerializeParam(
|
|
|
|
|
- fotoos.take(100),
|
|
|
|
|
- ParamType.String,
|
|
|
|
|
- isList: true,
|
|
|
|
|
- link:
|
|
|
|
|
- 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
|
|
|
|
|
- name: 'String',
|
|
|
|
|
- nullable: false,
|
|
|
|
|
- );
|
|
|
|
|
- debugLogWidgetClass(_model);
|
|
|
|
|
|
|
+ Stack(
|
|
|
|
|
+ children: [
|
|
|
|
|
+ Container(
|
|
|
|
|
+ width: 366.1,
|
|
|
|
|
+ height: 281.5,
|
|
|
|
|
+ decoration: BoxDecoration(
|
|
|
|
|
+ color:
|
|
|
|
|
+ FlutterFlowTheme.of(context).secondaryBackground,
|
|
|
|
|
+ ),
|
|
|
|
|
+ child: Builder(
|
|
|
|
|
+ builder: (context) {
|
|
|
|
|
+ final fotoos =
|
|
|
|
|
+ EstablishmentInfoCall.establishmentFotoos(
|
|
|
|
|
+ horecagelegenheidCurrentEstablishmentInfoResponse
|
|
|
|
|
+ .jsonBody,
|
|
|
|
|
+ )?.toList() ??
|
|
|
|
|
+ [];
|
|
|
|
|
+ _model.debugGeneratorVariables[
|
|
|
|
|
+ 'fotoos${fotoos.length > 100 ? ' (first 100)' : ''}'] =
|
|
|
|
|
+ debugSerializeParam(
|
|
|
|
|
+ fotoos.take(100),
|
|
|
|
|
+ ParamType.String,
|
|
|
|
|
+ isList: true,
|
|
|
|
|
+ link:
|
|
|
|
|
+ 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
|
|
|
|
|
+ name: 'String',
|
|
|
|
|
+ nullable: false,
|
|
|
|
|
+ );
|
|
|
|
|
+ debugLogWidgetClass(_model);
|
|
|
|
|
|
|
|
- return Container(
|
|
|
|
|
- width: double.infinity,
|
|
|
|
|
- height: 200.0,
|
|
|
|
|
- child: CarouselSlider.builder(
|
|
|
|
|
- itemCount: fotoos.length,
|
|
|
|
|
- itemBuilder: (context, fotoosIndex, _) {
|
|
|
|
|
- final fotoosItem = fotoos[fotoosIndex];
|
|
|
|
|
- return ClipRRect(
|
|
|
|
|
- borderRadius: BorderRadius.circular(8.0),
|
|
|
|
|
- child: CachedNetworkImage(
|
|
|
|
|
- fadeInDuration: Duration(milliseconds: 500),
|
|
|
|
|
- fadeOutDuration: Duration(milliseconds: 500),
|
|
|
|
|
- imageUrl: fotoosItem,
|
|
|
|
|
- width: 200.0,
|
|
|
|
|
- height: 200.0,
|
|
|
|
|
- fit: BoxFit.cover,
|
|
|
|
|
|
|
+ return Container(
|
|
|
|
|
+ width: double.infinity,
|
|
|
|
|
+ height: 200.0,
|
|
|
|
|
+ child: CarouselSlider.builder(
|
|
|
|
|
+ itemCount: fotoos.length,
|
|
|
|
|
+ itemBuilder: (context, fotoosIndex, _) {
|
|
|
|
|
+ final fotoosItem = fotoos[fotoosIndex];
|
|
|
|
|
+ return ClipRRect(
|
|
|
|
|
+ borderRadius: BorderRadius.circular(8.0),
|
|
|
|
|
+ child: CachedNetworkImage(
|
|
|
|
|
+ fadeInDuration:
|
|
|
|
|
+ Duration(milliseconds: 500),
|
|
|
|
|
+ fadeOutDuration:
|
|
|
|
|
+ Duration(milliseconds: 500),
|
|
|
|
|
+ imageUrl: fotoosItem,
|
|
|
|
|
+ width: 200.0,
|
|
|
|
|
+ height: 200.0,
|
|
|
|
|
+ fit: BoxFit.cover,
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
|
|
+ carouselController:
|
|
|
|
|
+ _model.carouselController ??=
|
|
|
|
|
+ CarouselSliderController(),
|
|
|
|
|
+ options: CarouselOptions(
|
|
|
|
|
+ initialPage:
|
|
|
|
|
+ max(0, min(1, fotoos.length - 1)),
|
|
|
|
|
+ viewportFraction: 0.5,
|
|
|
|
|
+ disableCenter: true,
|
|
|
|
|
+ enlargeCenterPage: true,
|
|
|
|
|
+ enlargeFactor: 0.25,
|
|
|
|
|
+ enableInfiniteScroll: true,
|
|
|
|
|
+ scrollDirection: Axis.horizontal,
|
|
|
|
|
+ autoPlay: false,
|
|
|
|
|
+ onPageChanged: (index, _) =>
|
|
|
|
|
+ _model.carouselCurrentIndex = index,
|
|
|
),
|
|
),
|
|
|
- );
|
|
|
|
|
- },
|
|
|
|
|
- carouselController: _model.carouselController ??=
|
|
|
|
|
- CarouselSliderController(),
|
|
|
|
|
- options: CarouselOptions(
|
|
|
|
|
- initialPage: max(0, min(1, fotoos.length - 1)),
|
|
|
|
|
- viewportFraction: 0.5,
|
|
|
|
|
- disableCenter: true,
|
|
|
|
|
- enlargeCenterPage: true,
|
|
|
|
|
- enlargeFactor: 0.25,
|
|
|
|
|
- enableInfiniteScroll: true,
|
|
|
|
|
- scrollDirection: Axis.horizontal,
|
|
|
|
|
- autoPlay: false,
|
|
|
|
|
- onPageChanged: (index, _) =>
|
|
|
|
|
- _model.carouselCurrentIndex = index,
|
|
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ Align(
|
|
|
|
|
+ alignment: AlignmentDirectional(1.0, 0.0),
|
|
|
|
|
+ child: AlignedTooltip(
|
|
|
|
|
+ content: Padding(
|
|
|
|
|
+ padding: EdgeInsets.all(4.0),
|
|
|
|
|
+ child: Text(
|
|
|
|
|
+ FFLocalizations.of(context).getText(
|
|
|
|
|
+ 'pj545url' /* Favoriet */,
|
|
|
|
|
+ ),
|
|
|
|
|
+ style: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyLarge
|
|
|
|
|
+ .override(
|
|
|
|
|
+ font: GoogleFonts.inter(
|
|
|
|
|
+ fontWeight: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyLarge
|
|
|
|
|
+ .fontWeight,
|
|
|
|
|
+ fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyLarge
|
|
|
|
|
+ .fontStyle,
|
|
|
|
|
+ ),
|
|
|
|
|
+ letterSpacing: 0.0,
|
|
|
|
|
+ fontWeight: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyLarge
|
|
|
|
|
+ .fontWeight,
|
|
|
|
|
+ fontStyle: FlutterFlowTheme.of(context)
|
|
|
|
|
+ .bodyLarge
|
|
|
|
|
+ .fontStyle,
|
|
|
|
|
+ ),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
- );
|
|
|
|
|
- },
|
|
|
|
|
- ),
|
|
|
|
|
|
|
+ offset: 4.0,
|
|
|
|
|
+ preferredDirection: AxisDirection.down,
|
|
|
|
|
+ borderRadius: BorderRadius.circular(8.0),
|
|
|
|
|
+ backgroundColor:
|
|
|
|
|
+ FlutterFlowTheme.of(context).secondaryBackground,
|
|
|
|
|
+ elevation: 4.0,
|
|
|
|
|
+ tailBaseWidth: 24.0,
|
|
|
|
|
+ tailLength: 12.0,
|
|
|
|
|
+ waitDuration: Duration(milliseconds: 100),
|
|
|
|
|
+ showDuration: Duration(milliseconds: 1500),
|
|
|
|
|
+ triggerMode: TooltipTriggerMode.tap,
|
|
|
|
|
+ child: FlutterFlowIconButton(
|
|
|
|
|
+ borderRadius: 8.0,
|
|
|
|
|
+ buttonSize: 32.0,
|
|
|
|
|
+ fillColor: Color(0x0AFFFFFF),
|
|
|
|
|
+ icon: Icon(
|
|
|
|
|
+ Icons.favorite_border,
|
|
|
|
|
+ color: Color(0xFFB50808),
|
|
|
|
|
+ size: 24.0,
|
|
|
|
|
+ ),
|
|
|
|
|
+ onPressed: () {
|
|
|
|
|
+ print('IconButtonFavoriet pressed ...');
|
|
|
|
|
+ },
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ],
|
|
|
),
|
|
),
|
|
|
Text(
|
|
Text(
|
|
|
valueOrDefault<String>(
|
|
valueOrDefault<String>(
|