horecagelegenheid_current_widget.dart 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  1. import '/backend/api_requests/api_calls.dart';
  2. import '/components/header_buttons_component_widget.dart';
  3. import '/flutter_flow/flutter_flow_icon_button.dart';
  4. import '/flutter_flow/flutter_flow_theme.dart';
  5. import '/flutter_flow/flutter_flow_util.dart';
  6. import '/flutter_flow/flutter_flow_widgets.dart';
  7. import '/horecagelegenhedenoverzicht/horecagelegenheid_event_tabel_component_copy/horecagelegenheid_event_tabel_component_copy_widget.dart';
  8. import '/shared/drawer_component/drawer_component_widget.dart';
  9. import 'dart:ui';
  10. import '/custom_code/widgets/index.dart' as custom_widgets;
  11. import '/index.dart';
  12. import 'package:aligned_tooltip/aligned_tooltip.dart';
  13. import 'package:carousel_slider/carousel_slider.dart';
  14. import 'package:cached_network_image/cached_network_image.dart';
  15. import 'package:flutter/material.dart';
  16. import 'package:flutter_spinkit/flutter_spinkit.dart';
  17. import 'package:google_fonts/google_fonts.dart';
  18. import 'package:provider/provider.dart';
  19. import 'horecagelegenheid_current_model.dart';
  20. export 'horecagelegenheid_current_model.dart';
  21. /// Establishment
  22. class HorecagelegenheidCurrentWidget extends StatefulWidget {
  23. const HorecagelegenheidCurrentWidget({
  24. super.key,
  25. required this.nid,
  26. });
  27. /// establishment nid
  28. final String? nid;
  29. static String routeName = 'horecagelegenheidCurrent';
  30. static String routePath = '/horecagelegenheidCurrent';
  31. @override
  32. State<HorecagelegenheidCurrentWidget> createState() =>
  33. _HorecagelegenheidCurrentWidgetState();
  34. }
  35. class _HorecagelegenheidCurrentWidgetState
  36. extends State<HorecagelegenheidCurrentWidget>
  37. with TickerProviderStateMixin, RouteAware {
  38. late HorecagelegenheidCurrentModel _model;
  39. final scaffoldKey = GlobalKey<ScaffoldState>();
  40. @override
  41. void initState() {
  42. super.initState();
  43. _model = createModel(context, () => HorecagelegenheidCurrentModel());
  44. _model.tabBarController = TabController(
  45. vsync: this,
  46. length: 3,
  47. initialIndex: 0,
  48. )
  49. ..addListener(() => safeSetState(() {}))
  50. ..addListener(() {
  51. debugLogWidgetClass(_model);
  52. });
  53. }
  54. @override
  55. void dispose() {
  56. routeObserver.unsubscribe(this);
  57. _model.dispose();
  58. super.dispose();
  59. }
  60. @override
  61. void didUpdateWidget(HorecagelegenheidCurrentWidget oldWidget) {
  62. super.didUpdateWidget(oldWidget);
  63. _model.widget = widget;
  64. }
  65. @override
  66. void didChangeDependencies() {
  67. super.didChangeDependencies();
  68. final route = DebugModalRoute.of(context);
  69. if (route != null) {
  70. routeObserver.subscribe(this, route);
  71. }
  72. debugLogGlobalProperty(context);
  73. }
  74. @override
  75. void didPopNext() {
  76. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  77. setState(() => _model.isRouteVisible = true);
  78. debugLogWidgetClass(_model);
  79. }
  80. }
  81. @override
  82. void didPush() {
  83. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  84. setState(() => _model.isRouteVisible = true);
  85. debugLogWidgetClass(_model);
  86. }
  87. }
  88. @override
  89. void didPop() {
  90. _model.isRouteVisible = false;
  91. }
  92. @override
  93. void didPushNext() {
  94. _model.isRouteVisible = false;
  95. }
  96. @override
  97. Widget build(BuildContext context) {
  98. DebugFlutterFlowModelContext.maybeOf(context)
  99. ?.parentModelCallback
  100. ?.call(_model);
  101. context.watch<FFAppState>();
  102. return FutureBuilder<ApiCallResponse>(
  103. future: EstablishmentInfoCall.call(
  104. nid: widget!.nid,
  105. ),
  106. builder: (context, snapshot) {
  107. // Customize what your widget looks like when it's loading.
  108. if (!snapshot.hasData) {
  109. return Scaffold(
  110. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  111. body: Center(
  112. child: SizedBox(
  113. width: 80.0,
  114. height: 80.0,
  115. child: SpinKitFadingCircle(
  116. color: Color(0xFFB1061E),
  117. size: 80.0,
  118. ),
  119. ),
  120. ),
  121. );
  122. }
  123. final horecagelegenheidCurrentEstablishmentInfoResponse =
  124. snapshot.data!;
  125. _model.debugBackendQueries[
  126. 'EstablishmentInfoCall_statusCode_Scaffold_m8hqnbgb'] =
  127. debugSerializeParam(
  128. horecagelegenheidCurrentEstablishmentInfoResponse.statusCode,
  129. ParamType.int,
  130. link:
  131. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  132. name: 'int',
  133. nullable: false,
  134. );
  135. _model.debugBackendQueries[
  136. 'EstablishmentInfoCall_responseBody_Scaffold_m8hqnbgb'] =
  137. debugSerializeParam(
  138. horecagelegenheidCurrentEstablishmentInfoResponse.bodyText,
  139. ParamType.String,
  140. link:
  141. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  142. name: 'String',
  143. nullable: false,
  144. );
  145. debugLogWidgetClass(_model);
  146. return GestureDetector(
  147. onTap: () {
  148. FocusScope.of(context).unfocus();
  149. FocusManager.instance.primaryFocus?.unfocus();
  150. },
  151. child: Scaffold(
  152. key: scaffoldKey,
  153. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  154. drawer: Drawer(
  155. elevation: 16.0,
  156. child: wrapWithModel(
  157. model: _model.drawerComponentModel,
  158. updateCallback: () => safeSetState(() {}),
  159. child: Builder(builder: (_) {
  160. return DebugFlutterFlowModelContext(
  161. rootModel: _model.rootModel,
  162. child: DrawerComponentWidget(),
  163. );
  164. }),
  165. ),
  166. ),
  167. appBar: PreferredSize(
  168. preferredSize: Size.fromHeight(80.0),
  169. child: AppBar(
  170. backgroundColor: FlutterFlowTheme.of(context).info,
  171. iconTheme: IconThemeData(color: Color(0xFFB12727)),
  172. automaticallyImplyLeading: false,
  173. actions: [],
  174. flexibleSpace: FlexibleSpaceBar(
  175. background: Row(
  176. mainAxisSize: MainAxisSize.max,
  177. children: [
  178. wrapWithModel(
  179. model: _model.headerButtonsComponentModel,
  180. updateCallback: () => safeSetState(() {}),
  181. child: Builder(builder: (_) {
  182. return DebugFlutterFlowModelContext(
  183. rootModel: _model.rootModel,
  184. child: HeaderButtonsComponentWidget(),
  185. );
  186. }),
  187. ),
  188. ],
  189. ),
  190. centerTitle: true,
  191. expandedTitleScale: 1.0,
  192. ),
  193. bottom: PreferredSize(
  194. preferredSize: Size.fromHeight(70.0),
  195. child: Container(),
  196. ),
  197. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  198. elevation: 2.0,
  199. ),
  200. ),
  201. body: SafeArea(
  202. top: true,
  203. child: Column(
  204. mainAxisSize: MainAxisSize.max,
  205. children: [
  206. Stack(
  207. children: [
  208. Container(
  209. width: 366.1,
  210. height: 281.5,
  211. decoration: BoxDecoration(
  212. color:
  213. FlutterFlowTheme.of(context).secondaryBackground,
  214. ),
  215. child: Builder(
  216. builder: (context) {
  217. final fotoos =
  218. EstablishmentInfoCall.establishmentFotoos(
  219. horecagelegenheidCurrentEstablishmentInfoResponse
  220. .jsonBody,
  221. )?.toList() ??
  222. [];
  223. if (fotoos.isEmpty) {
  224. return Image.asset(
  225. 'assets/images/logo800px.png',
  226. );
  227. }
  228. _model.debugGeneratorVariables[
  229. 'fotoos${fotoos.length > 100 ? ' (first 100)' : ''}'] =
  230. debugSerializeParam(
  231. fotoos.take(100),
  232. ParamType.String,
  233. isList: true,
  234. link:
  235. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  236. name: 'String',
  237. nullable: false,
  238. );
  239. debugLogWidgetClass(_model);
  240. return Container(
  241. width: double.infinity,
  242. height: 200.0,
  243. child: CarouselSlider.builder(
  244. itemCount: fotoos.length,
  245. itemBuilder: (context, fotoosIndex, _) {
  246. final fotoosItem = fotoos[fotoosIndex];
  247. return Builder(
  248. builder: (context) {
  249. if (fotoosItem != null &&
  250. fotoosItem != '') {
  251. return ClipRRect(
  252. borderRadius:
  253. BorderRadius.circular(8.0),
  254. child: CachedNetworkImage(
  255. fadeInDuration:
  256. Duration(milliseconds: 500),
  257. fadeOutDuration:
  258. Duration(milliseconds: 500),
  259. imageUrl: fotoosItem,
  260. width: 200.0,
  261. height: 200.0,
  262. fit: BoxFit.cover,
  263. ),
  264. );
  265. } else {
  266. return Icon(
  267. Icons.image_not_supported,
  268. color: FlutterFlowTheme.of(context)
  269. .primaryText,
  270. size: 24.0,
  271. );
  272. }
  273. },
  274. );
  275. },
  276. carouselController:
  277. _model.carouselController ??=
  278. CarouselSliderController(),
  279. options: CarouselOptions(
  280. initialPage:
  281. max(0, min(1, fotoos.length - 1)),
  282. viewportFraction: 0.5,
  283. disableCenter: true,
  284. enlargeCenterPage: true,
  285. enlargeFactor: 0.25,
  286. enableInfiniteScroll: true,
  287. scrollDirection: Axis.horizontal,
  288. autoPlay: false,
  289. onPageChanged: (index, _) =>
  290. _model.carouselCurrentIndex = index,
  291. ),
  292. ),
  293. );
  294. },
  295. ),
  296. ),
  297. Align(
  298. alignment: AlignmentDirectional(1.0, 0.0),
  299. child: AlignedTooltip(
  300. content: Padding(
  301. padding: EdgeInsets.all(4.0),
  302. child: Text(
  303. FFLocalizations.of(context).getText(
  304. 'kjqv6ycx' /* Favoriet */,
  305. ),
  306. style: FlutterFlowTheme.of(context)
  307. .bodyLarge
  308. .override(
  309. font: GoogleFonts.inter(
  310. fontWeight: FlutterFlowTheme.of(context)
  311. .bodyLarge
  312. .fontWeight,
  313. fontStyle: FlutterFlowTheme.of(context)
  314. .bodyLarge
  315. .fontStyle,
  316. ),
  317. letterSpacing: 0.0,
  318. fontWeight: FlutterFlowTheme.of(context)
  319. .bodyLarge
  320. .fontWeight,
  321. fontStyle: FlutterFlowTheme.of(context)
  322. .bodyLarge
  323. .fontStyle,
  324. ),
  325. ),
  326. ),
  327. offset: 4.0,
  328. preferredDirection: AxisDirection.down,
  329. borderRadius: BorderRadius.circular(8.0),
  330. backgroundColor:
  331. FlutterFlowTheme.of(context).secondaryBackground,
  332. elevation: 4.0,
  333. tailBaseWidth: 24.0,
  334. tailLength: 12.0,
  335. waitDuration: Duration(milliseconds: 100),
  336. showDuration: Duration(milliseconds: 1500),
  337. triggerMode: TooltipTriggerMode.tap,
  338. child: Builder(
  339. builder: (context) {
  340. if (FFAppState()
  341. .favorieteHorecaNids
  342. .contains(widget!.nid)) {
  343. return FlutterFlowIconButton(
  344. borderRadius: 8.0,
  345. buttonSize: 32.0,
  346. fillColor: Color(0x0AFFFFFF),
  347. icon: Icon(
  348. Icons.favorite_border,
  349. color: Color(0xFFB50808),
  350. size: 24.0,
  351. ),
  352. onPressed: () async {
  353. FFAppState().removeFromFavorieteHorecaNids(
  354. widget!.nid!);
  355. safeSetState(() {});
  356. },
  357. );
  358. } else {
  359. return FlutterFlowIconButton(
  360. borderRadius: 8.0,
  361. buttonSize: 32.0,
  362. fillColor: Colors.white,
  363. icon: Icon(
  364. Icons.favorite_border,
  365. color: Color(0xFFB50808),
  366. size: 24.0,
  367. ),
  368. onPressed: () async {
  369. FFAppState()
  370. .addToFavorieteHorecaNids(widget!.nid!);
  371. safeSetState(() {});
  372. },
  373. );
  374. }
  375. },
  376. ),
  377. ),
  378. ),
  379. ],
  380. ),
  381. Text(
  382. valueOrDefault<String>(
  383. EstablishmentInfoCall.establshmentTitel(
  384. horecagelegenheidCurrentEstablishmentInfoResponse
  385. .jsonBody,
  386. ),
  387. 'title',
  388. ),
  389. style: FlutterFlowTheme.of(context).headlineMedium.override(
  390. font: GoogleFonts.interTight(
  391. fontWeight: FlutterFlowTheme.of(context)
  392. .headlineMedium
  393. .fontWeight,
  394. fontStyle: FlutterFlowTheme.of(context)
  395. .headlineMedium
  396. .fontStyle,
  397. ),
  398. letterSpacing: 0.0,
  399. fontWeight: FlutterFlowTheme.of(context)
  400. .headlineMedium
  401. .fontWeight,
  402. fontStyle:
  403. FlutterFlowTheme.of(context).headlineMedium.fontStyle,
  404. shadows: [
  405. Shadow(
  406. color: FlutterFlowTheme.of(context).secondaryText,
  407. offset: Offset(2.0, 2.0),
  408. blurRadius: 2.0,
  409. )
  410. ],
  411. ),
  412. ),
  413. Expanded(
  414. child: Column(
  415. children: [
  416. Align(
  417. alignment: Alignment(0.0, 0),
  418. child: TabBar(
  419. labelColor:
  420. FlutterFlowTheme.of(context).primaryText,
  421. unselectedLabelColor:
  422. FlutterFlowTheme.of(context).secondaryText,
  423. labelStyle: FlutterFlowTheme.of(context)
  424. .titleMedium
  425. .override(
  426. font: GoogleFonts.interTight(
  427. fontWeight: FlutterFlowTheme.of(context)
  428. .titleMedium
  429. .fontWeight,
  430. fontStyle: FlutterFlowTheme.of(context)
  431. .titleMedium
  432. .fontStyle,
  433. ),
  434. letterSpacing: 0.0,
  435. fontWeight: FlutterFlowTheme.of(context)
  436. .titleMedium
  437. .fontWeight,
  438. fontStyle: FlutterFlowTheme.of(context)
  439. .titleMedium
  440. .fontStyle,
  441. ),
  442. unselectedLabelStyle: FlutterFlowTheme.of(context)
  443. .titleMedium
  444. .override(
  445. font: GoogleFonts.interTight(
  446. fontWeight: FlutterFlowTheme.of(context)
  447. .titleMedium
  448. .fontWeight,
  449. fontStyle: FlutterFlowTheme.of(context)
  450. .titleMedium
  451. .fontStyle,
  452. ),
  453. letterSpacing: 0.0,
  454. fontWeight: FlutterFlowTheme.of(context)
  455. .titleMedium
  456. .fontWeight,
  457. fontStyle: FlutterFlowTheme.of(context)
  458. .titleMedium
  459. .fontStyle,
  460. ),
  461. indicatorColor:
  462. FlutterFlowTheme.of(context).primary,
  463. tabs: [
  464. Tab(
  465. text: FFLocalizations.of(context).getText(
  466. 'pedeshok' /* Info */,
  467. ),
  468. ),
  469. Tab(
  470. text: FFLocalizations.of(context).getText(
  471. 'q5nwrlms' /* Links */,
  472. ),
  473. ),
  474. Tab(
  475. text: FFLocalizations.of(context).getText(
  476. 's1b6yp7v' /* Bezorgen */,
  477. ),
  478. ),
  479. ],
  480. controller: _model.tabBarController,
  481. onTap: (i) async {
  482. [() async {}, () async {}, () async {}][i]();
  483. },
  484. ),
  485. ),
  486. Expanded(
  487. child: TabBarView(
  488. controller: _model.tabBarController,
  489. children: [
  490. Row(
  491. mainAxisSize: MainAxisSize.max,
  492. children: [
  493. Column(
  494. mainAxisSize: MainAxisSize.max,
  495. children: [
  496. ClipRRect(
  497. borderRadius:
  498. BorderRadius.circular(8.0),
  499. child: CachedNetworkImage(
  500. fadeInDuration:
  501. Duration(milliseconds: 500),
  502. fadeOutDuration:
  503. Duration(milliseconds: 500),
  504. imageUrl: valueOrDefault<String>(
  505. EstablishmentInfoCall
  506. .establshmentLogo(
  507. horecagelegenheidCurrentEstablishmentInfoResponse
  508. .jsonBody,
  509. ),
  510. 'logo',
  511. ),
  512. width: 200.0,
  513. height: 200.0,
  514. fit: BoxFit.cover,
  515. ),
  516. ),
  517. Text(
  518. getJsonField(
  519. horecagelegenheidCurrentEstablishmentInfoResponse
  520. .jsonBody,
  521. r'''$[:].adres''',
  522. ).toString(),
  523. style: FlutterFlowTheme.of(context)
  524. .bodyMedium
  525. .override(
  526. font: GoogleFonts.inter(
  527. fontWeight:
  528. FlutterFlowTheme.of(context)
  529. .bodyMedium
  530. .fontWeight,
  531. fontStyle:
  532. FlutterFlowTheme.of(context)
  533. .bodyMedium
  534. .fontStyle,
  535. ),
  536. letterSpacing: 0.0,
  537. fontWeight:
  538. FlutterFlowTheme.of(context)
  539. .bodyMedium
  540. .fontWeight,
  541. fontStyle:
  542. FlutterFlowTheme.of(context)
  543. .bodyMedium
  544. .fontStyle,
  545. ),
  546. ),
  547. Text(
  548. getJsonField(
  549. horecagelegenheidCurrentEstablishmentInfoResponse
  550. .jsonBody,
  551. r'''$[:].plaats''',
  552. ).toString(),
  553. style: FlutterFlowTheme.of(context)
  554. .bodyMedium
  555. .override(
  556. font: GoogleFonts.inter(
  557. fontWeight:
  558. FlutterFlowTheme.of(context)
  559. .bodyMedium
  560. .fontWeight,
  561. fontStyle:
  562. FlutterFlowTheme.of(context)
  563. .bodyMedium
  564. .fontStyle,
  565. ),
  566. letterSpacing: 0.0,
  567. fontWeight:
  568. FlutterFlowTheme.of(context)
  569. .bodyMedium
  570. .fontWeight,
  571. fontStyle:
  572. FlutterFlowTheme.of(context)
  573. .bodyMedium
  574. .fontStyle,
  575. ),
  576. ),
  577. Text(
  578. getJsonField(
  579. horecagelegenheidCurrentEstablishmentInfoResponse
  580. .jsonBody,
  581. r'''$[:].telefoonnummer''',
  582. ).toString(),
  583. style: FlutterFlowTheme.of(context)
  584. .bodyMedium
  585. .override(
  586. font: GoogleFonts.inter(
  587. fontWeight:
  588. FlutterFlowTheme.of(context)
  589. .bodyMedium
  590. .fontWeight,
  591. fontStyle:
  592. FlutterFlowTheme.of(context)
  593. .bodyMedium
  594. .fontStyle,
  595. ),
  596. letterSpacing: 0.0,
  597. fontWeight:
  598. FlutterFlowTheme.of(context)
  599. .bodyMedium
  600. .fontWeight,
  601. fontStyle:
  602. FlutterFlowTheme.of(context)
  603. .bodyMedium
  604. .fontStyle,
  605. ),
  606. ),
  607. Text(
  608. getJsonField(
  609. horecagelegenheidCurrentEstablishmentInfoResponse
  610. .jsonBody,
  611. r'''$[:].email''',
  612. ).toString(),
  613. style: FlutterFlowTheme.of(context)
  614. .bodyMedium
  615. .override(
  616. font: GoogleFonts.inter(
  617. fontWeight:
  618. FlutterFlowTheme.of(context)
  619. .bodyMedium
  620. .fontWeight,
  621. fontStyle:
  622. FlutterFlowTheme.of(context)
  623. .bodyMedium
  624. .fontStyle,
  625. ),
  626. letterSpacing: 0.0,
  627. fontWeight:
  628. FlutterFlowTheme.of(context)
  629. .bodyMedium
  630. .fontWeight,
  631. fontStyle:
  632. FlutterFlowTheme.of(context)
  633. .bodyMedium
  634. .fontStyle,
  635. ),
  636. ),
  637. Text(
  638. getJsonField(
  639. horecagelegenheidCurrentEstablishmentInfoResponse
  640. .jsonBody,
  641. r'''$[:].kvk''',
  642. ).toString(),
  643. style: FlutterFlowTheme.of(context)
  644. .bodyMedium
  645. .override(
  646. font: GoogleFonts.inter(
  647. fontWeight:
  648. FlutterFlowTheme.of(context)
  649. .bodyMedium
  650. .fontWeight,
  651. fontStyle:
  652. FlutterFlowTheme.of(context)
  653. .bodyMedium
  654. .fontStyle,
  655. ),
  656. letterSpacing: 0.0,
  657. fontWeight:
  658. FlutterFlowTheme.of(context)
  659. .bodyMedium
  660. .fontWeight,
  661. fontStyle:
  662. FlutterFlowTheme.of(context)
  663. .bodyMedium
  664. .fontStyle,
  665. ),
  666. ),
  667. Builder(
  668. builder: (context) {
  669. final cryptocoins =
  670. EstablishmentInfoCall
  671. .establishmentCryptocoins(
  672. horecagelegenheidCurrentEstablishmentInfoResponse
  673. .jsonBody,
  674. )?.toList() ??
  675. [];
  676. _model.debugGeneratorVariables[
  677. 'cryptocoins${cryptocoins.length > 100 ? ' (first 100)' : ''}'] =
  678. debugSerializeParam(
  679. cryptocoins.take(100),
  680. ParamType.String,
  681. isList: true,
  682. link:
  683. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  684. name: 'String',
  685. nullable: false,
  686. );
  687. debugLogWidgetClass(_model);
  688. return Wrap(
  689. spacing: 0.0,
  690. runSpacing: 0.0,
  691. alignment: WrapAlignment.start,
  692. crossAxisAlignment:
  693. WrapCrossAlignment.start,
  694. direction: Axis.horizontal,
  695. runAlignment: WrapAlignment.start,
  696. verticalDirection:
  697. VerticalDirection.down,
  698. clipBehavior: Clip.none,
  699. children: List.generate(
  700. cryptocoins.length,
  701. (cryptocoinsIndex) {
  702. final cryptocoinsItem =
  703. cryptocoins[cryptocoinsIndex];
  704. return Text(
  705. cryptocoinsItem,
  706. style:
  707. FlutterFlowTheme.of(context)
  708. .bodyMedium
  709. .override(
  710. font:
  711. GoogleFonts.inter(
  712. fontWeight:
  713. FlutterFlowTheme.of(
  714. context)
  715. .bodyMedium
  716. .fontWeight,
  717. fontStyle:
  718. FlutterFlowTheme.of(
  719. context)
  720. .bodyMedium
  721. .fontStyle,
  722. ),
  723. letterSpacing: 0.0,
  724. fontWeight:
  725. FlutterFlowTheme.of(
  726. context)
  727. .bodyMedium
  728. .fontWeight,
  729. fontStyle:
  730. FlutterFlowTheme.of(
  731. context)
  732. .bodyMedium
  733. .fontStyle,
  734. ),
  735. );
  736. }),
  737. );
  738. },
  739. ),
  740. ],
  741. ),
  742. Column(
  743. mainAxisSize: MainAxisSize.max,
  744. children: [
  745. Container(
  746. width:
  747. MediaQuery.sizeOf(context).width *
  748. 0.7,
  749. height:
  750. MediaQuery.sizeOf(context).height *
  751. 0.2,
  752. child: custom_widgets.FromHTML(
  753. width:
  754. MediaQuery.sizeOf(context).width *
  755. 0.7,
  756. height: MediaQuery.sizeOf(context)
  757. .height *
  758. 0.2,
  759. HTMLParameter: valueOrDefault<String>(
  760. EstablishmentInfoCall
  761. .establshmentInhoud(
  762. horecagelegenheidCurrentEstablishmentInfoResponse
  763. .jsonBody,
  764. ),
  765. 'content',
  766. ),
  767. ),
  768. ),
  769. ],
  770. ),
  771. ],
  772. ),
  773. Column(
  774. mainAxisSize: MainAxisSize.max,
  775. children: [
  776. Text(
  777. getJsonField(
  778. horecagelegenheidCurrentEstablishmentInfoResponse
  779. .jsonBody,
  780. r'''$[:].website''',
  781. ).toString(),
  782. style: FlutterFlowTheme.of(context)
  783. .bodyMedium
  784. .override(
  785. font: GoogleFonts.inter(
  786. fontWeight:
  787. FlutterFlowTheme.of(context)
  788. .bodyMedium
  789. .fontWeight,
  790. fontStyle:
  791. FlutterFlowTheme.of(context)
  792. .bodyMedium
  793. .fontStyle,
  794. ),
  795. letterSpacing: 0.0,
  796. fontWeight:
  797. FlutterFlowTheme.of(context)
  798. .bodyMedium
  799. .fontWeight,
  800. fontStyle:
  801. FlutterFlowTheme.of(context)
  802. .bodyMedium
  803. .fontStyle,
  804. ),
  805. ),
  806. Text(
  807. getJsonField(
  808. horecagelegenheidCurrentEstablishmentInfoResponse
  809. .jsonBody,
  810. r'''$[:].menukaart''',
  811. ).toString(),
  812. style: FlutterFlowTheme.of(context)
  813. .bodyMedium
  814. .override(
  815. font: GoogleFonts.inter(
  816. fontWeight:
  817. FlutterFlowTheme.of(context)
  818. .bodyMedium
  819. .fontWeight,
  820. fontStyle:
  821. FlutterFlowTheme.of(context)
  822. .bodyMedium
  823. .fontStyle,
  824. ),
  825. letterSpacing: 0.0,
  826. fontWeight:
  827. FlutterFlowTheme.of(context)
  828. .bodyMedium
  829. .fontWeight,
  830. fontStyle:
  831. FlutterFlowTheme.of(context)
  832. .bodyMedium
  833. .fontStyle,
  834. ),
  835. ),
  836. Text(
  837. getJsonField(
  838. horecagelegenheidCurrentEstablishmentInfoResponse
  839. .jsonBody,
  840. r'''$[:].facebook''',
  841. ).toString(),
  842. style: FlutterFlowTheme.of(context)
  843. .bodyMedium
  844. .override(
  845. font: GoogleFonts.inter(
  846. fontWeight:
  847. FlutterFlowTheme.of(context)
  848. .bodyMedium
  849. .fontWeight,
  850. fontStyle:
  851. FlutterFlowTheme.of(context)
  852. .bodyMedium
  853. .fontStyle,
  854. ),
  855. letterSpacing: 0.0,
  856. fontWeight:
  857. FlutterFlowTheme.of(context)
  858. .bodyMedium
  859. .fontWeight,
  860. fontStyle:
  861. FlutterFlowTheme.of(context)
  862. .bodyMedium
  863. .fontStyle,
  864. ),
  865. ),
  866. Text(
  867. getJsonField(
  868. horecagelegenheidCurrentEstablishmentInfoResponse
  869. .jsonBody,
  870. r'''$[:].twitter''',
  871. ).toString(),
  872. style: FlutterFlowTheme.of(context)
  873. .bodyMedium
  874. .override(
  875. font: GoogleFonts.inter(
  876. fontWeight:
  877. FlutterFlowTheme.of(context)
  878. .bodyMedium
  879. .fontWeight,
  880. fontStyle:
  881. FlutterFlowTheme.of(context)
  882. .bodyMedium
  883. .fontStyle,
  884. ),
  885. letterSpacing: 0.0,
  886. fontWeight:
  887. FlutterFlowTheme.of(context)
  888. .bodyMedium
  889. .fontWeight,
  890. fontStyle:
  891. FlutterFlowTheme.of(context)
  892. .bodyMedium
  893. .fontStyle,
  894. ),
  895. ),
  896. Text(
  897. getJsonField(
  898. horecagelegenheidCurrentEstablishmentInfoResponse
  899. .jsonBody,
  900. r'''$[:].instagram''',
  901. ).toString(),
  902. style: FlutterFlowTheme.of(context)
  903. .bodyMedium
  904. .override(
  905. font: GoogleFonts.inter(
  906. fontWeight:
  907. FlutterFlowTheme.of(context)
  908. .bodyMedium
  909. .fontWeight,
  910. fontStyle:
  911. FlutterFlowTheme.of(context)
  912. .bodyMedium
  913. .fontStyle,
  914. ),
  915. letterSpacing: 0.0,
  916. fontWeight:
  917. FlutterFlowTheme.of(context)
  918. .bodyMedium
  919. .fontWeight,
  920. fontStyle:
  921. FlutterFlowTheme.of(context)
  922. .bodyMedium
  923. .fontStyle,
  924. ),
  925. ),
  926. ],
  927. ),
  928. Column(
  929. mainAxisSize: MainAxisSize.max,
  930. children: [
  931. Text(
  932. getJsonField(
  933. horecagelegenheidCurrentEstablishmentInfoResponse
  934. .jsonBody,
  935. r'''$[:].afhaalopties''',
  936. ).toString(),
  937. style: FlutterFlowTheme.of(context)
  938. .bodyMedium
  939. .override(
  940. font: GoogleFonts.inter(
  941. fontWeight:
  942. FlutterFlowTheme.of(context)
  943. .bodyMedium
  944. .fontWeight,
  945. fontStyle:
  946. FlutterFlowTheme.of(context)
  947. .bodyMedium
  948. .fontStyle,
  949. ),
  950. letterSpacing: 0.0,
  951. fontWeight:
  952. FlutterFlowTheme.of(context)
  953. .bodyMedium
  954. .fontWeight,
  955. fontStyle:
  956. FlutterFlowTheme.of(context)
  957. .bodyMedium
  958. .fontStyle,
  959. ),
  960. ),
  961. Text(
  962. getJsonField(
  963. horecagelegenheidCurrentEstablishmentInfoResponse
  964. .jsonBody,
  965. r'''$[:].bestellink''',
  966. ).toString(),
  967. style: FlutterFlowTheme.of(context)
  968. .bodyMedium
  969. .override(
  970. font: GoogleFonts.inter(
  971. fontWeight:
  972. FlutterFlowTheme.of(context)
  973. .bodyMedium
  974. .fontWeight,
  975. fontStyle:
  976. FlutterFlowTheme.of(context)
  977. .bodyMedium
  978. .fontStyle,
  979. ),
  980. letterSpacing: 0.0,
  981. fontWeight:
  982. FlutterFlowTheme.of(context)
  983. .bodyMedium
  984. .fontWeight,
  985. fontStyle:
  986. FlutterFlowTheme.of(context)
  987. .bodyMedium
  988. .fontStyle,
  989. ),
  990. ),
  991. Text(
  992. getJsonField(
  993. horecagelegenheidCurrentEstablishmentInfoResponse
  994. .jsonBody,
  995. r'''$[:].bezorgtijden''',
  996. ).toString(),
  997. style: FlutterFlowTheme.of(context)
  998. .bodyMedium
  999. .override(
  1000. font: GoogleFonts.inter(
  1001. fontWeight:
  1002. FlutterFlowTheme.of(context)
  1003. .bodyMedium
  1004. .fontWeight,
  1005. fontStyle:
  1006. FlutterFlowTheme.of(context)
  1007. .bodyMedium
  1008. .fontStyle,
  1009. ),
  1010. letterSpacing: 0.0,
  1011. fontWeight:
  1012. FlutterFlowTheme.of(context)
  1013. .bodyMedium
  1014. .fontWeight,
  1015. fontStyle:
  1016. FlutterFlowTheme.of(context)
  1017. .bodyMedium
  1018. .fontStyle,
  1019. ),
  1020. ),
  1021. Text(
  1022. getJsonField(
  1023. horecagelegenheidCurrentEstablishmentInfoResponse
  1024. .jsonBody,
  1025. r'''$[:].bezorgkosten''',
  1026. ).toString(),
  1027. style: FlutterFlowTheme.of(context)
  1028. .bodyMedium
  1029. .override(
  1030. font: GoogleFonts.inter(
  1031. fontWeight:
  1032. FlutterFlowTheme.of(context)
  1033. .bodyMedium
  1034. .fontWeight,
  1035. fontStyle:
  1036. FlutterFlowTheme.of(context)
  1037. .bodyMedium
  1038. .fontStyle,
  1039. ),
  1040. letterSpacing: 0.0,
  1041. fontWeight:
  1042. FlutterFlowTheme.of(context)
  1043. .bodyMedium
  1044. .fontWeight,
  1045. fontStyle:
  1046. FlutterFlowTheme.of(context)
  1047. .bodyMedium
  1048. .fontStyle,
  1049. ),
  1050. ),
  1051. Text(
  1052. getJsonField(
  1053. horecagelegenheidCurrentEstablishmentInfoResponse
  1054. .jsonBody,
  1055. r'''$[:].minimaleorder''',
  1056. ).toString(),
  1057. style: FlutterFlowTheme.of(context)
  1058. .bodyMedium
  1059. .override(
  1060. font: GoogleFonts.inter(
  1061. fontWeight:
  1062. FlutterFlowTheme.of(context)
  1063. .bodyMedium
  1064. .fontWeight,
  1065. fontStyle:
  1066. FlutterFlowTheme.of(context)
  1067. .bodyMedium
  1068. .fontStyle,
  1069. ),
  1070. letterSpacing: 0.0,
  1071. fontWeight:
  1072. FlutterFlowTheme.of(context)
  1073. .bodyMedium
  1074. .fontWeight,
  1075. fontStyle:
  1076. FlutterFlowTheme.of(context)
  1077. .bodyMedium
  1078. .fontStyle,
  1079. ),
  1080. ),
  1081. Text(
  1082. getJsonField(
  1083. horecagelegenheidCurrentEstablishmentInfoResponse
  1084. .jsonBody,
  1085. r'''$[:].thuisbezorgtbetaalopties''',
  1086. ).toString(),
  1087. style: FlutterFlowTheme.of(context)
  1088. .bodyMedium
  1089. .override(
  1090. font: GoogleFonts.inter(
  1091. fontWeight:
  1092. FlutterFlowTheme.of(context)
  1093. .bodyMedium
  1094. .fontWeight,
  1095. fontStyle:
  1096. FlutterFlowTheme.of(context)
  1097. .bodyMedium
  1098. .fontStyle,
  1099. ),
  1100. letterSpacing: 0.0,
  1101. fontWeight:
  1102. FlutterFlowTheme.of(context)
  1103. .bodyMedium
  1104. .fontWeight,
  1105. fontStyle:
  1106. FlutterFlowTheme.of(context)
  1107. .bodyMedium
  1108. .fontStyle,
  1109. ),
  1110. ),
  1111. Text(
  1112. getJsonField(
  1113. horecagelegenheidCurrentEstablishmentInfoResponse
  1114. .jsonBody,
  1115. r'''$[:].bezorgdin''',
  1116. ).toString(),
  1117. style: FlutterFlowTheme.of(context)
  1118. .bodyMedium
  1119. .override(
  1120. font: GoogleFonts.inter(
  1121. fontWeight:
  1122. FlutterFlowTheme.of(context)
  1123. .bodyMedium
  1124. .fontWeight,
  1125. fontStyle:
  1126. FlutterFlowTheme.of(context)
  1127. .bodyMedium
  1128. .fontStyle,
  1129. ),
  1130. letterSpacing: 0.0,
  1131. fontWeight:
  1132. FlutterFlowTheme.of(context)
  1133. .bodyMedium
  1134. .fontWeight,
  1135. fontStyle:
  1136. FlutterFlowTheme.of(context)
  1137. .bodyMedium
  1138. .fontStyle,
  1139. ),
  1140. ),
  1141. ],
  1142. ),
  1143. ],
  1144. ),
  1145. ),
  1146. ],
  1147. ),
  1148. ),
  1149. Expanded(
  1150. child: Container(
  1151. width: 462.72,
  1152. height: 100.0,
  1153. decoration: BoxDecoration(
  1154. color: FlutterFlowTheme.of(context).secondaryBackground,
  1155. ),
  1156. child: Column(
  1157. mainAxisSize: MainAxisSize.max,
  1158. children: [
  1159. Expanded(
  1160. child: wrapWithModel(
  1161. model: _model
  1162. .horecagelegenheidEventTabelComponentCopyModel,
  1163. updateCallback: () => safeSetState(() {}),
  1164. child: Builder(builder: (_) {
  1165. return DebugFlutterFlowModelContext(
  1166. rootModel: _model.rootModel,
  1167. child:
  1168. HorecagelegenheidEventTabelComponentCopyWidget(
  1169. nid: widget!.nid!,
  1170. horecaid: widget!.nid,
  1171. ),
  1172. );
  1173. }),
  1174. ),
  1175. ),
  1176. ],
  1177. ),
  1178. ),
  1179. ),
  1180. FFButtonWidget(
  1181. onPressed: () async {
  1182. context.pushNamed(
  1183. HorecagelegenhedenOverzichtWidget.routeName,
  1184. queryParameters: {
  1185. 'plaats': serializeParam(
  1186. FFAppState().gemeenteSelectId,
  1187. ParamType.String,
  1188. ),
  1189. }.withoutNulls,
  1190. );
  1191. },
  1192. text: FFLocalizations.of(context).getText(
  1193. 'ukbd1ac9' /* Alle horecagelegenheden */,
  1194. ),
  1195. options: FFButtonOptions(
  1196. height: 40.0,
  1197. padding:
  1198. EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 0.0),
  1199. iconPadding:
  1200. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  1201. color: FlutterFlowTheme.of(context).primary,
  1202. textStyle:
  1203. FlutterFlowTheme.of(context).titleSmall.override(
  1204. font: GoogleFonts.interTight(
  1205. fontWeight: FlutterFlowTheme.of(context)
  1206. .titleSmall
  1207. .fontWeight,
  1208. fontStyle: FlutterFlowTheme.of(context)
  1209. .titleSmall
  1210. .fontStyle,
  1211. ),
  1212. color: Colors.white,
  1213. letterSpacing: 0.0,
  1214. fontWeight: FlutterFlowTheme.of(context)
  1215. .titleSmall
  1216. .fontWeight,
  1217. fontStyle: FlutterFlowTheme.of(context)
  1218. .titleSmall
  1219. .fontStyle,
  1220. ),
  1221. elevation: 0.0,
  1222. borderRadius: BorderRadius.circular(8.0),
  1223. ),
  1224. ),
  1225. ],
  1226. ),
  1227. ),
  1228. ),
  1229. );
  1230. },
  1231. );
  1232. }
  1233. }