horecagelegenheid_current_widget.dart 59 KB

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