horecagelegenheid_current_widget.dart 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535
  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_ad_banner.dart';
  5. import '/flutter_flow/flutter_flow_icon_button.dart';
  6. import '/flutter_flow/flutter_flow_theme.dart';
  7. import '/flutter_flow/flutter_flow_util.dart';
  8. import '/flutter_flow/flutter_flow_widgets.dart';
  9. import '/horecagelegenhedenoverzicht/horecagelegenheid_event_tabel_component_copy/horecagelegenheid_event_tabel_component_copy_widget.dart';
  10. import '/shared/drawer_component/drawer_component_widget.dart';
  11. import 'dart:ui';
  12. import '/custom_code/actions/index.dart' as actions;
  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: FlutterFlowTheme.of(context).primary,
  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(
  177. color: FlutterFlowTheme.of(context).secondary),
  178. automaticallyImplyLeading: false,
  179. actions: [],
  180. flexibleSpace: FlexibleSpaceBar(
  181. background: Row(
  182. mainAxisSize: MainAxisSize.max,
  183. children: [
  184. wrapWithModel(
  185. model: _model.headerButtonsComponentModel,
  186. updateCallback: () => safeSetState(() {}),
  187. child: Builder(builder: (_) {
  188. return DebugFlutterFlowModelContext(
  189. rootModel: _model.rootModel,
  190. child: HeaderButtonsComponentWidget(),
  191. );
  192. }),
  193. ),
  194. ],
  195. ),
  196. centerTitle: true,
  197. expandedTitleScale: 1.0,
  198. ),
  199. bottom: PreferredSize(
  200. preferredSize: Size.fromHeight(70.0),
  201. child: Container(),
  202. ),
  203. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  204. elevation: 2.0,
  205. ),
  206. ),
  207. body: SafeArea(
  208. top: true,
  209. child: Column(
  210. mainAxisSize: MainAxisSize.max,
  211. children: [
  212. Stack(
  213. children: [
  214. Container(
  215. width: 366.1,
  216. height: 281.5,
  217. decoration: BoxDecoration(
  218. color:
  219. FlutterFlowTheme.of(context).secondaryBackground,
  220. ),
  221. child: Builder(
  222. builder: (context) {
  223. final fotoos =
  224. EstablishmentInfoCall.establishmentFotoos(
  225. horecagelegenheidCurrentEstablishmentInfoResponse
  226. .jsonBody,
  227. )?.toList() ??
  228. [];
  229. if (fotoos.isEmpty) {
  230. return Image.asset(
  231. 'assets/images/logo800px.png',
  232. );
  233. }
  234. _model.debugGeneratorVariables[
  235. 'fotoos${fotoos.length > 100 ? ' (first 100)' : ''}'] =
  236. debugSerializeParam(
  237. fotoos.take(100),
  238. ParamType.String,
  239. isList: true,
  240. link:
  241. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  242. name: 'String',
  243. nullable: false,
  244. );
  245. debugLogWidgetClass(_model);
  246. return Container(
  247. width: double.infinity,
  248. height: 200.0,
  249. child: CarouselSlider.builder(
  250. itemCount: fotoos.length,
  251. itemBuilder: (context, fotoosIndex, _) {
  252. final fotoosItem = fotoos[fotoosIndex];
  253. return Builder(
  254. builder: (context) {
  255. if (fotoosItem != null &&
  256. fotoosItem != '') {
  257. return ClipRRect(
  258. borderRadius:
  259. BorderRadius.circular(8.0),
  260. child: OctoImage(
  261. placeholderBuilder: (_) {
  262. final blurHash =
  263. 'L6PZfSi_.AyE_3t7t7R**0o#DgR4';
  264. if (!validateBlurhash(blurHash)) {
  265. return const SizedBox.shrink();
  266. }
  267. return SizedBox.expand(
  268. child: Image(
  269. image:
  270. BlurHashImage(blurHash),
  271. fit: BoxFit.cover,
  272. ),
  273. );
  274. },
  275. image: CachedNetworkImageProvider(
  276. fotoosItem,
  277. ),
  278. width: 200.0,
  279. height: 200.0,
  280. fit: BoxFit.fitWidth,
  281. ),
  282. );
  283. } else {
  284. return Icon(
  285. Icons.image_not_supported,
  286. color: FlutterFlowTheme.of(context)
  287. .primaryText,
  288. size: 24.0,
  289. );
  290. }
  291. },
  292. );
  293. },
  294. carouselController:
  295. _model.carouselController ??=
  296. CarouselSliderController(),
  297. options: CarouselOptions(
  298. initialPage:
  299. max(0, min(1, fotoos.length - 1)),
  300. viewportFraction: 0.5,
  301. disableCenter: true,
  302. enlargeCenterPage: true,
  303. enlargeFactor: 0.25,
  304. enableInfiniteScroll: true,
  305. scrollDirection: Axis.horizontal,
  306. autoPlay: false,
  307. onPageChanged: (index, _) =>
  308. _model.carouselCurrentIndex = index,
  309. ),
  310. ),
  311. );
  312. },
  313. ),
  314. ),
  315. Align(
  316. alignment: AlignmentDirectional(1.0, 0.0),
  317. child: AlignedTooltip(
  318. content: Padding(
  319. padding: EdgeInsets.all(4.0),
  320. child: Text(
  321. FFLocalizations.of(context).getText(
  322. 'gh9ciiqo' /* Favoriet */,
  323. ),
  324. style: FlutterFlowTheme.of(context)
  325. .bodyLarge
  326. .override(
  327. font: GoogleFonts.roboto(
  328. fontWeight: FlutterFlowTheme.of(context)
  329. .bodyLarge
  330. .fontWeight,
  331. fontStyle: FlutterFlowTheme.of(context)
  332. .bodyLarge
  333. .fontStyle,
  334. ),
  335. letterSpacing: 0.0,
  336. fontWeight: FlutterFlowTheme.of(context)
  337. .bodyLarge
  338. .fontWeight,
  339. fontStyle: FlutterFlowTheme.of(context)
  340. .bodyLarge
  341. .fontStyle,
  342. ),
  343. ),
  344. ),
  345. offset: 4.0,
  346. preferredDirection: AxisDirection.down,
  347. borderRadius: BorderRadius.circular(8.0),
  348. backgroundColor:
  349. FlutterFlowTheme.of(context).secondaryBackground,
  350. elevation: 4.0,
  351. tailBaseWidth: 24.0,
  352. tailLength: 12.0,
  353. waitDuration: Duration(milliseconds: 100),
  354. showDuration: Duration(milliseconds: 1500),
  355. triggerMode: TooltipTriggerMode.tap,
  356. child: Builder(
  357. builder: (context) {
  358. if (FFAppState()
  359. .favorieteHorecaNids
  360. .contains(widget!.nid)) {
  361. return FlutterFlowIconButton(
  362. borderRadius: 8.0,
  363. buttonSize: 32.0,
  364. fillColor: Colors.white,
  365. icon: Icon(
  366. Icons.favorite,
  367. color: FlutterFlowTheme.of(context).primary,
  368. size: 24.0,
  369. ),
  370. onPressed: () async {
  371. FFAppState().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: FlutterFlowTheme.of(context).primary,
  393. size: 24.0,
  394. ),
  395. onPressed: () async {
  396. FFAppState()
  397. .addToFavorieteHorecaNids(widget!.nid!);
  398. safeSetState(() {});
  399. await actions.drupalRequest(
  400. 'POST',
  401. 'https://uitgaanskrant.com/nl/flutterdrup/favorieten/flag.json',
  402. FFAppState().userSessionname,
  403. FFAppState().userSessionid,
  404. FFAppState().userToken,
  405. functions
  406. .favorietenBodyNode(widget!.nid!)!,
  407. );
  408. },
  409. );
  410. }
  411. },
  412. ),
  413. ),
  414. ),
  415. ],
  416. ),
  417. if (getJsonField(
  418. horecagelegenheidCurrentEstablishmentInfoResponse
  419. .jsonBody,
  420. r'''$[:].titel''',
  421. ) !=
  422. null)
  423. Text(
  424. valueOrDefault<String>(
  425. EstablishmentInfoCall.establshmentTitel(
  426. horecagelegenheidCurrentEstablishmentInfoResponse
  427. .jsonBody,
  428. ),
  429. 'title',
  430. ),
  431. style:
  432. FlutterFlowTheme.of(context).headlineMedium.override(
  433. font: GoogleFonts.roboto(
  434. fontWeight: FlutterFlowTheme.of(context)
  435. .headlineMedium
  436. .fontWeight,
  437. fontStyle: FlutterFlowTheme.of(context)
  438. .headlineMedium
  439. .fontStyle,
  440. ),
  441. letterSpacing: 0.0,
  442. fontWeight: FlutterFlowTheme.of(context)
  443. .headlineMedium
  444. .fontWeight,
  445. fontStyle: FlutterFlowTheme.of(context)
  446. .headlineMedium
  447. .fontStyle,
  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.roboto(
  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.roboto(
  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).secondary,
  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. Column(
  537. mainAxisSize: MainAxisSize.max,
  538. children: [
  539. if (getJsonField(
  540. horecagelegenheidCurrentEstablishmentInfoResponse
  541. .jsonBody,
  542. r'''$[:].logo''',
  543. ) !=
  544. null)
  545. ClipRRect(
  546. borderRadius: BorderRadius.circular(8.0),
  547. child: CachedNetworkImage(
  548. fadeInDuration:
  549. Duration(milliseconds: 500),
  550. fadeOutDuration:
  551. Duration(milliseconds: 500),
  552. imageUrl: valueOrDefault<String>(
  553. EstablishmentInfoCall
  554. .establshmentLogo(
  555. horecagelegenheidCurrentEstablishmentInfoResponse
  556. .jsonBody,
  557. ),
  558. 'logo',
  559. ),
  560. width: 200.0,
  561. height: 200.0,
  562. fit: BoxFit.cover,
  563. ),
  564. ),
  565. if (EstablishmentInfoCall.establishmentAdres(
  566. horecagelegenheidCurrentEstablishmentInfoResponse
  567. .jsonBody,
  568. ) !=
  569. null &&
  570. EstablishmentInfoCall.establishmentAdres(
  571. horecagelegenheidCurrentEstablishmentInfoResponse
  572. .jsonBody,
  573. ) !=
  574. '')
  575. Text(
  576. getJsonField(
  577. horecagelegenheidCurrentEstablishmentInfoResponse
  578. .jsonBody,
  579. r'''$[:].adres''',
  580. ).toString(),
  581. style: FlutterFlowTheme.of(context)
  582. .bodyMedium
  583. .override(
  584. font: GoogleFonts.roboto(
  585. fontWeight:
  586. FlutterFlowTheme.of(context)
  587. .bodyMedium
  588. .fontWeight,
  589. fontStyle:
  590. FlutterFlowTheme.of(context)
  591. .bodyMedium
  592. .fontStyle,
  593. ),
  594. letterSpacing: 0.0,
  595. fontWeight:
  596. FlutterFlowTheme.of(context)
  597. .bodyMedium
  598. .fontWeight,
  599. fontStyle:
  600. FlutterFlowTheme.of(context)
  601. .bodyMedium
  602. .fontStyle,
  603. ),
  604. ),
  605. if (EstablishmentInfoCall.establishmentPlaats(
  606. horecagelegenheidCurrentEstablishmentInfoResponse
  607. .jsonBody,
  608. ) !=
  609. null &&
  610. EstablishmentInfoCall.establishmentPlaats(
  611. horecagelegenheidCurrentEstablishmentInfoResponse
  612. .jsonBody,
  613. ) !=
  614. '')
  615. Text(
  616. getJsonField(
  617. horecagelegenheidCurrentEstablishmentInfoResponse
  618. .jsonBody,
  619. r'''$[:].plaats''',
  620. ).toString(),
  621. style: FlutterFlowTheme.of(context)
  622. .bodyMedium
  623. .override(
  624. font: GoogleFonts.roboto(
  625. fontWeight:
  626. FlutterFlowTheme.of(context)
  627. .bodyMedium
  628. .fontWeight,
  629. fontStyle:
  630. FlutterFlowTheme.of(context)
  631. .bodyMedium
  632. .fontStyle,
  633. ),
  634. letterSpacing: 0.0,
  635. fontWeight:
  636. FlutterFlowTheme.of(context)
  637. .bodyMedium
  638. .fontWeight,
  639. fontStyle:
  640. FlutterFlowTheme.of(context)
  641. .bodyMedium
  642. .fontStyle,
  643. ),
  644. ),
  645. if (EstablishmentInfoCall
  646. .establishmentTelefoonnummer(
  647. horecagelegenheidCurrentEstablishmentInfoResponse
  648. .jsonBody,
  649. ) !=
  650. null &&
  651. EstablishmentInfoCall
  652. .establishmentTelefoonnummer(
  653. horecagelegenheidCurrentEstablishmentInfoResponse
  654. .jsonBody,
  655. ) !=
  656. '')
  657. Text(
  658. getJsonField(
  659. horecagelegenheidCurrentEstablishmentInfoResponse
  660. .jsonBody,
  661. r'''$[:].telefoonnummer''',
  662. ).toString(),
  663. style: FlutterFlowTheme.of(context)
  664. .bodyMedium
  665. .override(
  666. font: GoogleFonts.roboto(
  667. fontWeight:
  668. FlutterFlowTheme.of(context)
  669. .bodyMedium
  670. .fontWeight,
  671. fontStyle:
  672. FlutterFlowTheme.of(context)
  673. .bodyMedium
  674. .fontStyle,
  675. ),
  676. letterSpacing: 0.0,
  677. fontWeight:
  678. FlutterFlowTheme.of(context)
  679. .bodyMedium
  680. .fontWeight,
  681. fontStyle:
  682. FlutterFlowTheme.of(context)
  683. .bodyMedium
  684. .fontStyle,
  685. ),
  686. ),
  687. if (EstablishmentInfoCall.establishmentEmail(
  688. horecagelegenheidCurrentEstablishmentInfoResponse
  689. .jsonBody,
  690. ) !=
  691. null &&
  692. EstablishmentInfoCall.establishmentEmail(
  693. horecagelegenheidCurrentEstablishmentInfoResponse
  694. .jsonBody,
  695. ) !=
  696. '')
  697. Text(
  698. getJsonField(
  699. horecagelegenheidCurrentEstablishmentInfoResponse
  700. .jsonBody,
  701. r'''$[:].email''',
  702. ).toString(),
  703. style: FlutterFlowTheme.of(context)
  704. .bodyMedium
  705. .override(
  706. font: GoogleFonts.roboto(
  707. fontWeight:
  708. FlutterFlowTheme.of(context)
  709. .bodyMedium
  710. .fontWeight,
  711. fontStyle:
  712. FlutterFlowTheme.of(context)
  713. .bodyMedium
  714. .fontStyle,
  715. ),
  716. letterSpacing: 0.0,
  717. fontWeight:
  718. FlutterFlowTheme.of(context)
  719. .bodyMedium
  720. .fontWeight,
  721. fontStyle:
  722. FlutterFlowTheme.of(context)
  723. .bodyMedium
  724. .fontStyle,
  725. ),
  726. ),
  727. if (EstablishmentInfoCall.establshmentKvk(
  728. horecagelegenheidCurrentEstablishmentInfoResponse
  729. .jsonBody,
  730. ) !=
  731. null &&
  732. EstablishmentInfoCall.establshmentKvk(
  733. horecagelegenheidCurrentEstablishmentInfoResponse
  734. .jsonBody,
  735. ) !=
  736. '')
  737. Text(
  738. getJsonField(
  739. horecagelegenheidCurrentEstablishmentInfoResponse
  740. .jsonBody,
  741. r'''$[:].kvk''',
  742. ).toString(),
  743. style: FlutterFlowTheme.of(context)
  744. .bodyMedium
  745. .override(
  746. font: GoogleFonts.roboto(
  747. fontWeight:
  748. FlutterFlowTheme.of(context)
  749. .bodyMedium
  750. .fontWeight,
  751. fontStyle:
  752. FlutterFlowTheme.of(context)
  753. .bodyMedium
  754. .fontStyle,
  755. ),
  756. letterSpacing: 0.0,
  757. fontWeight:
  758. FlutterFlowTheme.of(context)
  759. .bodyMedium
  760. .fontWeight,
  761. fontStyle:
  762. FlutterFlowTheme.of(context)
  763. .bodyMedium
  764. .fontStyle,
  765. ),
  766. ),
  767. Builder(
  768. builder: (context) {
  769. final cryptocoins = EstablishmentInfoCall
  770. .establishmentCryptocoins(
  771. horecagelegenheidCurrentEstablishmentInfoResponse
  772. .jsonBody,
  773. )?.toList() ??
  774. [];
  775. _model.debugGeneratorVariables[
  776. 'cryptocoins${cryptocoins.length > 100 ? ' (first 100)' : ''}'] =
  777. debugSerializeParam(
  778. cryptocoins.take(100),
  779. ParamType.String,
  780. isList: true,
  781. link:
  782. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  783. name: 'String',
  784. nullable: false,
  785. );
  786. debugLogWidgetClass(_model);
  787. return Wrap(
  788. spacing: 0.0,
  789. runSpacing: 0.0,
  790. alignment: WrapAlignment.start,
  791. crossAxisAlignment:
  792. WrapCrossAlignment.start,
  793. direction: Axis.horizontal,
  794. runAlignment: WrapAlignment.start,
  795. verticalDirection:
  796. VerticalDirection.down,
  797. clipBehavior: Clip.none,
  798. children:
  799. List.generate(cryptocoins.length,
  800. (cryptocoinsIndex) {
  801. final cryptocoinsItem =
  802. cryptocoins[cryptocoinsIndex];
  803. return Text(
  804. cryptocoinsItem,
  805. style: FlutterFlowTheme.of(context)
  806. .bodyMedium
  807. .override(
  808. font: GoogleFonts.roboto(
  809. fontWeight:
  810. FlutterFlowTheme.of(
  811. context)
  812. .bodyMedium
  813. .fontWeight,
  814. fontStyle:
  815. FlutterFlowTheme.of(
  816. context)
  817. .bodyMedium
  818. .fontStyle,
  819. ),
  820. letterSpacing: 0.0,
  821. fontWeight:
  822. FlutterFlowTheme.of(
  823. context)
  824. .bodyMedium
  825. .fontWeight,
  826. fontStyle:
  827. FlutterFlowTheme.of(
  828. context)
  829. .bodyMedium
  830. .fontStyle,
  831. ),
  832. );
  833. }),
  834. );
  835. },
  836. ),
  837. wrapWithModel(
  838. model: _model.googleMapsIconButtonModel,
  839. updateCallback: () => safeSetState(() {}),
  840. child: Builder(builder: (_) {
  841. return DebugFlutterFlowModelContext(
  842. rootModel: _model.rootModel,
  843. child: GoogleMapsIconButtonWidget(
  844. adres: EstablishmentInfoCall
  845. .establishmentAdres(
  846. horecagelegenheidCurrentEstablishmentInfoResponse
  847. .jsonBody,
  848. )!,
  849. plaats: EstablishmentInfoCall
  850. .establishmentPlaats(
  851. horecagelegenheidCurrentEstablishmentInfoResponse
  852. .jsonBody,
  853. )!,
  854. ),
  855. );
  856. }),
  857. ),
  858. ],
  859. ),
  860. Column(
  861. mainAxisSize: MainAxisSize.max,
  862. children: [
  863. if (EstablishmentInfoCall
  864. .establishmentWebsite(
  865. horecagelegenheidCurrentEstablishmentInfoResponse
  866. .jsonBody,
  867. ) !=
  868. null &&
  869. EstablishmentInfoCall
  870. .establishmentWebsite(
  871. horecagelegenheidCurrentEstablishmentInfoResponse
  872. .jsonBody,
  873. ) !=
  874. '')
  875. InkWell(
  876. splashColor: Colors.transparent,
  877. focusColor: Colors.transparent,
  878. hoverColor: Colors.transparent,
  879. highlightColor: Colors.transparent,
  880. onTap: () async {
  881. await launchURL(getJsonField(
  882. horecagelegenheidCurrentEstablishmentInfoResponse
  883. .jsonBody,
  884. r'''$[:].website''',
  885. ).toString());
  886. },
  887. child: Text(
  888. getJsonField(
  889. horecagelegenheidCurrentEstablishmentInfoResponse
  890. .jsonBody,
  891. r'''$[:].website''',
  892. ).toString(),
  893. style: FlutterFlowTheme.of(context)
  894. .bodyMedium
  895. .override(
  896. font: GoogleFonts.roboto(
  897. fontWeight:
  898. FlutterFlowTheme.of(context)
  899. .bodyMedium
  900. .fontWeight,
  901. fontStyle:
  902. FlutterFlowTheme.of(context)
  903. .bodyMedium
  904. .fontStyle,
  905. ),
  906. letterSpacing: 0.0,
  907. fontWeight:
  908. FlutterFlowTheme.of(context)
  909. .bodyMedium
  910. .fontWeight,
  911. fontStyle:
  912. FlutterFlowTheme.of(context)
  913. .bodyMedium
  914. .fontStyle,
  915. ),
  916. ),
  917. ),
  918. if (EstablishmentInfoCall
  919. .establishmentMenukaart(
  920. horecagelegenheidCurrentEstablishmentInfoResponse
  921. .jsonBody,
  922. ) !=
  923. null &&
  924. EstablishmentInfoCall
  925. .establishmentMenukaart(
  926. horecagelegenheidCurrentEstablishmentInfoResponse
  927. .jsonBody,
  928. ) !=
  929. '')
  930. InkWell(
  931. splashColor: Colors.transparent,
  932. focusColor: Colors.transparent,
  933. hoverColor: Colors.transparent,
  934. highlightColor: Colors.transparent,
  935. onTap: () async {
  936. await launchURL(getJsonField(
  937. horecagelegenheidCurrentEstablishmentInfoResponse
  938. .jsonBody,
  939. r'''$[:].menukaart''',
  940. ).toString());
  941. },
  942. child: Text(
  943. getJsonField(
  944. horecagelegenheidCurrentEstablishmentInfoResponse
  945. .jsonBody,
  946. r'''$[:].menukaart''',
  947. ).toString(),
  948. style: FlutterFlowTheme.of(context)
  949. .bodyMedium
  950. .override(
  951. font: GoogleFonts.roboto(
  952. fontWeight:
  953. FlutterFlowTheme.of(context)
  954. .bodyMedium
  955. .fontWeight,
  956. fontStyle:
  957. FlutterFlowTheme.of(context)
  958. .bodyMedium
  959. .fontStyle,
  960. ),
  961. letterSpacing: 0.0,
  962. fontWeight:
  963. FlutterFlowTheme.of(context)
  964. .bodyMedium
  965. .fontWeight,
  966. fontStyle:
  967. FlutterFlowTheme.of(context)
  968. .bodyMedium
  969. .fontStyle,
  970. ),
  971. ),
  972. ),
  973. if (EstablishmentInfoCall
  974. .establishmentFacebook(
  975. horecagelegenheidCurrentEstablishmentInfoResponse
  976. .jsonBody,
  977. ) !=
  978. null &&
  979. EstablishmentInfoCall
  980. .establishmentFacebook(
  981. horecagelegenheidCurrentEstablishmentInfoResponse
  982. .jsonBody,
  983. ) !=
  984. '')
  985. InkWell(
  986. splashColor: Colors.transparent,
  987. focusColor: Colors.transparent,
  988. hoverColor: Colors.transparent,
  989. highlightColor: Colors.transparent,
  990. onTap: () async {
  991. await launchURL(getJsonField(
  992. horecagelegenheidCurrentEstablishmentInfoResponse
  993. .jsonBody,
  994. r'''$[:].facebook''',
  995. ).toString());
  996. },
  997. child: Text(
  998. getJsonField(
  999. horecagelegenheidCurrentEstablishmentInfoResponse
  1000. .jsonBody,
  1001. r'''$[:].facebook''',
  1002. ).toString(),
  1003. style: FlutterFlowTheme.of(context)
  1004. .bodyMedium
  1005. .override(
  1006. font: GoogleFonts.roboto(
  1007. fontWeight:
  1008. FlutterFlowTheme.of(context)
  1009. .bodyMedium
  1010. .fontWeight,
  1011. fontStyle:
  1012. FlutterFlowTheme.of(context)
  1013. .bodyMedium
  1014. .fontStyle,
  1015. ),
  1016. letterSpacing: 0.0,
  1017. fontWeight:
  1018. FlutterFlowTheme.of(context)
  1019. .bodyMedium
  1020. .fontWeight,
  1021. fontStyle:
  1022. FlutterFlowTheme.of(context)
  1023. .bodyMedium
  1024. .fontStyle,
  1025. ),
  1026. ),
  1027. ),
  1028. if (EstablishmentInfoCall
  1029. .establishmentTwitter(
  1030. horecagelegenheidCurrentEstablishmentInfoResponse
  1031. .jsonBody,
  1032. ) !=
  1033. null &&
  1034. EstablishmentInfoCall
  1035. .establishmentTwitter(
  1036. horecagelegenheidCurrentEstablishmentInfoResponse
  1037. .jsonBody,
  1038. ) !=
  1039. '')
  1040. InkWell(
  1041. splashColor: Colors.transparent,
  1042. focusColor: Colors.transparent,
  1043. hoverColor: Colors.transparent,
  1044. highlightColor: Colors.transparent,
  1045. onTap: () async {
  1046. await launchURL(getJsonField(
  1047. horecagelegenheidCurrentEstablishmentInfoResponse
  1048. .jsonBody,
  1049. r'''$[:].twitter''',
  1050. ).toString());
  1051. },
  1052. child: Text(
  1053. getJsonField(
  1054. horecagelegenheidCurrentEstablishmentInfoResponse
  1055. .jsonBody,
  1056. r'''$[:].twitter''',
  1057. ).toString(),
  1058. style: FlutterFlowTheme.of(context)
  1059. .bodyMedium
  1060. .override(
  1061. font: GoogleFonts.roboto(
  1062. fontWeight:
  1063. FlutterFlowTheme.of(context)
  1064. .bodyMedium
  1065. .fontWeight,
  1066. fontStyle:
  1067. FlutterFlowTheme.of(context)
  1068. .bodyMedium
  1069. .fontStyle,
  1070. ),
  1071. letterSpacing: 0.0,
  1072. fontWeight:
  1073. FlutterFlowTheme.of(context)
  1074. .bodyMedium
  1075. .fontWeight,
  1076. fontStyle:
  1077. FlutterFlowTheme.of(context)
  1078. .bodyMedium
  1079. .fontStyle,
  1080. ),
  1081. ),
  1082. ),
  1083. if (EstablishmentInfoCall
  1084. .establishmentInstagram(
  1085. horecagelegenheidCurrentEstablishmentInfoResponse
  1086. .jsonBody,
  1087. ) !=
  1088. null &&
  1089. EstablishmentInfoCall
  1090. .establishmentInstagram(
  1091. horecagelegenheidCurrentEstablishmentInfoResponse
  1092. .jsonBody,
  1093. ) !=
  1094. '')
  1095. InkWell(
  1096. splashColor: Colors.transparent,
  1097. focusColor: Colors.transparent,
  1098. hoverColor: Colors.transparent,
  1099. highlightColor: Colors.transparent,
  1100. onTap: () async {
  1101. await launchURL(getJsonField(
  1102. horecagelegenheidCurrentEstablishmentInfoResponse
  1103. .jsonBody,
  1104. r'''$[:].instagram''',
  1105. ).toString());
  1106. },
  1107. child: Text(
  1108. getJsonField(
  1109. horecagelegenheidCurrentEstablishmentInfoResponse
  1110. .jsonBody,
  1111. r'''$[:].instagram''',
  1112. ).toString(),
  1113. style: FlutterFlowTheme.of(context)
  1114. .bodyMedium
  1115. .override(
  1116. font: GoogleFonts.roboto(
  1117. fontWeight:
  1118. FlutterFlowTheme.of(context)
  1119. .bodyMedium
  1120. .fontWeight,
  1121. fontStyle:
  1122. FlutterFlowTheme.of(context)
  1123. .bodyMedium
  1124. .fontStyle,
  1125. ),
  1126. letterSpacing: 0.0,
  1127. fontWeight:
  1128. FlutterFlowTheme.of(context)
  1129. .bodyMedium
  1130. .fontWeight,
  1131. fontStyle:
  1132. FlutterFlowTheme.of(context)
  1133. .bodyMedium
  1134. .fontStyle,
  1135. ),
  1136. ),
  1137. ),
  1138. ],
  1139. ),
  1140. Column(
  1141. mainAxisSize: MainAxisSize.max,
  1142. children: [
  1143. Text(
  1144. getJsonField(
  1145. horecagelegenheidCurrentEstablishmentInfoResponse
  1146. .jsonBody,
  1147. r'''$[:].afhaalopties''',
  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. letterSpacing: 0.0,
  1163. fontWeight:
  1164. FlutterFlowTheme.of(context)
  1165. .bodyMedium
  1166. .fontWeight,
  1167. fontStyle:
  1168. FlutterFlowTheme.of(context)
  1169. .bodyMedium
  1170. .fontStyle,
  1171. ),
  1172. ),
  1173. if (EstablishmentInfoCall
  1174. .establshmentBestellink(
  1175. horecagelegenheidCurrentEstablishmentInfoResponse
  1176. .jsonBody,
  1177. ) !=
  1178. null &&
  1179. EstablishmentInfoCall
  1180. .establshmentBestellink(
  1181. horecagelegenheidCurrentEstablishmentInfoResponse
  1182. .jsonBody,
  1183. ) !=
  1184. '')
  1185. InkWell(
  1186. splashColor: Colors.transparent,
  1187. focusColor: Colors.transparent,
  1188. hoverColor: Colors.transparent,
  1189. highlightColor: Colors.transparent,
  1190. onTap: () async {
  1191. await launchURL(getJsonField(
  1192. horecagelegenheidCurrentEstablishmentInfoResponse
  1193. .jsonBody,
  1194. r'''$[:].bestellink''',
  1195. ).toString());
  1196. },
  1197. child: Text(
  1198. getJsonField(
  1199. horecagelegenheidCurrentEstablishmentInfoResponse
  1200. .jsonBody,
  1201. r'''$[:].bestellink''',
  1202. ).toString(),
  1203. style: FlutterFlowTheme.of(context)
  1204. .bodyMedium
  1205. .override(
  1206. font: GoogleFonts.roboto(
  1207. fontWeight:
  1208. FlutterFlowTheme.of(context)
  1209. .bodyMedium
  1210. .fontWeight,
  1211. fontStyle:
  1212. FlutterFlowTheme.of(context)
  1213. .bodyMedium
  1214. .fontStyle,
  1215. ),
  1216. letterSpacing: 0.0,
  1217. fontWeight:
  1218. FlutterFlowTheme.of(context)
  1219. .bodyMedium
  1220. .fontWeight,
  1221. fontStyle:
  1222. FlutterFlowTheme.of(context)
  1223. .bodyMedium
  1224. .fontStyle,
  1225. ),
  1226. ),
  1227. ),
  1228. if (EstablishmentInfoCall
  1229. .establishmentbezorgtijden(
  1230. horecagelegenheidCurrentEstablishmentInfoResponse
  1231. .jsonBody,
  1232. ) !=
  1233. null &&
  1234. EstablishmentInfoCall
  1235. .establishmentbezorgtijden(
  1236. horecagelegenheidCurrentEstablishmentInfoResponse
  1237. .jsonBody,
  1238. ) !=
  1239. '')
  1240. Text(
  1241. getJsonField(
  1242. horecagelegenheidCurrentEstablishmentInfoResponse
  1243. .jsonBody,
  1244. r'''$[:].bezorgtijden''',
  1245. ).toString(),
  1246. style: FlutterFlowTheme.of(context)
  1247. .bodyMedium
  1248. .override(
  1249. font: GoogleFonts.roboto(
  1250. fontWeight:
  1251. FlutterFlowTheme.of(context)
  1252. .bodyMedium
  1253. .fontWeight,
  1254. fontStyle:
  1255. FlutterFlowTheme.of(context)
  1256. .bodyMedium
  1257. .fontStyle,
  1258. ),
  1259. letterSpacing: 0.0,
  1260. fontWeight:
  1261. FlutterFlowTheme.of(context)
  1262. .bodyMedium
  1263. .fontWeight,
  1264. fontStyle:
  1265. FlutterFlowTheme.of(context)
  1266. .bodyMedium
  1267. .fontStyle,
  1268. ),
  1269. ),
  1270. if (EstablishmentInfoCall
  1271. .establishmentBezorgkosten(
  1272. horecagelegenheidCurrentEstablishmentInfoResponse
  1273. .jsonBody,
  1274. ) !=
  1275. null &&
  1276. EstablishmentInfoCall
  1277. .establishmentBezorgkosten(
  1278. horecagelegenheidCurrentEstablishmentInfoResponse
  1279. .jsonBody,
  1280. ) !=
  1281. '')
  1282. Text(
  1283. getJsonField(
  1284. horecagelegenheidCurrentEstablishmentInfoResponse
  1285. .jsonBody,
  1286. r'''$[:].bezorgkosten''',
  1287. ).toString(),
  1288. style: FlutterFlowTheme.of(context)
  1289. .bodyMedium
  1290. .override(
  1291. font: GoogleFonts.roboto(
  1292. fontWeight:
  1293. FlutterFlowTheme.of(context)
  1294. .bodyMedium
  1295. .fontWeight,
  1296. fontStyle:
  1297. FlutterFlowTheme.of(context)
  1298. .bodyMedium
  1299. .fontStyle,
  1300. ),
  1301. letterSpacing: 0.0,
  1302. fontWeight:
  1303. FlutterFlowTheme.of(context)
  1304. .bodyMedium
  1305. .fontWeight,
  1306. fontStyle:
  1307. FlutterFlowTheme.of(context)
  1308. .bodyMedium
  1309. .fontStyle,
  1310. ),
  1311. ),
  1312. if (EstablishmentInfoCall
  1313. .establishmentMinimaleorder(
  1314. horecagelegenheidCurrentEstablishmentInfoResponse
  1315. .jsonBody,
  1316. ) !=
  1317. null &&
  1318. EstablishmentInfoCall
  1319. .establishmentMinimaleorder(
  1320. horecagelegenheidCurrentEstablishmentInfoResponse
  1321. .jsonBody,
  1322. ) !=
  1323. '')
  1324. Text(
  1325. getJsonField(
  1326. horecagelegenheidCurrentEstablishmentInfoResponse
  1327. .jsonBody,
  1328. r'''$[:].minimaleorder''',
  1329. ).toString(),
  1330. style: FlutterFlowTheme.of(context)
  1331. .bodyMedium
  1332. .override(
  1333. font: GoogleFonts.roboto(
  1334. fontWeight:
  1335. FlutterFlowTheme.of(context)
  1336. .bodyMedium
  1337. .fontWeight,
  1338. fontStyle:
  1339. FlutterFlowTheme.of(context)
  1340. .bodyMedium
  1341. .fontStyle,
  1342. ),
  1343. letterSpacing: 0.0,
  1344. fontWeight:
  1345. FlutterFlowTheme.of(context)
  1346. .bodyMedium
  1347. .fontWeight,
  1348. fontStyle:
  1349. FlutterFlowTheme.of(context)
  1350. .bodyMedium
  1351. .fontStyle,
  1352. ),
  1353. ),
  1354. if (getJsonField(
  1355. horecagelegenheidCurrentEstablishmentInfoResponse
  1356. .jsonBody,
  1357. r'''$[:].thuisbezorgtbetaalopties''',
  1358. ) !=
  1359. null)
  1360. Text(
  1361. getJsonField(
  1362. horecagelegenheidCurrentEstablishmentInfoResponse
  1363. .jsonBody,
  1364. r'''$[:].thuisbezorgtbetaalopties''',
  1365. ).toString(),
  1366. style: FlutterFlowTheme.of(context)
  1367. .bodyMedium
  1368. .override(
  1369. font: GoogleFonts.roboto(
  1370. fontWeight:
  1371. FlutterFlowTheme.of(context)
  1372. .bodyMedium
  1373. .fontWeight,
  1374. fontStyle:
  1375. FlutterFlowTheme.of(context)
  1376. .bodyMedium
  1377. .fontStyle,
  1378. ),
  1379. letterSpacing: 0.0,
  1380. fontWeight:
  1381. FlutterFlowTheme.of(context)
  1382. .bodyMedium
  1383. .fontWeight,
  1384. fontStyle:
  1385. FlutterFlowTheme.of(context)
  1386. .bodyMedium
  1387. .fontStyle,
  1388. ),
  1389. ),
  1390. Text(
  1391. getJsonField(
  1392. horecagelegenheidCurrentEstablishmentInfoResponse
  1393. .jsonBody,
  1394. r'''$[:].bezorgdin''',
  1395. ).toString(),
  1396. style: FlutterFlowTheme.of(context)
  1397. .bodyMedium
  1398. .override(
  1399. font: GoogleFonts.roboto(
  1400. fontWeight:
  1401. FlutterFlowTheme.of(context)
  1402. .bodyMedium
  1403. .fontWeight,
  1404. fontStyle:
  1405. FlutterFlowTheme.of(context)
  1406. .bodyMedium
  1407. .fontStyle,
  1408. ),
  1409. letterSpacing: 0.0,
  1410. fontWeight:
  1411. FlutterFlowTheme.of(context)
  1412. .bodyMedium
  1413. .fontWeight,
  1414. fontStyle:
  1415. FlutterFlowTheme.of(context)
  1416. .bodyMedium
  1417. .fontStyle,
  1418. ),
  1419. ),
  1420. ],
  1421. ),
  1422. ],
  1423. ),
  1424. ),
  1425. ],
  1426. ),
  1427. ),
  1428. Expanded(
  1429. child: Container(
  1430. width: 462.72,
  1431. height: 100.0,
  1432. decoration: BoxDecoration(
  1433. color: FlutterFlowTheme.of(context).secondaryBackground,
  1434. ),
  1435. child: Column(
  1436. mainAxisSize: MainAxisSize.max,
  1437. children: [
  1438. Expanded(
  1439. child: wrapWithModel(
  1440. model: _model
  1441. .horecagelegenheidEventTabelComponentCopyModel,
  1442. updateCallback: () => safeSetState(() {}),
  1443. child: Builder(builder: (_) {
  1444. return DebugFlutterFlowModelContext(
  1445. rootModel: _model.rootModel,
  1446. child:
  1447. HorecagelegenheidEventTabelComponentCopyWidget(
  1448. nid: widget!.nid!,
  1449. horecaid: widget!.nid,
  1450. ),
  1451. );
  1452. }),
  1453. ),
  1454. ),
  1455. ],
  1456. ),
  1457. ),
  1458. ),
  1459. FFButtonWidget(
  1460. onPressed: () async {
  1461. context.pushNamed(
  1462. HorecagelegenhedenOverzichtWidget.routeName,
  1463. queryParameters: {
  1464. 'plaats': serializeParam(
  1465. FFAppState().gemeenteSelectId,
  1466. ParamType.String,
  1467. ),
  1468. }.withoutNulls,
  1469. );
  1470. },
  1471. text: FFLocalizations.of(context).getText(
  1472. 'ukbd1ac9' /* Alle horecagelegenheden */,
  1473. ),
  1474. options: FFButtonOptions(
  1475. height: 40.0,
  1476. padding:
  1477. EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 0.0),
  1478. iconPadding:
  1479. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  1480. color: FlutterFlowTheme.of(context).secondary,
  1481. textStyle:
  1482. FlutterFlowTheme.of(context).titleSmall.override(
  1483. font: GoogleFonts.roboto(
  1484. fontWeight: FlutterFlowTheme.of(context)
  1485. .titleSmall
  1486. .fontWeight,
  1487. fontStyle: FlutterFlowTheme.of(context)
  1488. .titleSmall
  1489. .fontStyle,
  1490. ),
  1491. color: Colors.white,
  1492. letterSpacing: 0.0,
  1493. fontWeight: FlutterFlowTheme.of(context)
  1494. .titleSmall
  1495. .fontWeight,
  1496. fontStyle: FlutterFlowTheme.of(context)
  1497. .titleSmall
  1498. .fontStyle,
  1499. ),
  1500. elevation: 0.0,
  1501. borderRadius: BorderRadius.circular(8.0),
  1502. ),
  1503. ),
  1504. ],
  1505. ),
  1506. ),
  1507. ),
  1508. );
  1509. },
  1510. );
  1511. }
  1512. }