horecagelegenheid_current_widget.dart 90 KB

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