event_current_widget.dart 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  1. import '/backend/api_requests/api_calls.dart';
  2. import '/evenement/evenement_horecagelegenheid/evenement_horecagelegenheid_widget.dart';
  3. import '/evenement/evenement_info/evenement_info_widget.dart';
  4. import '/evenement/evenement_v2_h_t_m_l_component/evenement_v2_h_t_m_l_component_widget.dart';
  5. import '/flutter_flow/flutter_flow_icon_button.dart';
  6. import '/flutter_flow/flutter_flow_theme.dart';
  7. import '/flutter_flow/flutter_flow_util.dart';
  8. import '/flutter_flow/flutter_flow_widgets.dart';
  9. import '/shared/drawer_component/drawer_component_widget.dart';
  10. import 'dart:ui';
  11. import 'package:aligned_tooltip/aligned_tooltip.dart';
  12. import 'package:carousel_slider/carousel_slider.dart';
  13. import 'package:cached_network_image/cached_network_image.dart';
  14. import 'package:flutter/material.dart';
  15. import 'package:flutter_spinkit/flutter_spinkit.dart';
  16. import 'package:google_fonts/google_fonts.dart';
  17. import 'package:provider/provider.dart';
  18. import 'package:share_plus/share_plus.dart';
  19. import 'event_current_model.dart';
  20. export 'event_current_model.dart';
  21. class EventCurrentWidget extends StatefulWidget {
  22. const EventCurrentWidget({
  23. super.key,
  24. this.nid,
  25. this.horecaid,
  26. });
  27. final String? nid;
  28. final String? horecaid;
  29. static String routeName = 'EventCurrent';
  30. static String routePath = '/eventCurrent';
  31. @override
  32. State<EventCurrentWidget> createState() => _EventCurrentWidgetState();
  33. }
  34. class _EventCurrentWidgetState extends State<EventCurrentWidget>
  35. with RouteAware {
  36. late EventCurrentModel _model;
  37. final scaffoldKey = GlobalKey<ScaffoldState>();
  38. @override
  39. void initState() {
  40. super.initState();
  41. _model = createModel(context, () => EventCurrentModel());
  42. }
  43. @override
  44. void dispose() {
  45. routeObserver.unsubscribe(this);
  46. _model.dispose();
  47. super.dispose();
  48. }
  49. @override
  50. void didUpdateWidget(EventCurrentWidget oldWidget) {
  51. super.didUpdateWidget(oldWidget);
  52. _model.widget = widget;
  53. }
  54. @override
  55. void didChangeDependencies() {
  56. super.didChangeDependencies();
  57. final route = DebugModalRoute.of(context);
  58. if (route != null) {
  59. routeObserver.subscribe(this, route);
  60. }
  61. debugLogGlobalProperty(context);
  62. }
  63. @override
  64. void didPopNext() {
  65. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  66. setState(() => _model.isRouteVisible = true);
  67. debugLogWidgetClass(_model);
  68. }
  69. }
  70. @override
  71. void didPush() {
  72. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  73. setState(() => _model.isRouteVisible = true);
  74. debugLogWidgetClass(_model);
  75. }
  76. }
  77. @override
  78. void didPop() {
  79. _model.isRouteVisible = false;
  80. }
  81. @override
  82. void didPushNext() {
  83. _model.isRouteVisible = false;
  84. }
  85. @override
  86. Widget build(BuildContext context) {
  87. DebugFlutterFlowModelContext.maybeOf(context)
  88. ?.parentModelCallback
  89. ?.call(_model);
  90. return FutureBuilder<ApiCallResponse>(
  91. future: EvenementCall.call(
  92. nid: widget!.nid,
  93. ),
  94. builder: (context, snapshot) {
  95. // Customize what your widget looks like when it's loading.
  96. if (!snapshot.hasData) {
  97. return Scaffold(
  98. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  99. body: Center(
  100. child: SizedBox(
  101. width: 80.0,
  102. height: 80.0,
  103. child: SpinKitFadingCircle(
  104. color: Color(0xFFB1061E),
  105. size: 80.0,
  106. ),
  107. ),
  108. ),
  109. );
  110. }
  111. final eventCurrentEvenementResponse = snapshot.data!;
  112. _model.debugBackendQueries[
  113. 'EvenementCall_statusCode_Scaffold_vv4pr88m'] = debugSerializeParam(
  114. eventCurrentEvenementResponse.statusCode,
  115. ParamType.int,
  116. link:
  117. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=EventCurrent',
  118. name: 'int',
  119. nullable: false,
  120. );
  121. _model.debugBackendQueries[
  122. 'EvenementCall_responseBody_Scaffold_vv4pr88m'] =
  123. debugSerializeParam(
  124. eventCurrentEvenementResponse.bodyText,
  125. ParamType.String,
  126. link:
  127. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=EventCurrent',
  128. name: 'String',
  129. nullable: false,
  130. );
  131. debugLogWidgetClass(_model);
  132. return GestureDetector(
  133. onTap: () {
  134. FocusScope.of(context).unfocus();
  135. FocusManager.instance.primaryFocus?.unfocus();
  136. },
  137. child: Scaffold(
  138. key: scaffoldKey,
  139. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  140. drawer: Drawer(
  141. elevation: 16.0,
  142. child: wrapWithModel(
  143. model: _model.drawerComponentModel,
  144. updateCallback: () => safeSetState(() {}),
  145. child: Builder(builder: (_) {
  146. return DebugFlutterFlowModelContext(
  147. rootModel: _model.rootModel,
  148. child: DrawerComponentWidget(),
  149. );
  150. }),
  151. ),
  152. ),
  153. appBar: PreferredSize(
  154. preferredSize:
  155. Size.fromHeight(MediaQuery.sizeOf(context).height * 0.12),
  156. child: AppBar(
  157. backgroundColor: FlutterFlowTheme.of(context).info,
  158. automaticallyImplyLeading: false,
  159. actions: [],
  160. flexibleSpace: FlexibleSpaceBar(
  161. title: Align(
  162. alignment: AlignmentDirectional(0.0, 0.0),
  163. child: Row(
  164. mainAxisSize: MainAxisSize.max,
  165. children: [
  166. Padding(
  167. padding: EdgeInsetsDirectional.fromSTEB(
  168. 12.0, 0.0, 0.0, 0.0),
  169. child: FlutterFlowIconButton(
  170. borderColor: Color(0x00FF0000),
  171. borderRadius: 30.0,
  172. borderWidth: 1.0,
  173. buttonSize: 50.0,
  174. fillColor: Color(0xFFFF0000),
  175. icon: Icon(
  176. Icons.arrow_back_outlined,
  177. color: Colors.white,
  178. size: 30.0,
  179. ),
  180. onPressed: () async {
  181. context.pop();
  182. },
  183. ),
  184. ),
  185. FlutterFlowIconButton(
  186. borderRadius: 8.0,
  187. buttonSize: 40.0,
  188. fillColor: FlutterFlowTheme.of(context).primary,
  189. icon: Icon(
  190. Icons.dehaze_outlined,
  191. color: FlutterFlowTheme.of(context).info,
  192. size: 24.0,
  193. ),
  194. onPressed: () async {
  195. scaffoldKey.currentState!.openDrawer();
  196. },
  197. ),
  198. ],
  199. ),
  200. ),
  201. background: Align(
  202. alignment: AlignmentDirectional(0.0, 0.0),
  203. child: Padding(
  204. padding:
  205. EdgeInsetsDirectional.fromSTEB(100.0, 0.0, 15.0, 0.0),
  206. child: ClipRRect(
  207. borderRadius: BorderRadius.circular(8.0),
  208. child: Image.asset(
  209. 'assets/images/logo800px.png',
  210. width: MediaQuery.sizeOf(context).width * 0.7,
  211. fit: BoxFit.fitWidth,
  212. ),
  213. ),
  214. ),
  215. ),
  216. centerTitle: true,
  217. expandedTitleScale: 1.0,
  218. ),
  219. toolbarHeight: MediaQuery.sizeOf(context).height * 0.2,
  220. elevation: 2.0,
  221. ),
  222. ),
  223. body: SafeArea(
  224. top: true,
  225. child: Column(
  226. mainAxisSize: MainAxisSize.max,
  227. children: [
  228. Builder(
  229. builder: (context) {
  230. final fotoos = EvenementCall.eventFotoos(
  231. eventCurrentEvenementResponse.jsonBody,
  232. )?.toList() ??
  233. [];
  234. _model.debugGeneratorVariables[
  235. 'fotoos${fotoos.length > 100 ? ' (first 100)' : ''}'] =
  236. debugSerializeParam(
  237. fotoos.take(100),
  238. ParamType.String,
  239. isList: true,
  240. link:
  241. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=EventCurrent',
  242. name: 'String',
  243. nullable: false,
  244. );
  245. debugLogWidgetClass(_model);
  246. return Container(
  247. width: double.infinity,
  248. height: 200.0,
  249. child: CarouselSlider.builder(
  250. itemCount: fotoos.length,
  251. itemBuilder: (context, fotoosIndex, _) {
  252. final fotoosItem = fotoos[fotoosIndex];
  253. return Builder(
  254. builder: (context) {
  255. if (fotoosItem != null && fotoosItem != '') {
  256. return ClipRRect(
  257. borderRadius: BorderRadius.circular(8.0),
  258. child: CachedNetworkImage(
  259. fadeInDuration:
  260. Duration(milliseconds: 500),
  261. fadeOutDuration:
  262. Duration(milliseconds: 500),
  263. imageUrl: fotoosItem,
  264. width: 200.0,
  265. height: 200.0,
  266. fit: BoxFit.cover,
  267. ),
  268. );
  269. } else {
  270. return Icon(
  271. Icons.image_not_supported,
  272. color: FlutterFlowTheme.of(context)
  273. .primaryText,
  274. size: 24.0,
  275. );
  276. }
  277. },
  278. );
  279. },
  280. carouselController: _model.carouselController ??=
  281. CarouselSliderController(),
  282. options: CarouselOptions(
  283. initialPage: max(0, min(1, fotoos.length - 1)),
  284. viewportFraction: 0.5,
  285. disableCenter: true,
  286. enlargeCenterPage: true,
  287. enlargeFactor: 0.25,
  288. enableInfiniteScroll: true,
  289. scrollDirection: Axis.horizontal,
  290. autoPlay: false,
  291. onPageChanged: (index, _) =>
  292. _model.carouselCurrentIndex = index,
  293. ),
  294. ),
  295. );
  296. },
  297. ),
  298. Row(
  299. mainAxisSize: MainAxisSize.max,
  300. mainAxisAlignment: MainAxisAlignment.center,
  301. children: [
  302. Text(
  303. valueOrDefault<String>(
  304. EvenementCall.eventTitle(
  305. eventCurrentEvenementResponse.jsonBody,
  306. ),
  307. 'title',
  308. ),
  309. style:
  310. FlutterFlowTheme.of(context).headlineLarge.override(
  311. font: GoogleFonts.interTight(
  312. fontWeight: FlutterFlowTheme.of(context)
  313. .headlineLarge
  314. .fontWeight,
  315. fontStyle: FlutterFlowTheme.of(context)
  316. .headlineLarge
  317. .fontStyle,
  318. ),
  319. letterSpacing: 0.0,
  320. fontWeight: FlutterFlowTheme.of(context)
  321. .headlineLarge
  322. .fontWeight,
  323. fontStyle: FlutterFlowTheme.of(context)
  324. .headlineLarge
  325. .fontStyle,
  326. shadows: [
  327. Shadow(
  328. color: FlutterFlowTheme.of(context).secondaryText,
  329. offset: Offset(2.0, 2.0),
  330. blurRadius: 2.0,
  331. )
  332. ],
  333. ),
  334. ),
  335. AlignedTooltip(
  336. content: Padding(
  337. padding: EdgeInsets.all(4.0),
  338. child: Text(
  339. FFLocalizations.of(context).getText(
  340. 'z63o5kzf' /* Delen */,
  341. ),
  342. style:
  343. FlutterFlowTheme.of(context).bodyLarge.override(
  344. font: GoogleFonts.inter(
  345. fontWeight: FlutterFlowTheme.of(context)
  346. .bodyLarge
  347. .fontWeight,
  348. fontStyle: FlutterFlowTheme.of(context)
  349. .bodyLarge
  350. .fontStyle,
  351. ),
  352. letterSpacing: 0.0,
  353. fontWeight: FlutterFlowTheme.of(context)
  354. .bodyLarge
  355. .fontWeight,
  356. fontStyle: FlutterFlowTheme.of(context)
  357. .bodyLarge
  358. .fontStyle,
  359. ),
  360. ),
  361. ),
  362. offset: 4.0,
  363. preferredDirection: AxisDirection.down,
  364. borderRadius: BorderRadius.circular(8.0),
  365. backgroundColor:
  366. FlutterFlowTheme.of(context).secondaryBackground,
  367. elevation: 4.0,
  368. tailBaseWidth: 24.0,
  369. tailLength: 12.0,
  370. waitDuration: Duration(milliseconds: 100),
  371. showDuration: Duration(milliseconds: 1500),
  372. triggerMode: TooltipTriggerMode.tap,
  373. child: Builder(
  374. builder: (context) => FlutterFlowIconButton(
  375. borderRadius: 8.0,
  376. buttonSize: 40.0,
  377. fillColor: Color(0xFFF265A0),
  378. icon: Icon(
  379. Icons.share,
  380. color: FlutterFlowTheme.of(context).info,
  381. size: 24.0,
  382. ),
  383. onPressed: () async {
  384. await Share.share(
  385. 'https://uitgk.com/${widget!.nid}',
  386. sharePositionOrigin:
  387. getWidgetBoundingBox(context),
  388. );
  389. },
  390. ),
  391. ),
  392. ),
  393. ],
  394. ),
  395. Text(
  396. valueOrDefault<String>(
  397. widget!.nid,
  398. 'nid',
  399. ),
  400. style: FlutterFlowTheme.of(context).bodyMedium.override(
  401. font: GoogleFonts.inter(
  402. fontWeight: FlutterFlowTheme.of(context)
  403. .bodyMedium
  404. .fontWeight,
  405. fontStyle: FlutterFlowTheme.of(context)
  406. .bodyMedium
  407. .fontStyle,
  408. ),
  409. letterSpacing: 0.0,
  410. fontWeight: FlutterFlowTheme.of(context)
  411. .bodyMedium
  412. .fontWeight,
  413. fontStyle:
  414. FlutterFlowTheme.of(context).bodyMedium.fontStyle,
  415. ),
  416. ),
  417. Text(
  418. valueOrDefault<String>(
  419. EvenementCall.eventDate(
  420. eventCurrentEvenementResponse.jsonBody,
  421. ),
  422. 'date',
  423. ),
  424. style: FlutterFlowTheme.of(context).headlineSmall.override(
  425. font: GoogleFonts.interTight(
  426. fontWeight: FlutterFlowTheme.of(context)
  427. .headlineSmall
  428. .fontWeight,
  429. fontStyle: FlutterFlowTheme.of(context)
  430. .headlineSmall
  431. .fontStyle,
  432. ),
  433. letterSpacing: 0.0,
  434. fontWeight: FlutterFlowTheme.of(context)
  435. .headlineSmall
  436. .fontWeight,
  437. fontStyle: FlutterFlowTheme.of(context)
  438. .headlineSmall
  439. .fontStyle,
  440. ),
  441. ),
  442. Expanded(
  443. child: Row(
  444. mainAxisSize: MainAxisSize.max,
  445. children: [
  446. Material(
  447. color: Colors.transparent,
  448. elevation: 7.0,
  449. child: Container(
  450. decoration: BoxDecoration(
  451. boxShadow: [
  452. BoxShadow(
  453. blurRadius: 4.0,
  454. color: Color(0x33000000),
  455. offset: Offset(
  456. 0.0,
  457. 2.0,
  458. ),
  459. )
  460. ],
  461. gradient: LinearGradient(
  462. colors: [Color(0xFFE51414), Color(0xFFD28039)],
  463. stops: [0.0, 1.0],
  464. begin: AlignmentDirectional(0.0, -1.0),
  465. end: AlignmentDirectional(0, 1.0),
  466. ),
  467. border: Border.all(
  468. width: 2.0,
  469. ),
  470. ),
  471. child: Column(
  472. mainAxisSize: MainAxisSize.max,
  473. children: [
  474. Padding(
  475. padding: EdgeInsetsDirectional.fromSTEB(
  476. 1.0, 3.0, 1.0, 2.0),
  477. child: Builder(
  478. builder: (context) {
  479. final categorie =
  480. EvenementCall.eventCategorie(
  481. eventCurrentEvenementResponse
  482. .jsonBody,
  483. )?.toList() ??
  484. [];
  485. _model.debugGeneratorVariables[
  486. 'categorie${categorie.length > 100 ? ' (first 100)' : ''}'] =
  487. debugSerializeParam(
  488. categorie.take(100),
  489. ParamType.String,
  490. isList: true,
  491. link:
  492. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=EventCurrent',
  493. name: 'String',
  494. nullable: false,
  495. );
  496. debugLogWidgetClass(_model);
  497. return Row(
  498. mainAxisSize: MainAxisSize.max,
  499. mainAxisAlignment:
  500. MainAxisAlignment.end,
  501. children: List.generate(
  502. categorie.length, (categorieIndex) {
  503. final categorieItem =
  504. categorie[categorieIndex];
  505. return Align(
  506. alignment:
  507. AlignmentDirectional(1.0, 0.0),
  508. child: Padding(
  509. padding: EdgeInsetsDirectional
  510. .fromSTEB(4.0, 1.0, 4.0, 1.0),
  511. child: Material(
  512. color: Colors.transparent,
  513. elevation: 3.0,
  514. shape: RoundedRectangleBorder(
  515. borderRadius:
  516. BorderRadius.circular(
  517. 2.0),
  518. ),
  519. child: Container(
  520. decoration: BoxDecoration(
  521. color: Color(0xFF25CC3E),
  522. boxShadow: [
  523. BoxShadow(
  524. blurRadius: 4.0,
  525. color:
  526. Color(0x33000000),
  527. offset: Offset(
  528. 0.0,
  529. 2.0,
  530. ),
  531. )
  532. ],
  533. borderRadius:
  534. BorderRadius.circular(
  535. 2.0),
  536. border: Border.all(
  537. width: 0.5,
  538. ),
  539. ),
  540. child: Padding(
  541. padding:
  542. EdgeInsetsDirectional
  543. .fromSTEB(0.0, 0.0,
  544. 4.0, 0.0),
  545. child: Text(
  546. categorieItem,
  547. style:
  548. FlutterFlowTheme.of(
  549. context)
  550. .titleSmall
  551. .override(
  552. font: GoogleFonts
  553. .interTight(
  554. fontWeight:
  555. FlutterFlowTheme.of(
  556. context)
  557. .titleSmall
  558. .fontWeight,
  559. fontStyle:
  560. FlutterFlowTheme.of(
  561. context)
  562. .titleSmall
  563. .fontStyle,
  564. ),
  565. letterSpacing: 0.0,
  566. fontWeight:
  567. FlutterFlowTheme.of(
  568. context)
  569. .titleSmall
  570. .fontWeight,
  571. fontStyle:
  572. FlutterFlowTheme.of(
  573. context)
  574. .titleSmall
  575. .fontStyle,
  576. shadows: [
  577. Shadow(
  578. color: FlutterFlowTheme
  579. .of(context)
  580. .secondaryText,
  581. offset: Offset(
  582. 2.0, 2.0),
  583. blurRadius: 2.0,
  584. )
  585. ],
  586. ),
  587. ),
  588. ),
  589. ),
  590. ),
  591. ),
  592. );
  593. }),
  594. );
  595. },
  596. ),
  597. ),
  598. Builder(
  599. builder: (context) {
  600. if (getJsonField(
  601. eventCurrentEvenementResponse
  602. .jsonBody,
  603. r'''$[0].logo''',
  604. ) !=
  605. null) {
  606. return Padding(
  607. padding: EdgeInsetsDirectional.fromSTEB(
  608. 4.0, 2.0, 4.0, 15.0),
  609. child: ClipRRect(
  610. borderRadius:
  611. BorderRadius.circular(8.0),
  612. child: CachedNetworkImage(
  613. fadeInDuration:
  614. Duration(milliseconds: 500),
  615. fadeOutDuration:
  616. Duration(milliseconds: 500),
  617. imageUrl: EvenementCall.eventLogog(
  618. eventCurrentEvenementResponse
  619. .jsonBody,
  620. )!,
  621. width: MediaQuery.sizeOf(context)
  622. .width *
  623. 0.15,
  624. height: MediaQuery.sizeOf(context)
  625. .height *
  626. 0.15,
  627. fit: BoxFit.cover,
  628. ),
  629. ),
  630. );
  631. } else {
  632. return Icon(
  633. Icons.image_not_supported,
  634. color: FlutterFlowTheme.of(context)
  635. .primaryText,
  636. size: 24.0,
  637. );
  638. }
  639. },
  640. ),
  641. Expanded(
  642. child: wrapWithModel(
  643. model: _model.evenementInfoModel,
  644. updateCallback: () => safeSetState(() {}),
  645. child: Builder(builder: (_) {
  646. return DebugFlutterFlowModelContext(
  647. rootModel: _model.rootModel,
  648. child: EvenementInfoWidget(
  649. nid: EvenementCall.eventNid(
  650. eventCurrentEvenementResponse
  651. .jsonBody,
  652. ),
  653. title: EvenementCall.eventTitle(
  654. eventCurrentEvenementResponse
  655. .jsonBody,
  656. ),
  657. date: EvenementCall.eventDate(
  658. eventCurrentEvenementResponse
  659. .jsonBody,
  660. ),
  661. adres: EvenementCall.eventAdres(
  662. eventCurrentEvenementResponse
  663. .jsonBody,
  664. ),
  665. plaats: EvenementCall.eventPlaats(
  666. eventCurrentEvenementResponse
  667. .jsonBody,
  668. ),
  669. entreetoelichting: EvenementCall
  670. .eventEntreeToelichting(
  671. eventCurrentEvenementResponse
  672. .jsonBody,
  673. ),
  674. entreeprijs:
  675. EvenementCall.eventEntreeprijs(
  676. eventCurrentEvenementResponse
  677. .jsonBody,
  678. ),
  679. website: EvenementCall.eventWebsiteg(
  680. eventCurrentEvenementResponse
  681. .jsonBody,
  682. ),
  683. contact: EvenementCall.eventContact(
  684. eventCurrentEvenementResponse
  685. .jsonBody,
  686. ),
  687. logo: EvenementCall.eventLogog(
  688. eventCurrentEvenementResponse
  689. .jsonBody,
  690. ),
  691. fotoos: EvenementCall.eventFotoos(
  692. eventCurrentEvenementResponse
  693. .jsonBody,
  694. ),
  695. categories:
  696. EvenementCall.eventCategorie(
  697. eventCurrentEvenementResponse
  698. .jsonBody,
  699. ),
  700. ),
  701. );
  702. }),
  703. ),
  704. ),
  705. ],
  706. ),
  707. ),
  708. ),
  709. SingleChildScrollView(
  710. child: Column(
  711. mainAxisSize: MainAxisSize.max,
  712. children: [
  713. Container(
  714. width: MediaQuery.sizeOf(context).width * 0.6,
  715. decoration: BoxDecoration(
  716. color: FlutterFlowTheme.of(context).alternate,
  717. boxShadow: [
  718. BoxShadow(
  719. blurRadius: 4.0,
  720. color: Color(0x33000000),
  721. offset: Offset(
  722. 4.0,
  723. 2.0,
  724. ),
  725. )
  726. ],
  727. borderRadius: BorderRadius.circular(4.0),
  728. border: Border.all(
  729. color: Colors.black,
  730. ),
  731. ),
  732. child: wrapWithModel(
  733. model: _model.evenementV2HTMLComponentModel,
  734. updateCallback: () => safeSetState(() {}),
  735. child: Builder(builder: (_) {
  736. return DebugFlutterFlowModelContext(
  737. rootModel: _model.rootModel,
  738. child: EvenementV2HTMLComponentWidget(
  739. body: EvenementCall.eventBody(
  740. eventCurrentEvenementResponse
  741. .jsonBody,
  742. ),
  743. ),
  744. );
  745. }),
  746. ),
  747. ),
  748. ],
  749. ),
  750. ),
  751. ],
  752. ),
  753. ),
  754. Expanded(
  755. child: wrapWithModel(
  756. model: _model.evenementHorecagelegenheidModel,
  757. updateCallback: () => safeSetState(() {}),
  758. child: Builder(builder: (_) {
  759. return DebugFlutterFlowModelContext(
  760. rootModel: _model.rootModel,
  761. child: EvenementHorecagelegenheidWidget(
  762. establishmentID: widget!.horecaid!,
  763. ),
  764. );
  765. }),
  766. ),
  767. ),
  768. ],
  769. ),
  770. ),
  771. ),
  772. );
  773. },
  774. );
  775. }
  776. }