horecagelegenheid_current_widget.dart 85 KB

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