horecagelegenheid_current_widget.dart 83 KB

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