horecagelegenheid_current_widget.dart 89 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644
  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. labelColor:
  458. FlutterFlowTheme.of(context).primaryText,
  459. unselectedLabelColor:
  460. FlutterFlowTheme.of(context).secondaryText,
  461. labelStyle: FlutterFlowTheme.of(context)
  462. .titleMedium
  463. .override(
  464. font: GoogleFonts.roboto(
  465. fontWeight: FlutterFlowTheme.of(context)
  466. .titleMedium
  467. .fontWeight,
  468. fontStyle: FlutterFlowTheme.of(context)
  469. .titleMedium
  470. .fontStyle,
  471. ),
  472. letterSpacing: 0.0,
  473. fontWeight: FlutterFlowTheme.of(context)
  474. .titleMedium
  475. .fontWeight,
  476. fontStyle: FlutterFlowTheme.of(context)
  477. .titleMedium
  478. .fontStyle,
  479. ),
  480. unselectedLabelStyle: FlutterFlowTheme.of(context)
  481. .titleMedium
  482. .override(
  483. font: GoogleFonts.roboto(
  484. fontWeight: FlutterFlowTheme.of(context)
  485. .titleMedium
  486. .fontWeight,
  487. fontStyle: FlutterFlowTheme.of(context)
  488. .titleMedium
  489. .fontStyle,
  490. ),
  491. letterSpacing: 0.0,
  492. fontWeight: FlutterFlowTheme.of(context)
  493. .titleMedium
  494. .fontWeight,
  495. fontStyle: FlutterFlowTheme.of(context)
  496. .titleMedium
  497. .fontStyle,
  498. ),
  499. indicatorColor:
  500. FlutterFlowTheme.of(context).secondary,
  501. tabs: [
  502. Tab(
  503. text: FFLocalizations.of(context).getText(
  504. 'pedeshok' /* Info */,
  505. ),
  506. ),
  507. Tab(
  508. text: FFLocalizations.of(context).getText(
  509. 'q5nwrlms' /* Links */,
  510. ),
  511. ),
  512. Tab(
  513. text: FFLocalizations.of(context).getText(
  514. 's1b6yp7v' /* Bezorgen */,
  515. ),
  516. ),
  517. Tab(
  518. text: FFLocalizations.of(context).getText(
  519. 'jwojezxv' /* Agenda */,
  520. ),
  521. ),
  522. ],
  523. controller: _model.tabBarController,
  524. onTap: (i) async {
  525. [
  526. () async {},
  527. () async {},
  528. () async {},
  529. () async {}
  530. ][i]();
  531. },
  532. ),
  533. ),
  534. Expanded(
  535. child: TabBarView(
  536. controller: _model.tabBarController,
  537. children: [
  538. Column(
  539. mainAxisSize: MainAxisSize.max,
  540. children: [
  541. if (getJsonField(
  542. horecagelegenheidCurrentEstablishmentInfoResponse
  543. .jsonBody,
  544. r'''$[:].logo''',
  545. ) !=
  546. null)
  547. ClipRRect(
  548. borderRadius: BorderRadius.circular(8.0),
  549. child: CachedNetworkImage(
  550. fadeInDuration:
  551. Duration(milliseconds: 500),
  552. fadeOutDuration:
  553. Duration(milliseconds: 500),
  554. imageUrl: valueOrDefault<String>(
  555. EstablishmentInfoCall
  556. .establshmentLogo(
  557. horecagelegenheidCurrentEstablishmentInfoResponse
  558. .jsonBody,
  559. ),
  560. 'logo',
  561. ),
  562. width: 200.0,
  563. height: 200.0,
  564. fit: BoxFit.cover,
  565. ),
  566. ),
  567. if (EstablishmentInfoCall.establishmentAdres(
  568. horecagelegenheidCurrentEstablishmentInfoResponse
  569. .jsonBody,
  570. ) !=
  571. null &&
  572. EstablishmentInfoCall.establishmentAdres(
  573. horecagelegenheidCurrentEstablishmentInfoResponse
  574. .jsonBody,
  575. ) !=
  576. '')
  577. Text(
  578. getJsonField(
  579. horecagelegenheidCurrentEstablishmentInfoResponse
  580. .jsonBody,
  581. r'''$[:].adres''',
  582. ).toString(),
  583. style: FlutterFlowTheme.of(context)
  584. .bodyMedium
  585. .override(
  586. font: GoogleFonts.roboto(
  587. fontWeight:
  588. FlutterFlowTheme.of(context)
  589. .bodyMedium
  590. .fontWeight,
  591. fontStyle:
  592. FlutterFlowTheme.of(context)
  593. .bodyMedium
  594. .fontStyle,
  595. ),
  596. letterSpacing: 0.0,
  597. fontWeight:
  598. FlutterFlowTheme.of(context)
  599. .bodyMedium
  600. .fontWeight,
  601. fontStyle:
  602. FlutterFlowTheme.of(context)
  603. .bodyMedium
  604. .fontStyle,
  605. ),
  606. ),
  607. if (EstablishmentInfoCall.establishmentPlaats(
  608. horecagelegenheidCurrentEstablishmentInfoResponse
  609. .jsonBody,
  610. ) !=
  611. null &&
  612. EstablishmentInfoCall.establishmentPlaats(
  613. horecagelegenheidCurrentEstablishmentInfoResponse
  614. .jsonBody,
  615. ) !=
  616. '')
  617. Text(
  618. getJsonField(
  619. horecagelegenheidCurrentEstablishmentInfoResponse
  620. .jsonBody,
  621. r'''$[:].plaats''',
  622. ).toString(),
  623. style: FlutterFlowTheme.of(context)
  624. .bodyMedium
  625. .override(
  626. font: GoogleFonts.roboto(
  627. fontWeight:
  628. FlutterFlowTheme.of(context)
  629. .bodyMedium
  630. .fontWeight,
  631. fontStyle:
  632. FlutterFlowTheme.of(context)
  633. .bodyMedium
  634. .fontStyle,
  635. ),
  636. letterSpacing: 0.0,
  637. fontWeight:
  638. FlutterFlowTheme.of(context)
  639. .bodyMedium
  640. .fontWeight,
  641. fontStyle:
  642. FlutterFlowTheme.of(context)
  643. .bodyMedium
  644. .fontStyle,
  645. ),
  646. ),
  647. if (getJsonField(
  648. horecagelegenheidCurrentEstablishmentInfoResponse
  649. .jsonBody,
  650. r'''$[:].openingstijden''',
  651. ) !=
  652. null)
  653. Text(
  654. getJsonField(
  655. horecagelegenheidCurrentEstablishmentInfoResponse
  656. .jsonBody,
  657. r'''$[:].openingstijden''',
  658. ).toString(),
  659. style: FlutterFlowTheme.of(context)
  660. .bodyMedium
  661. .override(
  662. font: GoogleFonts.roboto(
  663. fontWeight:
  664. FlutterFlowTheme.of(context)
  665. .bodyMedium
  666. .fontWeight,
  667. fontStyle:
  668. FlutterFlowTheme.of(context)
  669. .bodyMedium
  670. .fontStyle,
  671. ),
  672. letterSpacing: 0.0,
  673. fontWeight:
  674. FlutterFlowTheme.of(context)
  675. .bodyMedium
  676. .fontWeight,
  677. fontStyle:
  678. FlutterFlowTheme.of(context)
  679. .bodyMedium
  680. .fontStyle,
  681. ),
  682. ),
  683. if (getJsonField(
  684. horecagelegenheidCurrentEstablishmentInfoResponse
  685. .jsonBody,
  686. r'''$[:].openingstijdenuitzondering''',
  687. ) !=
  688. null)
  689. Text(
  690. getJsonField(
  691. horecagelegenheidCurrentEstablishmentInfoResponse
  692. .jsonBody,
  693. r'''$[:].openingstijdenuitzondering''',
  694. ).toString(),
  695. style: FlutterFlowTheme.of(context)
  696. .bodyMedium
  697. .override(
  698. font: GoogleFonts.roboto(
  699. fontWeight:
  700. FlutterFlowTheme.of(context)
  701. .bodyMedium
  702. .fontWeight,
  703. fontStyle:
  704. FlutterFlowTheme.of(context)
  705. .bodyMedium
  706. .fontStyle,
  707. ),
  708. letterSpacing: 0.0,
  709. fontWeight:
  710. FlutterFlowTheme.of(context)
  711. .bodyMedium
  712. .fontWeight,
  713. fontStyle:
  714. FlutterFlowTheme.of(context)
  715. .bodyMedium
  716. .fontStyle,
  717. ),
  718. ),
  719. if (EstablishmentInfoCall
  720. .establishmentTelefoonnummer(
  721. horecagelegenheidCurrentEstablishmentInfoResponse
  722. .jsonBody,
  723. ) !=
  724. null &&
  725. EstablishmentInfoCall
  726. .establishmentTelefoonnummer(
  727. horecagelegenheidCurrentEstablishmentInfoResponse
  728. .jsonBody,
  729. ) !=
  730. '')
  731. Text(
  732. getJsonField(
  733. horecagelegenheidCurrentEstablishmentInfoResponse
  734. .jsonBody,
  735. r'''$[:].telefoonnummer''',
  736. ).toString(),
  737. style: FlutterFlowTheme.of(context)
  738. .bodyMedium
  739. .override(
  740. font: GoogleFonts.roboto(
  741. fontWeight:
  742. FlutterFlowTheme.of(context)
  743. .bodyMedium
  744. .fontWeight,
  745. fontStyle:
  746. FlutterFlowTheme.of(context)
  747. .bodyMedium
  748. .fontStyle,
  749. ),
  750. letterSpacing: 0.0,
  751. fontWeight:
  752. FlutterFlowTheme.of(context)
  753. .bodyMedium
  754. .fontWeight,
  755. fontStyle:
  756. FlutterFlowTheme.of(context)
  757. .bodyMedium
  758. .fontStyle,
  759. ),
  760. ),
  761. if (EstablishmentInfoCall.establishmentEmail(
  762. horecagelegenheidCurrentEstablishmentInfoResponse
  763. .jsonBody,
  764. ) !=
  765. null &&
  766. EstablishmentInfoCall.establishmentEmail(
  767. horecagelegenheidCurrentEstablishmentInfoResponse
  768. .jsonBody,
  769. ) !=
  770. '')
  771. Text(
  772. getJsonField(
  773. horecagelegenheidCurrentEstablishmentInfoResponse
  774. .jsonBody,
  775. r'''$[:].email''',
  776. ).toString(),
  777. style: FlutterFlowTheme.of(context)
  778. .bodyMedium
  779. .override(
  780. font: GoogleFonts.roboto(
  781. fontWeight:
  782. FlutterFlowTheme.of(context)
  783. .bodyMedium
  784. .fontWeight,
  785. fontStyle:
  786. FlutterFlowTheme.of(context)
  787. .bodyMedium
  788. .fontStyle,
  789. ),
  790. letterSpacing: 0.0,
  791. fontWeight:
  792. FlutterFlowTheme.of(context)
  793. .bodyMedium
  794. .fontWeight,
  795. fontStyle:
  796. FlutterFlowTheme.of(context)
  797. .bodyMedium
  798. .fontStyle,
  799. ),
  800. ),
  801. if (EstablishmentInfoCall.establshmentKvk(
  802. horecagelegenheidCurrentEstablishmentInfoResponse
  803. .jsonBody,
  804. ) !=
  805. null &&
  806. EstablishmentInfoCall.establshmentKvk(
  807. horecagelegenheidCurrentEstablishmentInfoResponse
  808. .jsonBody,
  809. ) !=
  810. '')
  811. Text(
  812. getJsonField(
  813. horecagelegenheidCurrentEstablishmentInfoResponse
  814. .jsonBody,
  815. r'''$[:].kvk''',
  816. ).toString(),
  817. style: FlutterFlowTheme.of(context)
  818. .bodyMedium
  819. .override(
  820. font: GoogleFonts.roboto(
  821. fontWeight:
  822. FlutterFlowTheme.of(context)
  823. .bodyMedium
  824. .fontWeight,
  825. fontStyle:
  826. FlutterFlowTheme.of(context)
  827. .bodyMedium
  828. .fontStyle,
  829. ),
  830. letterSpacing: 0.0,
  831. fontWeight:
  832. FlutterFlowTheme.of(context)
  833. .bodyMedium
  834. .fontWeight,
  835. fontStyle:
  836. FlutterFlowTheme.of(context)
  837. .bodyMedium
  838. .fontStyle,
  839. ),
  840. ),
  841. Builder(
  842. builder: (context) {
  843. final cryptocoins = EstablishmentInfoCall
  844. .establishmentCryptocoins(
  845. horecagelegenheidCurrentEstablishmentInfoResponse
  846. .jsonBody,
  847. )?.toList() ??
  848. [];
  849. _model.debugGeneratorVariables[
  850. 'cryptocoins${cryptocoins.length > 100 ? ' (first 100)' : ''}'] =
  851. debugSerializeParam(
  852. cryptocoins.take(100),
  853. ParamType.String,
  854. isList: true,
  855. link:
  856. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  857. name: 'String',
  858. nullable: false,
  859. );
  860. debugLogWidgetClass(_model);
  861. return Wrap(
  862. spacing: 0.0,
  863. runSpacing: 0.0,
  864. alignment: WrapAlignment.start,
  865. crossAxisAlignment:
  866. WrapCrossAlignment.start,
  867. direction: Axis.horizontal,
  868. runAlignment: WrapAlignment.start,
  869. verticalDirection:
  870. VerticalDirection.down,
  871. clipBehavior: Clip.none,
  872. children:
  873. List.generate(cryptocoins.length,
  874. (cryptocoinsIndex) {
  875. final cryptocoinsItem =
  876. cryptocoins[cryptocoinsIndex];
  877. return Text(
  878. cryptocoinsItem,
  879. style: FlutterFlowTheme.of(context)
  880. .bodyMedium
  881. .override(
  882. font: GoogleFonts.roboto(
  883. fontWeight:
  884. FlutterFlowTheme.of(
  885. context)
  886. .bodyMedium
  887. .fontWeight,
  888. fontStyle:
  889. FlutterFlowTheme.of(
  890. context)
  891. .bodyMedium
  892. .fontStyle,
  893. ),
  894. letterSpacing: 0.0,
  895. fontWeight:
  896. FlutterFlowTheme.of(
  897. context)
  898. .bodyMedium
  899. .fontWeight,
  900. fontStyle:
  901. FlutterFlowTheme.of(
  902. context)
  903. .bodyMedium
  904. .fontStyle,
  905. ),
  906. );
  907. }),
  908. );
  909. },
  910. ),
  911. wrapWithModel(
  912. model: _model.googleMapsIconButtonModel,
  913. updateCallback: () => safeSetState(() {}),
  914. child: Builder(builder: (_) {
  915. return DebugFlutterFlowModelContext(
  916. rootModel: _model.rootModel,
  917. child: GoogleMapsIconButtonWidget(
  918. adres: EstablishmentInfoCall
  919. .establishmentAdres(
  920. horecagelegenheidCurrentEstablishmentInfoResponse
  921. .jsonBody,
  922. )!,
  923. plaats: EstablishmentInfoCall
  924. .establishmentPlaats(
  925. horecagelegenheidCurrentEstablishmentInfoResponse
  926. .jsonBody,
  927. )!,
  928. ),
  929. );
  930. }),
  931. ),
  932. ],
  933. ),
  934. Column(
  935. mainAxisSize: MainAxisSize.max,
  936. children: [
  937. if (EstablishmentInfoCall
  938. .establishmentWebsite(
  939. horecagelegenheidCurrentEstablishmentInfoResponse
  940. .jsonBody,
  941. ) !=
  942. null &&
  943. EstablishmentInfoCall
  944. .establishmentWebsite(
  945. horecagelegenheidCurrentEstablishmentInfoResponse
  946. .jsonBody,
  947. ) !=
  948. '')
  949. InkWell(
  950. splashColor: Colors.transparent,
  951. focusColor: Colors.transparent,
  952. hoverColor: Colors.transparent,
  953. highlightColor: Colors.transparent,
  954. onTap: () async {
  955. await launchURL(getJsonField(
  956. horecagelegenheidCurrentEstablishmentInfoResponse
  957. .jsonBody,
  958. r'''$[:].website''',
  959. ).toString());
  960. },
  961. child: Text(
  962. getJsonField(
  963. horecagelegenheidCurrentEstablishmentInfoResponse
  964. .jsonBody,
  965. r'''$[:].website''',
  966. ).toString(),
  967. style: FlutterFlowTheme.of(context)
  968. .bodyMedium
  969. .override(
  970. font: GoogleFonts.roboto(
  971. fontWeight:
  972. FlutterFlowTheme.of(context)
  973. .bodyMedium
  974. .fontWeight,
  975. fontStyle:
  976. FlutterFlowTheme.of(context)
  977. .bodyMedium
  978. .fontStyle,
  979. ),
  980. color:
  981. FlutterFlowTheme.of(context)
  982. .secondary,
  983. letterSpacing: 0.0,
  984. fontWeight:
  985. FlutterFlowTheme.of(context)
  986. .bodyMedium
  987. .fontWeight,
  988. fontStyle:
  989. FlutterFlowTheme.of(context)
  990. .bodyMedium
  991. .fontStyle,
  992. decoration:
  993. TextDecoration.underline,
  994. ),
  995. ),
  996. ),
  997. if (EstablishmentInfoCall
  998. .establishmentMenukaart(
  999. horecagelegenheidCurrentEstablishmentInfoResponse
  1000. .jsonBody,
  1001. ) !=
  1002. null &&
  1003. EstablishmentInfoCall
  1004. .establishmentMenukaart(
  1005. horecagelegenheidCurrentEstablishmentInfoResponse
  1006. .jsonBody,
  1007. ) !=
  1008. '')
  1009. InkWell(
  1010. splashColor: Colors.transparent,
  1011. focusColor: Colors.transparent,
  1012. hoverColor: Colors.transparent,
  1013. highlightColor: Colors.transparent,
  1014. onTap: () async {
  1015. await launchURL(getJsonField(
  1016. horecagelegenheidCurrentEstablishmentInfoResponse
  1017. .jsonBody,
  1018. r'''$[:].menukaart''',
  1019. ).toString());
  1020. },
  1021. child: Text(
  1022. getJsonField(
  1023. horecagelegenheidCurrentEstablishmentInfoResponse
  1024. .jsonBody,
  1025. r'''$[:].menukaart''',
  1026. ).toString(),
  1027. style: FlutterFlowTheme.of(context)
  1028. .bodyMedium
  1029. .override(
  1030. font: GoogleFonts.roboto(
  1031. fontWeight:
  1032. FlutterFlowTheme.of(context)
  1033. .bodyMedium
  1034. .fontWeight,
  1035. fontStyle:
  1036. FlutterFlowTheme.of(context)
  1037. .bodyMedium
  1038. .fontStyle,
  1039. ),
  1040. color:
  1041. FlutterFlowTheme.of(context)
  1042. .secondary,
  1043. letterSpacing: 0.0,
  1044. fontWeight:
  1045. FlutterFlowTheme.of(context)
  1046. .bodyMedium
  1047. .fontWeight,
  1048. fontStyle:
  1049. FlutterFlowTheme.of(context)
  1050. .bodyMedium
  1051. .fontStyle,
  1052. decoration:
  1053. TextDecoration.underline,
  1054. ),
  1055. ),
  1056. ),
  1057. if (EstablishmentInfoCall
  1058. .establishmentFacebook(
  1059. horecagelegenheidCurrentEstablishmentInfoResponse
  1060. .jsonBody,
  1061. ) !=
  1062. null &&
  1063. EstablishmentInfoCall
  1064. .establishmentFacebook(
  1065. horecagelegenheidCurrentEstablishmentInfoResponse
  1066. .jsonBody,
  1067. ) !=
  1068. '')
  1069. InkWell(
  1070. splashColor: Colors.transparent,
  1071. focusColor: Colors.transparent,
  1072. hoverColor: Colors.transparent,
  1073. highlightColor: Colors.transparent,
  1074. onTap: () async {
  1075. await launchURL(getJsonField(
  1076. horecagelegenheidCurrentEstablishmentInfoResponse
  1077. .jsonBody,
  1078. r'''$[:].facebook''',
  1079. ).toString());
  1080. },
  1081. child: Text(
  1082. getJsonField(
  1083. horecagelegenheidCurrentEstablishmentInfoResponse
  1084. .jsonBody,
  1085. r'''$[:].facebook''',
  1086. ).toString(),
  1087. style: FlutterFlowTheme.of(context)
  1088. .bodyMedium
  1089. .override(
  1090. font: GoogleFonts.roboto(
  1091. fontWeight:
  1092. FlutterFlowTheme.of(context)
  1093. .bodyMedium
  1094. .fontWeight,
  1095. fontStyle:
  1096. FlutterFlowTheme.of(context)
  1097. .bodyMedium
  1098. .fontStyle,
  1099. ),
  1100. color:
  1101. FlutterFlowTheme.of(context)
  1102. .secondary,
  1103. letterSpacing: 0.0,
  1104. fontWeight:
  1105. FlutterFlowTheme.of(context)
  1106. .bodyMedium
  1107. .fontWeight,
  1108. fontStyle:
  1109. FlutterFlowTheme.of(context)
  1110. .bodyMedium
  1111. .fontStyle,
  1112. decoration:
  1113. TextDecoration.underline,
  1114. ),
  1115. ),
  1116. ),
  1117. if (EstablishmentInfoCall
  1118. .establishmentTwitter(
  1119. horecagelegenheidCurrentEstablishmentInfoResponse
  1120. .jsonBody,
  1121. ) !=
  1122. null &&
  1123. EstablishmentInfoCall
  1124. .establishmentTwitter(
  1125. horecagelegenheidCurrentEstablishmentInfoResponse
  1126. .jsonBody,
  1127. ) !=
  1128. '')
  1129. InkWell(
  1130. splashColor: Colors.transparent,
  1131. focusColor: Colors.transparent,
  1132. hoverColor: Colors.transparent,
  1133. highlightColor: Colors.transparent,
  1134. onTap: () async {
  1135. await launchURL(getJsonField(
  1136. horecagelegenheidCurrentEstablishmentInfoResponse
  1137. .jsonBody,
  1138. r'''$[:].twitter''',
  1139. ).toString());
  1140. },
  1141. child: Text(
  1142. getJsonField(
  1143. horecagelegenheidCurrentEstablishmentInfoResponse
  1144. .jsonBody,
  1145. r'''$[:].twitter''',
  1146. ).toString(),
  1147. style: FlutterFlowTheme.of(context)
  1148. .bodyMedium
  1149. .override(
  1150. font: GoogleFonts.roboto(
  1151. fontWeight:
  1152. FlutterFlowTheme.of(context)
  1153. .bodyMedium
  1154. .fontWeight,
  1155. fontStyle:
  1156. FlutterFlowTheme.of(context)
  1157. .bodyMedium
  1158. .fontStyle,
  1159. ),
  1160. color:
  1161. FlutterFlowTheme.of(context)
  1162. .secondary,
  1163. letterSpacing: 0.0,
  1164. fontWeight:
  1165. FlutterFlowTheme.of(context)
  1166. .bodyMedium
  1167. .fontWeight,
  1168. fontStyle:
  1169. FlutterFlowTheme.of(context)
  1170. .bodyMedium
  1171. .fontStyle,
  1172. decoration:
  1173. TextDecoration.underline,
  1174. ),
  1175. ),
  1176. ),
  1177. if (EstablishmentInfoCall
  1178. .establishmentInstagram(
  1179. horecagelegenheidCurrentEstablishmentInfoResponse
  1180. .jsonBody,
  1181. ) !=
  1182. null &&
  1183. EstablishmentInfoCall
  1184. .establishmentInstagram(
  1185. horecagelegenheidCurrentEstablishmentInfoResponse
  1186. .jsonBody,
  1187. ) !=
  1188. '')
  1189. InkWell(
  1190. splashColor: Colors.transparent,
  1191. focusColor: Colors.transparent,
  1192. hoverColor: Colors.transparent,
  1193. highlightColor: Colors.transparent,
  1194. onTap: () async {
  1195. await launchURL(getJsonField(
  1196. horecagelegenheidCurrentEstablishmentInfoResponse
  1197. .jsonBody,
  1198. r'''$[:].instagram''',
  1199. ).toString());
  1200. },
  1201. child: Text(
  1202. getJsonField(
  1203. horecagelegenheidCurrentEstablishmentInfoResponse
  1204. .jsonBody,
  1205. r'''$[:].instagram''',
  1206. ).toString(),
  1207. style: FlutterFlowTheme.of(context)
  1208. .bodyMedium
  1209. .override(
  1210. font: GoogleFonts.roboto(
  1211. fontWeight:
  1212. FlutterFlowTheme.of(context)
  1213. .bodyMedium
  1214. .fontWeight,
  1215. fontStyle:
  1216. FlutterFlowTheme.of(context)
  1217. .bodyMedium
  1218. .fontStyle,
  1219. ),
  1220. color:
  1221. FlutterFlowTheme.of(context)
  1222. .secondary,
  1223. letterSpacing: 0.0,
  1224. fontWeight:
  1225. FlutterFlowTheme.of(context)
  1226. .bodyMedium
  1227. .fontWeight,
  1228. fontStyle:
  1229. FlutterFlowTheme.of(context)
  1230. .bodyMedium
  1231. .fontStyle,
  1232. decoration:
  1233. TextDecoration.underline,
  1234. ),
  1235. ),
  1236. ),
  1237. ],
  1238. ),
  1239. Column(
  1240. mainAxisSize: MainAxisSize.max,
  1241. children: [
  1242. if (getJsonField(
  1243. horecagelegenheidCurrentEstablishmentInfoResponse
  1244. .jsonBody,
  1245. r'''$[:].afhaalopties''',
  1246. ) !=
  1247. null)
  1248. Text(
  1249. valueOrDefault<String>(
  1250. functions.lijstAlsTekst(getJsonField(
  1251. horecagelegenheidCurrentEstablishmentInfoResponse
  1252. .jsonBody,
  1253. r'''$[:].afhaalopties''',
  1254. )),
  1255. 'afhaalopties',
  1256. ),
  1257. style: FlutterFlowTheme.of(context)
  1258. .bodyMedium
  1259. .override(
  1260. font: GoogleFonts.roboto(
  1261. fontWeight:
  1262. FlutterFlowTheme.of(context)
  1263. .bodyMedium
  1264. .fontWeight,
  1265. fontStyle:
  1266. FlutterFlowTheme.of(context)
  1267. .bodyMedium
  1268. .fontStyle,
  1269. ),
  1270. letterSpacing: 0.0,
  1271. fontWeight:
  1272. FlutterFlowTheme.of(context)
  1273. .bodyMedium
  1274. .fontWeight,
  1275. fontStyle:
  1276. FlutterFlowTheme.of(context)
  1277. .bodyMedium
  1278. .fontStyle,
  1279. ),
  1280. ),
  1281. if (EstablishmentInfoCall
  1282. .establshmentBestellink(
  1283. horecagelegenheidCurrentEstablishmentInfoResponse
  1284. .jsonBody,
  1285. ) !=
  1286. null &&
  1287. EstablishmentInfoCall
  1288. .establshmentBestellink(
  1289. horecagelegenheidCurrentEstablishmentInfoResponse
  1290. .jsonBody,
  1291. ) !=
  1292. '')
  1293. InkWell(
  1294. splashColor: Colors.transparent,
  1295. focusColor: Colors.transparent,
  1296. hoverColor: Colors.transparent,
  1297. highlightColor: Colors.transparent,
  1298. onTap: () async {
  1299. await launchURL(getJsonField(
  1300. horecagelegenheidCurrentEstablishmentInfoResponse
  1301. .jsonBody,
  1302. r'''$[:].bestellink''',
  1303. ).toString());
  1304. },
  1305. child: Text(
  1306. getJsonField(
  1307. horecagelegenheidCurrentEstablishmentInfoResponse
  1308. .jsonBody,
  1309. r'''$[:].bestellink''',
  1310. ).toString(),
  1311. style: FlutterFlowTheme.of(context)
  1312. .bodyMedium
  1313. .override(
  1314. font: GoogleFonts.roboto(
  1315. fontWeight:
  1316. FlutterFlowTheme.of(context)
  1317. .bodyMedium
  1318. .fontWeight,
  1319. fontStyle:
  1320. FlutterFlowTheme.of(context)
  1321. .bodyMedium
  1322. .fontStyle,
  1323. ),
  1324. color:
  1325. FlutterFlowTheme.of(context)
  1326. .secondary,
  1327. letterSpacing: 0.0,
  1328. fontWeight:
  1329. FlutterFlowTheme.of(context)
  1330. .bodyMedium
  1331. .fontWeight,
  1332. fontStyle:
  1333. FlutterFlowTheme.of(context)
  1334. .bodyMedium
  1335. .fontStyle,
  1336. decoration:
  1337. TextDecoration.underline,
  1338. ),
  1339. ),
  1340. ),
  1341. if (EstablishmentInfoCall
  1342. .establishmentbezorgtijden(
  1343. horecagelegenheidCurrentEstablishmentInfoResponse
  1344. .jsonBody,
  1345. ) !=
  1346. null &&
  1347. EstablishmentInfoCall
  1348. .establishmentbezorgtijden(
  1349. horecagelegenheidCurrentEstablishmentInfoResponse
  1350. .jsonBody,
  1351. ) !=
  1352. '')
  1353. Text(
  1354. getJsonField(
  1355. horecagelegenheidCurrentEstablishmentInfoResponse
  1356. .jsonBody,
  1357. r'''$[:].bezorgtijden''',
  1358. ).toString(),
  1359. style: FlutterFlowTheme.of(context)
  1360. .bodyMedium
  1361. .override(
  1362. font: GoogleFonts.roboto(
  1363. fontWeight:
  1364. FlutterFlowTheme.of(context)
  1365. .bodyMedium
  1366. .fontWeight,
  1367. fontStyle:
  1368. FlutterFlowTheme.of(context)
  1369. .bodyMedium
  1370. .fontStyle,
  1371. ),
  1372. letterSpacing: 0.0,
  1373. fontWeight:
  1374. FlutterFlowTheme.of(context)
  1375. .bodyMedium
  1376. .fontWeight,
  1377. fontStyle:
  1378. FlutterFlowTheme.of(context)
  1379. .bodyMedium
  1380. .fontStyle,
  1381. ),
  1382. ),
  1383. if (EstablishmentInfoCall
  1384. .establishmentBezorgkosten(
  1385. horecagelegenheidCurrentEstablishmentInfoResponse
  1386. .jsonBody,
  1387. ) !=
  1388. null &&
  1389. EstablishmentInfoCall
  1390. .establishmentBezorgkosten(
  1391. horecagelegenheidCurrentEstablishmentInfoResponse
  1392. .jsonBody,
  1393. ) !=
  1394. '')
  1395. Text(
  1396. getJsonField(
  1397. horecagelegenheidCurrentEstablishmentInfoResponse
  1398. .jsonBody,
  1399. r'''$[:].bezorgkosten''',
  1400. ).toString(),
  1401. style: FlutterFlowTheme.of(context)
  1402. .bodyMedium
  1403. .override(
  1404. font: GoogleFonts.roboto(
  1405. fontWeight:
  1406. FlutterFlowTheme.of(context)
  1407. .bodyMedium
  1408. .fontWeight,
  1409. fontStyle:
  1410. FlutterFlowTheme.of(context)
  1411. .bodyMedium
  1412. .fontStyle,
  1413. ),
  1414. letterSpacing: 0.0,
  1415. fontWeight:
  1416. FlutterFlowTheme.of(context)
  1417. .bodyMedium
  1418. .fontWeight,
  1419. fontStyle:
  1420. FlutterFlowTheme.of(context)
  1421. .bodyMedium
  1422. .fontStyle,
  1423. ),
  1424. ),
  1425. if (EstablishmentInfoCall
  1426. .establishmentMinimaleorder(
  1427. horecagelegenheidCurrentEstablishmentInfoResponse
  1428. .jsonBody,
  1429. ) !=
  1430. null &&
  1431. EstablishmentInfoCall
  1432. .establishmentMinimaleorder(
  1433. horecagelegenheidCurrentEstablishmentInfoResponse
  1434. .jsonBody,
  1435. ) !=
  1436. '')
  1437. Text(
  1438. getJsonField(
  1439. horecagelegenheidCurrentEstablishmentInfoResponse
  1440. .jsonBody,
  1441. r'''$[:].minimaleorder''',
  1442. ).toString(),
  1443. style: FlutterFlowTheme.of(context)
  1444. .bodyMedium
  1445. .override(
  1446. font: GoogleFonts.roboto(
  1447. fontWeight:
  1448. FlutterFlowTheme.of(context)
  1449. .bodyMedium
  1450. .fontWeight,
  1451. fontStyle:
  1452. FlutterFlowTheme.of(context)
  1453. .bodyMedium
  1454. .fontStyle,
  1455. ),
  1456. letterSpacing: 0.0,
  1457. fontWeight:
  1458. FlutterFlowTheme.of(context)
  1459. .bodyMedium
  1460. .fontWeight,
  1461. fontStyle:
  1462. FlutterFlowTheme.of(context)
  1463. .bodyMedium
  1464. .fontStyle,
  1465. ),
  1466. ),
  1467. if (getJsonField(
  1468. horecagelegenheidCurrentEstablishmentInfoResponse
  1469. .jsonBody,
  1470. r'''$[:].thuisbezorgtbetaalopties''',
  1471. ) !=
  1472. null)
  1473. Text(
  1474. valueOrDefault<String>(
  1475. functions.lijstAlsTekst(getJsonField(
  1476. horecagelegenheidCurrentEstablishmentInfoResponse
  1477. .jsonBody,
  1478. r'''$[:].thuisbezorgtbetaalopties''',
  1479. )),
  1480. 'betaalopties',
  1481. ),
  1482. style: FlutterFlowTheme.of(context)
  1483. .bodyMedium
  1484. .override(
  1485. font: GoogleFonts.roboto(
  1486. fontWeight:
  1487. FlutterFlowTheme.of(context)
  1488. .bodyMedium
  1489. .fontWeight,
  1490. fontStyle:
  1491. FlutterFlowTheme.of(context)
  1492. .bodyMedium
  1493. .fontStyle,
  1494. ),
  1495. letterSpacing: 0.0,
  1496. fontWeight:
  1497. FlutterFlowTheme.of(context)
  1498. .bodyMedium
  1499. .fontWeight,
  1500. fontStyle:
  1501. FlutterFlowTheme.of(context)
  1502. .bodyMedium
  1503. .fontStyle,
  1504. ),
  1505. ),
  1506. if (getJsonField(
  1507. horecagelegenheidCurrentEstablishmentInfoResponse
  1508. .jsonBody,
  1509. r'''$[:].bezorgtin''',
  1510. ) !=
  1511. null)
  1512. Text(
  1513. valueOrDefault<String>(
  1514. functions.lijstAlsTekst(getJsonField(
  1515. horecagelegenheidCurrentEstablishmentInfoResponse
  1516. .jsonBody,
  1517. r'''$[:].bezorgtin''',
  1518. )),
  1519. 'bezorgdin',
  1520. ),
  1521. style: FlutterFlowTheme.of(context)
  1522. .bodyMedium
  1523. .override(
  1524. font: GoogleFonts.roboto(
  1525. fontWeight:
  1526. FlutterFlowTheme.of(context)
  1527. .bodyMedium
  1528. .fontWeight,
  1529. fontStyle:
  1530. FlutterFlowTheme.of(context)
  1531. .bodyMedium
  1532. .fontStyle,
  1533. ),
  1534. letterSpacing: 0.0,
  1535. fontWeight:
  1536. FlutterFlowTheme.of(context)
  1537. .bodyMedium
  1538. .fontWeight,
  1539. fontStyle:
  1540. FlutterFlowTheme.of(context)
  1541. .bodyMedium
  1542. .fontStyle,
  1543. ),
  1544. ),
  1545. ],
  1546. ),
  1547. wrapWithModel(
  1548. model: _model
  1549. .horecagelegenheidEventTabelComponentCurrentModel,
  1550. updateCallback: () => safeSetState(() {}),
  1551. child: Builder(builder: (_) {
  1552. return DebugFlutterFlowModelContext(
  1553. rootModel: _model.rootModel,
  1554. child:
  1555. HorecagelegenheidEventTabelComponentCurrentWidget(
  1556. nid: widget!.nid!,
  1557. horecaid: widget!.nid,
  1558. ),
  1559. );
  1560. }),
  1561. ),
  1562. ],
  1563. ),
  1564. ),
  1565. ],
  1566. ),
  1567. ),
  1568. FFButtonWidget(
  1569. onPressed: () async {
  1570. context.pushNamed(
  1571. HorecagelegenhedenOverzichtCurrentWidget.routeName,
  1572. queryParameters: {
  1573. 'plaats': serializeParam(
  1574. FFAppState().gemeenteSelectId,
  1575. ParamType.String,
  1576. ),
  1577. }.withoutNulls,
  1578. );
  1579. },
  1580. text: FFLocalizations.of(context).getText(
  1581. 'ukbd1ac9' /* Alle horecagelegenheden */,
  1582. ),
  1583. options: FFButtonOptions(
  1584. height: 40.0,
  1585. padding:
  1586. EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 0.0),
  1587. iconPadding:
  1588. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  1589. color: FlutterFlowTheme.of(context).secondary,
  1590. textStyle:
  1591. FlutterFlowTheme.of(context).titleSmall.override(
  1592. font: GoogleFonts.roboto(
  1593. fontWeight: FlutterFlowTheme.of(context)
  1594. .titleSmall
  1595. .fontWeight,
  1596. fontStyle: FlutterFlowTheme.of(context)
  1597. .titleSmall
  1598. .fontStyle,
  1599. ),
  1600. color: Colors.white,
  1601. letterSpacing: 0.0,
  1602. fontWeight: FlutterFlowTheme.of(context)
  1603. .titleSmall
  1604. .fontWeight,
  1605. fontStyle: FlutterFlowTheme.of(context)
  1606. .titleSmall
  1607. .fontStyle,
  1608. ),
  1609. elevation: 0.0,
  1610. borderRadius: BorderRadius.circular(8.0),
  1611. ),
  1612. ),
  1613. ],
  1614. ),
  1615. ),
  1616. ),
  1617. );
  1618. },
  1619. );
  1620. }
  1621. }