horecagelegenheid_current_widget.dart 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246
  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 Row(
  689. mainAxisSize: MainAxisSize.max,
  690. children: List.generate(
  691. cryptocoins.length,
  692. (cryptocoinsIndex) {
  693. final cryptocoinsItem =
  694. cryptocoins[cryptocoinsIndex];
  695. return Text(
  696. cryptocoinsItem,
  697. style:
  698. FlutterFlowTheme.of(context)
  699. .bodyMedium
  700. .override(
  701. font:
  702. GoogleFonts.inter(
  703. fontWeight:
  704. FlutterFlowTheme.of(
  705. context)
  706. .bodyMedium
  707. .fontWeight,
  708. fontStyle:
  709. FlutterFlowTheme.of(
  710. context)
  711. .bodyMedium
  712. .fontStyle,
  713. ),
  714. letterSpacing: 0.0,
  715. fontWeight:
  716. FlutterFlowTheme.of(
  717. context)
  718. .bodyMedium
  719. .fontWeight,
  720. fontStyle:
  721. FlutterFlowTheme.of(
  722. context)
  723. .bodyMedium
  724. .fontStyle,
  725. ),
  726. );
  727. }),
  728. );
  729. },
  730. ),
  731. ],
  732. ),
  733. Column(
  734. mainAxisSize: MainAxisSize.max,
  735. children: [
  736. Container(
  737. width:
  738. MediaQuery.sizeOf(context).width *
  739. 0.7,
  740. height:
  741. MediaQuery.sizeOf(context).height *
  742. 0.2,
  743. child: custom_widgets.FromHTML(
  744. width:
  745. MediaQuery.sizeOf(context).width *
  746. 0.7,
  747. height: MediaQuery.sizeOf(context)
  748. .height *
  749. 0.2,
  750. HTMLParameter: valueOrDefault<String>(
  751. EstablishmentInfoCall
  752. .establshmentInhoud(
  753. horecagelegenheidCurrentEstablishmentInfoResponse
  754. .jsonBody,
  755. ),
  756. 'content',
  757. ),
  758. ),
  759. ),
  760. ],
  761. ),
  762. ],
  763. ),
  764. Column(
  765. mainAxisSize: MainAxisSize.max,
  766. children: [
  767. Text(
  768. getJsonField(
  769. horecagelegenheidCurrentEstablishmentInfoResponse
  770. .jsonBody,
  771. r'''$[:].website''',
  772. ).toString(),
  773. style: FlutterFlowTheme.of(context)
  774. .bodyMedium
  775. .override(
  776. font: GoogleFonts.inter(
  777. fontWeight:
  778. FlutterFlowTheme.of(context)
  779. .bodyMedium
  780. .fontWeight,
  781. fontStyle:
  782. FlutterFlowTheme.of(context)
  783. .bodyMedium
  784. .fontStyle,
  785. ),
  786. letterSpacing: 0.0,
  787. fontWeight:
  788. FlutterFlowTheme.of(context)
  789. .bodyMedium
  790. .fontWeight,
  791. fontStyle:
  792. FlutterFlowTheme.of(context)
  793. .bodyMedium
  794. .fontStyle,
  795. ),
  796. ),
  797. Text(
  798. getJsonField(
  799. horecagelegenheidCurrentEstablishmentInfoResponse
  800. .jsonBody,
  801. r'''$[:].menukaart''',
  802. ).toString(),
  803. style: FlutterFlowTheme.of(context)
  804. .bodyMedium
  805. .override(
  806. font: GoogleFonts.inter(
  807. fontWeight:
  808. FlutterFlowTheme.of(context)
  809. .bodyMedium
  810. .fontWeight,
  811. fontStyle:
  812. FlutterFlowTheme.of(context)
  813. .bodyMedium
  814. .fontStyle,
  815. ),
  816. letterSpacing: 0.0,
  817. fontWeight:
  818. FlutterFlowTheme.of(context)
  819. .bodyMedium
  820. .fontWeight,
  821. fontStyle:
  822. FlutterFlowTheme.of(context)
  823. .bodyMedium
  824. .fontStyle,
  825. ),
  826. ),
  827. Text(
  828. getJsonField(
  829. horecagelegenheidCurrentEstablishmentInfoResponse
  830. .jsonBody,
  831. r'''$[:].facebook''',
  832. ).toString(),
  833. style: FlutterFlowTheme.of(context)
  834. .bodyMedium
  835. .override(
  836. font: GoogleFonts.inter(
  837. fontWeight:
  838. FlutterFlowTheme.of(context)
  839. .bodyMedium
  840. .fontWeight,
  841. fontStyle:
  842. FlutterFlowTheme.of(context)
  843. .bodyMedium
  844. .fontStyle,
  845. ),
  846. letterSpacing: 0.0,
  847. fontWeight:
  848. FlutterFlowTheme.of(context)
  849. .bodyMedium
  850. .fontWeight,
  851. fontStyle:
  852. FlutterFlowTheme.of(context)
  853. .bodyMedium
  854. .fontStyle,
  855. ),
  856. ),
  857. Text(
  858. getJsonField(
  859. horecagelegenheidCurrentEstablishmentInfoResponse
  860. .jsonBody,
  861. r'''$[:].twitter''',
  862. ).toString(),
  863. style: FlutterFlowTheme.of(context)
  864. .bodyMedium
  865. .override(
  866. font: GoogleFonts.inter(
  867. fontWeight:
  868. FlutterFlowTheme.of(context)
  869. .bodyMedium
  870. .fontWeight,
  871. fontStyle:
  872. FlutterFlowTheme.of(context)
  873. .bodyMedium
  874. .fontStyle,
  875. ),
  876. letterSpacing: 0.0,
  877. fontWeight:
  878. FlutterFlowTheme.of(context)
  879. .bodyMedium
  880. .fontWeight,
  881. fontStyle:
  882. FlutterFlowTheme.of(context)
  883. .bodyMedium
  884. .fontStyle,
  885. ),
  886. ),
  887. Text(
  888. getJsonField(
  889. horecagelegenheidCurrentEstablishmentInfoResponse
  890. .jsonBody,
  891. r'''$[:].instagram''',
  892. ).toString(),
  893. style: FlutterFlowTheme.of(context)
  894. .bodyMedium
  895. .override(
  896. font: GoogleFonts.inter(
  897. fontWeight:
  898. FlutterFlowTheme.of(context)
  899. .bodyMedium
  900. .fontWeight,
  901. fontStyle:
  902. FlutterFlowTheme.of(context)
  903. .bodyMedium
  904. .fontStyle,
  905. ),
  906. letterSpacing: 0.0,
  907. fontWeight:
  908. FlutterFlowTheme.of(context)
  909. .bodyMedium
  910. .fontWeight,
  911. fontStyle:
  912. FlutterFlowTheme.of(context)
  913. .bodyMedium
  914. .fontStyle,
  915. ),
  916. ),
  917. ],
  918. ),
  919. Column(
  920. mainAxisSize: MainAxisSize.max,
  921. children: [
  922. Text(
  923. getJsonField(
  924. horecagelegenheidCurrentEstablishmentInfoResponse
  925. .jsonBody,
  926. r'''$[:].afhaalopties''',
  927. ).toString(),
  928. style: FlutterFlowTheme.of(context)
  929. .bodyMedium
  930. .override(
  931. font: GoogleFonts.inter(
  932. fontWeight:
  933. FlutterFlowTheme.of(context)
  934. .bodyMedium
  935. .fontWeight,
  936. fontStyle:
  937. FlutterFlowTheme.of(context)
  938. .bodyMedium
  939. .fontStyle,
  940. ),
  941. letterSpacing: 0.0,
  942. fontWeight:
  943. FlutterFlowTheme.of(context)
  944. .bodyMedium
  945. .fontWeight,
  946. fontStyle:
  947. FlutterFlowTheme.of(context)
  948. .bodyMedium
  949. .fontStyle,
  950. ),
  951. ),
  952. Text(
  953. getJsonField(
  954. horecagelegenheidCurrentEstablishmentInfoResponse
  955. .jsonBody,
  956. r'''$[:].bestellink''',
  957. ).toString(),
  958. style: FlutterFlowTheme.of(context)
  959. .bodyMedium
  960. .override(
  961. font: GoogleFonts.inter(
  962. fontWeight:
  963. FlutterFlowTheme.of(context)
  964. .bodyMedium
  965. .fontWeight,
  966. fontStyle:
  967. FlutterFlowTheme.of(context)
  968. .bodyMedium
  969. .fontStyle,
  970. ),
  971. letterSpacing: 0.0,
  972. fontWeight:
  973. FlutterFlowTheme.of(context)
  974. .bodyMedium
  975. .fontWeight,
  976. fontStyle:
  977. FlutterFlowTheme.of(context)
  978. .bodyMedium
  979. .fontStyle,
  980. ),
  981. ),
  982. Text(
  983. getJsonField(
  984. horecagelegenheidCurrentEstablishmentInfoResponse
  985. .jsonBody,
  986. r'''$[:].bezorgtijden''',
  987. ).toString(),
  988. style: FlutterFlowTheme.of(context)
  989. .bodyMedium
  990. .override(
  991. font: GoogleFonts.inter(
  992. fontWeight:
  993. FlutterFlowTheme.of(context)
  994. .bodyMedium
  995. .fontWeight,
  996. fontStyle:
  997. FlutterFlowTheme.of(context)
  998. .bodyMedium
  999. .fontStyle,
  1000. ),
  1001. letterSpacing: 0.0,
  1002. fontWeight:
  1003. FlutterFlowTheme.of(context)
  1004. .bodyMedium
  1005. .fontWeight,
  1006. fontStyle:
  1007. FlutterFlowTheme.of(context)
  1008. .bodyMedium
  1009. .fontStyle,
  1010. ),
  1011. ),
  1012. Text(
  1013. getJsonField(
  1014. horecagelegenheidCurrentEstablishmentInfoResponse
  1015. .jsonBody,
  1016. r'''$[:].bezorgkosten''',
  1017. ).toString(),
  1018. style: FlutterFlowTheme.of(context)
  1019. .bodyMedium
  1020. .override(
  1021. font: GoogleFonts.inter(
  1022. fontWeight:
  1023. FlutterFlowTheme.of(context)
  1024. .bodyMedium
  1025. .fontWeight,
  1026. fontStyle:
  1027. FlutterFlowTheme.of(context)
  1028. .bodyMedium
  1029. .fontStyle,
  1030. ),
  1031. letterSpacing: 0.0,
  1032. fontWeight:
  1033. FlutterFlowTheme.of(context)
  1034. .bodyMedium
  1035. .fontWeight,
  1036. fontStyle:
  1037. FlutterFlowTheme.of(context)
  1038. .bodyMedium
  1039. .fontStyle,
  1040. ),
  1041. ),
  1042. Text(
  1043. getJsonField(
  1044. horecagelegenheidCurrentEstablishmentInfoResponse
  1045. .jsonBody,
  1046. r'''$[:].minimaleorder''',
  1047. ).toString(),
  1048. style: FlutterFlowTheme.of(context)
  1049. .bodyMedium
  1050. .override(
  1051. font: GoogleFonts.inter(
  1052. fontWeight:
  1053. FlutterFlowTheme.of(context)
  1054. .bodyMedium
  1055. .fontWeight,
  1056. fontStyle:
  1057. FlutterFlowTheme.of(context)
  1058. .bodyMedium
  1059. .fontStyle,
  1060. ),
  1061. letterSpacing: 0.0,
  1062. fontWeight:
  1063. FlutterFlowTheme.of(context)
  1064. .bodyMedium
  1065. .fontWeight,
  1066. fontStyle:
  1067. FlutterFlowTheme.of(context)
  1068. .bodyMedium
  1069. .fontStyle,
  1070. ),
  1071. ),
  1072. Text(
  1073. getJsonField(
  1074. horecagelegenheidCurrentEstablishmentInfoResponse
  1075. .jsonBody,
  1076. r'''$[:].thuisbezorgtbetaalopties''',
  1077. ).toString(),
  1078. style: FlutterFlowTheme.of(context)
  1079. .bodyMedium
  1080. .override(
  1081. font: GoogleFonts.inter(
  1082. fontWeight:
  1083. FlutterFlowTheme.of(context)
  1084. .bodyMedium
  1085. .fontWeight,
  1086. fontStyle:
  1087. FlutterFlowTheme.of(context)
  1088. .bodyMedium
  1089. .fontStyle,
  1090. ),
  1091. letterSpacing: 0.0,
  1092. fontWeight:
  1093. FlutterFlowTheme.of(context)
  1094. .bodyMedium
  1095. .fontWeight,
  1096. fontStyle:
  1097. FlutterFlowTheme.of(context)
  1098. .bodyMedium
  1099. .fontStyle,
  1100. ),
  1101. ),
  1102. Text(
  1103. getJsonField(
  1104. horecagelegenheidCurrentEstablishmentInfoResponse
  1105. .jsonBody,
  1106. r'''$[:].bezorgdin''',
  1107. ).toString(),
  1108. style: FlutterFlowTheme.of(context)
  1109. .bodyMedium
  1110. .override(
  1111. font: GoogleFonts.inter(
  1112. fontWeight:
  1113. FlutterFlowTheme.of(context)
  1114. .bodyMedium
  1115. .fontWeight,
  1116. fontStyle:
  1117. FlutterFlowTheme.of(context)
  1118. .bodyMedium
  1119. .fontStyle,
  1120. ),
  1121. letterSpacing: 0.0,
  1122. fontWeight:
  1123. FlutterFlowTheme.of(context)
  1124. .bodyMedium
  1125. .fontWeight,
  1126. fontStyle:
  1127. FlutterFlowTheme.of(context)
  1128. .bodyMedium
  1129. .fontStyle,
  1130. ),
  1131. ),
  1132. ],
  1133. ),
  1134. ],
  1135. ),
  1136. ),
  1137. ],
  1138. ),
  1139. ),
  1140. Expanded(
  1141. child: Container(
  1142. width: 462.72,
  1143. height: 100.0,
  1144. decoration: BoxDecoration(
  1145. color: FlutterFlowTheme.of(context).secondaryBackground,
  1146. ),
  1147. child: Column(
  1148. mainAxisSize: MainAxisSize.max,
  1149. children: [
  1150. Expanded(
  1151. child: wrapWithModel(
  1152. model: _model
  1153. .horecagelegenheidEventTabelComponentCopyModel,
  1154. updateCallback: () => safeSetState(() {}),
  1155. child: Builder(builder: (_) {
  1156. return DebugFlutterFlowModelContext(
  1157. rootModel: _model.rootModel,
  1158. child:
  1159. HorecagelegenheidEventTabelComponentCopyWidget(
  1160. nid: widget!.nid!,
  1161. horecaid: widget!.nid,
  1162. ),
  1163. );
  1164. }),
  1165. ),
  1166. ),
  1167. ],
  1168. ),
  1169. ),
  1170. ),
  1171. FFButtonWidget(
  1172. onPressed: () async {
  1173. context.pushNamed(
  1174. HorecagelegenhedenOverzichtWidget.routeName,
  1175. queryParameters: {
  1176. 'plaats': serializeParam(
  1177. FFAppState().gemeenteSelectId,
  1178. ParamType.String,
  1179. ),
  1180. }.withoutNulls,
  1181. );
  1182. },
  1183. text: FFLocalizations.of(context).getText(
  1184. 'ukbd1ac9' /* Alle horecagelegenheden */,
  1185. ),
  1186. options: FFButtonOptions(
  1187. height: 40.0,
  1188. padding:
  1189. EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 0.0),
  1190. iconPadding:
  1191. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  1192. color: FlutterFlowTheme.of(context).primary,
  1193. textStyle:
  1194. FlutterFlowTheme.of(context).titleSmall.override(
  1195. font: GoogleFonts.interTight(
  1196. fontWeight: FlutterFlowTheme.of(context)
  1197. .titleSmall
  1198. .fontWeight,
  1199. fontStyle: FlutterFlowTheme.of(context)
  1200. .titleSmall
  1201. .fontStyle,
  1202. ),
  1203. color: Colors.white,
  1204. letterSpacing: 0.0,
  1205. fontWeight: FlutterFlowTheme.of(context)
  1206. .titleSmall
  1207. .fontWeight,
  1208. fontStyle: FlutterFlowTheme.of(context)
  1209. .titleSmall
  1210. .fontStyle,
  1211. ),
  1212. elevation: 0.0,
  1213. borderRadius: BorderRadius.circular(8.0),
  1214. ),
  1215. ),
  1216. ],
  1217. ),
  1218. ),
  1219. ),
  1220. );
  1221. },
  1222. );
  1223. }
  1224. }