horecagelegenheid_current_widget.dart 90 KB

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