horecagelegenheid_current_widget.dart 90 KB

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