horecagelegenheid_current_widget.dart 88 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623
  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. letterSpacing: 0.0,
  974. fontWeight:
  975. FlutterFlowTheme.of(context)
  976. .bodyMedium
  977. .fontWeight,
  978. fontStyle:
  979. FlutterFlowTheme.of(context)
  980. .bodyMedium
  981. .fontStyle,
  982. ),
  983. ),
  984. ),
  985. if (EstablishmentInfoCall
  986. .establishmentMenukaart(
  987. horecagelegenheidCurrentEstablishmentInfoResponse
  988. .jsonBody,
  989. ) !=
  990. null &&
  991. EstablishmentInfoCall
  992. .establishmentMenukaart(
  993. horecagelegenheidCurrentEstablishmentInfoResponse
  994. .jsonBody,
  995. ) !=
  996. '')
  997. InkWell(
  998. splashColor: Colors.transparent,
  999. focusColor: Colors.transparent,
  1000. hoverColor: Colors.transparent,
  1001. highlightColor: Colors.transparent,
  1002. onTap: () async {
  1003. await launchURL(getJsonField(
  1004. horecagelegenheidCurrentEstablishmentInfoResponse
  1005. .jsonBody,
  1006. r'''$[:].menukaart''',
  1007. ).toString());
  1008. },
  1009. child: Text(
  1010. getJsonField(
  1011. horecagelegenheidCurrentEstablishmentInfoResponse
  1012. .jsonBody,
  1013. r'''$[:].menukaart''',
  1014. ).toString(),
  1015. style: FlutterFlowTheme.of(context)
  1016. .bodyMedium
  1017. .override(
  1018. font: GoogleFonts.roboto(
  1019. fontWeight:
  1020. FlutterFlowTheme.of(context)
  1021. .bodyMedium
  1022. .fontWeight,
  1023. fontStyle:
  1024. FlutterFlowTheme.of(context)
  1025. .bodyMedium
  1026. .fontStyle,
  1027. ),
  1028. letterSpacing: 0.0,
  1029. fontWeight:
  1030. FlutterFlowTheme.of(context)
  1031. .bodyMedium
  1032. .fontWeight,
  1033. fontStyle:
  1034. FlutterFlowTheme.of(context)
  1035. .bodyMedium
  1036. .fontStyle,
  1037. ),
  1038. ),
  1039. ),
  1040. if (EstablishmentInfoCall
  1041. .establishmentFacebook(
  1042. horecagelegenheidCurrentEstablishmentInfoResponse
  1043. .jsonBody,
  1044. ) !=
  1045. null &&
  1046. EstablishmentInfoCall
  1047. .establishmentFacebook(
  1048. horecagelegenheidCurrentEstablishmentInfoResponse
  1049. .jsonBody,
  1050. ) !=
  1051. '')
  1052. InkWell(
  1053. splashColor: Colors.transparent,
  1054. focusColor: Colors.transparent,
  1055. hoverColor: Colors.transparent,
  1056. highlightColor: Colors.transparent,
  1057. onTap: () async {
  1058. await launchURL(getJsonField(
  1059. horecagelegenheidCurrentEstablishmentInfoResponse
  1060. .jsonBody,
  1061. r'''$[:].facebook''',
  1062. ).toString());
  1063. },
  1064. child: Text(
  1065. getJsonField(
  1066. horecagelegenheidCurrentEstablishmentInfoResponse
  1067. .jsonBody,
  1068. r'''$[:].facebook''',
  1069. ).toString(),
  1070. style: FlutterFlowTheme.of(context)
  1071. .bodyMedium
  1072. .override(
  1073. font: GoogleFonts.roboto(
  1074. fontWeight:
  1075. FlutterFlowTheme.of(context)
  1076. .bodyMedium
  1077. .fontWeight,
  1078. fontStyle:
  1079. FlutterFlowTheme.of(context)
  1080. .bodyMedium
  1081. .fontStyle,
  1082. ),
  1083. letterSpacing: 0.0,
  1084. fontWeight:
  1085. FlutterFlowTheme.of(context)
  1086. .bodyMedium
  1087. .fontWeight,
  1088. fontStyle:
  1089. FlutterFlowTheme.of(context)
  1090. .bodyMedium
  1091. .fontStyle,
  1092. ),
  1093. ),
  1094. ),
  1095. if (EstablishmentInfoCall
  1096. .establishmentTwitter(
  1097. horecagelegenheidCurrentEstablishmentInfoResponse
  1098. .jsonBody,
  1099. ) !=
  1100. null &&
  1101. EstablishmentInfoCall
  1102. .establishmentTwitter(
  1103. horecagelegenheidCurrentEstablishmentInfoResponse
  1104. .jsonBody,
  1105. ) !=
  1106. '')
  1107. InkWell(
  1108. splashColor: Colors.transparent,
  1109. focusColor: Colors.transparent,
  1110. hoverColor: Colors.transparent,
  1111. highlightColor: Colors.transparent,
  1112. onTap: () async {
  1113. await launchURL(getJsonField(
  1114. horecagelegenheidCurrentEstablishmentInfoResponse
  1115. .jsonBody,
  1116. r'''$[:].twitter''',
  1117. ).toString());
  1118. },
  1119. child: Text(
  1120. getJsonField(
  1121. horecagelegenheidCurrentEstablishmentInfoResponse
  1122. .jsonBody,
  1123. r'''$[:].twitter''',
  1124. ).toString(),
  1125. style: FlutterFlowTheme.of(context)
  1126. .bodyMedium
  1127. .override(
  1128. font: GoogleFonts.roboto(
  1129. fontWeight:
  1130. FlutterFlowTheme.of(context)
  1131. .bodyMedium
  1132. .fontWeight,
  1133. fontStyle:
  1134. FlutterFlowTheme.of(context)
  1135. .bodyMedium
  1136. .fontStyle,
  1137. ),
  1138. letterSpacing: 0.0,
  1139. fontWeight:
  1140. FlutterFlowTheme.of(context)
  1141. .bodyMedium
  1142. .fontWeight,
  1143. fontStyle:
  1144. FlutterFlowTheme.of(context)
  1145. .bodyMedium
  1146. .fontStyle,
  1147. ),
  1148. ),
  1149. ),
  1150. if (EstablishmentInfoCall
  1151. .establishmentInstagram(
  1152. horecagelegenheidCurrentEstablishmentInfoResponse
  1153. .jsonBody,
  1154. ) !=
  1155. null &&
  1156. EstablishmentInfoCall
  1157. .establishmentInstagram(
  1158. horecagelegenheidCurrentEstablishmentInfoResponse
  1159. .jsonBody,
  1160. ) !=
  1161. '')
  1162. InkWell(
  1163. splashColor: Colors.transparent,
  1164. focusColor: Colors.transparent,
  1165. hoverColor: Colors.transparent,
  1166. highlightColor: Colors.transparent,
  1167. onTap: () async {
  1168. await launchURL(getJsonField(
  1169. horecagelegenheidCurrentEstablishmentInfoResponse
  1170. .jsonBody,
  1171. r'''$[:].instagram''',
  1172. ).toString());
  1173. },
  1174. child: Text(
  1175. getJsonField(
  1176. horecagelegenheidCurrentEstablishmentInfoResponse
  1177. .jsonBody,
  1178. r'''$[:].instagram''',
  1179. ).toString(),
  1180. style: FlutterFlowTheme.of(context)
  1181. .bodyMedium
  1182. .override(
  1183. font: GoogleFonts.roboto(
  1184. fontWeight:
  1185. FlutterFlowTheme.of(context)
  1186. .bodyMedium
  1187. .fontWeight,
  1188. fontStyle:
  1189. FlutterFlowTheme.of(context)
  1190. .bodyMedium
  1191. .fontStyle,
  1192. ),
  1193. letterSpacing: 0.0,
  1194. fontWeight:
  1195. FlutterFlowTheme.of(context)
  1196. .bodyMedium
  1197. .fontWeight,
  1198. fontStyle:
  1199. FlutterFlowTheme.of(context)
  1200. .bodyMedium
  1201. .fontStyle,
  1202. ),
  1203. ),
  1204. ),
  1205. ],
  1206. ),
  1207. Column(
  1208. mainAxisSize: MainAxisSize.max,
  1209. children: [
  1210. if (getJsonField(
  1211. horecagelegenheidCurrentEstablishmentInfoResponse
  1212. .jsonBody,
  1213. r'''$[:].afhaalopties''',
  1214. ) !=
  1215. null)
  1216. Text(
  1217. valueOrDefault<String>(
  1218. functions.lijstAlsTekst(getJsonField(
  1219. horecagelegenheidCurrentEstablishmentInfoResponse
  1220. .jsonBody,
  1221. r'''$[:].afhaalopties''',
  1222. )),
  1223. 'afhaalopties',
  1224. ),
  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. letterSpacing: 0.0,
  1239. fontWeight:
  1240. FlutterFlowTheme.of(context)
  1241. .bodyMedium
  1242. .fontWeight,
  1243. fontStyle:
  1244. FlutterFlowTheme.of(context)
  1245. .bodyMedium
  1246. .fontStyle,
  1247. ),
  1248. ),
  1249. if (EstablishmentInfoCall
  1250. .establshmentBestellink(
  1251. horecagelegenheidCurrentEstablishmentInfoResponse
  1252. .jsonBody,
  1253. ) !=
  1254. null &&
  1255. EstablishmentInfoCall
  1256. .establshmentBestellink(
  1257. horecagelegenheidCurrentEstablishmentInfoResponse
  1258. .jsonBody,
  1259. ) !=
  1260. '')
  1261. InkWell(
  1262. splashColor: Colors.transparent,
  1263. focusColor: Colors.transparent,
  1264. hoverColor: Colors.transparent,
  1265. highlightColor: Colors.transparent,
  1266. onTap: () async {
  1267. await launchURL(getJsonField(
  1268. horecagelegenheidCurrentEstablishmentInfoResponse
  1269. .jsonBody,
  1270. r'''$[:].bestellink''',
  1271. ).toString());
  1272. },
  1273. child: Text(
  1274. getJsonField(
  1275. horecagelegenheidCurrentEstablishmentInfoResponse
  1276. .jsonBody,
  1277. r'''$[:].bestellink''',
  1278. ).toString(),
  1279. style: FlutterFlowTheme.of(context)
  1280. .bodyMedium
  1281. .override(
  1282. font: GoogleFonts.roboto(
  1283. fontWeight:
  1284. FlutterFlowTheme.of(context)
  1285. .bodyMedium
  1286. .fontWeight,
  1287. fontStyle:
  1288. FlutterFlowTheme.of(context)
  1289. .bodyMedium
  1290. .fontStyle,
  1291. ),
  1292. letterSpacing: 0.0,
  1293. fontWeight:
  1294. FlutterFlowTheme.of(context)
  1295. .bodyMedium
  1296. .fontWeight,
  1297. fontStyle:
  1298. FlutterFlowTheme.of(context)
  1299. .bodyMedium
  1300. .fontStyle,
  1301. ),
  1302. ),
  1303. ),
  1304. if (EstablishmentInfoCall
  1305. .establishmentbezorgtijden(
  1306. horecagelegenheidCurrentEstablishmentInfoResponse
  1307. .jsonBody,
  1308. ) !=
  1309. null &&
  1310. EstablishmentInfoCall
  1311. .establishmentbezorgtijden(
  1312. horecagelegenheidCurrentEstablishmentInfoResponse
  1313. .jsonBody,
  1314. ) !=
  1315. '')
  1316. Text(
  1317. getJsonField(
  1318. horecagelegenheidCurrentEstablishmentInfoResponse
  1319. .jsonBody,
  1320. r'''$[:].bezorgtijden''',
  1321. ).toString(),
  1322. style: FlutterFlowTheme.of(context)
  1323. .bodyMedium
  1324. .override(
  1325. font: GoogleFonts.roboto(
  1326. fontWeight:
  1327. FlutterFlowTheme.of(context)
  1328. .bodyMedium
  1329. .fontWeight,
  1330. fontStyle:
  1331. FlutterFlowTheme.of(context)
  1332. .bodyMedium
  1333. .fontStyle,
  1334. ),
  1335. letterSpacing: 0.0,
  1336. fontWeight:
  1337. FlutterFlowTheme.of(context)
  1338. .bodyMedium
  1339. .fontWeight,
  1340. fontStyle:
  1341. FlutterFlowTheme.of(context)
  1342. .bodyMedium
  1343. .fontStyle,
  1344. ),
  1345. ),
  1346. if (EstablishmentInfoCall
  1347. .establishmentBezorgkosten(
  1348. horecagelegenheidCurrentEstablishmentInfoResponse
  1349. .jsonBody,
  1350. ) !=
  1351. null &&
  1352. EstablishmentInfoCall
  1353. .establishmentBezorgkosten(
  1354. horecagelegenheidCurrentEstablishmentInfoResponse
  1355. .jsonBody,
  1356. ) !=
  1357. '')
  1358. Text(
  1359. getJsonField(
  1360. horecagelegenheidCurrentEstablishmentInfoResponse
  1361. .jsonBody,
  1362. r'''$[:].bezorgkosten''',
  1363. ).toString(),
  1364. style: FlutterFlowTheme.of(context)
  1365. .bodyMedium
  1366. .override(
  1367. font: GoogleFonts.roboto(
  1368. fontWeight:
  1369. FlutterFlowTheme.of(context)
  1370. .bodyMedium
  1371. .fontWeight,
  1372. fontStyle:
  1373. FlutterFlowTheme.of(context)
  1374. .bodyMedium
  1375. .fontStyle,
  1376. ),
  1377. letterSpacing: 0.0,
  1378. fontWeight:
  1379. FlutterFlowTheme.of(context)
  1380. .bodyMedium
  1381. .fontWeight,
  1382. fontStyle:
  1383. FlutterFlowTheme.of(context)
  1384. .bodyMedium
  1385. .fontStyle,
  1386. ),
  1387. ),
  1388. if (EstablishmentInfoCall
  1389. .establishmentMinimaleorder(
  1390. horecagelegenheidCurrentEstablishmentInfoResponse
  1391. .jsonBody,
  1392. ) !=
  1393. null &&
  1394. EstablishmentInfoCall
  1395. .establishmentMinimaleorder(
  1396. horecagelegenheidCurrentEstablishmentInfoResponse
  1397. .jsonBody,
  1398. ) !=
  1399. '')
  1400. Text(
  1401. getJsonField(
  1402. horecagelegenheidCurrentEstablishmentInfoResponse
  1403. .jsonBody,
  1404. r'''$[:].minimaleorder''',
  1405. ).toString(),
  1406. style: FlutterFlowTheme.of(context)
  1407. .bodyMedium
  1408. .override(
  1409. font: GoogleFonts.roboto(
  1410. fontWeight:
  1411. FlutterFlowTheme.of(context)
  1412. .bodyMedium
  1413. .fontWeight,
  1414. fontStyle:
  1415. FlutterFlowTheme.of(context)
  1416. .bodyMedium
  1417. .fontStyle,
  1418. ),
  1419. letterSpacing: 0.0,
  1420. fontWeight:
  1421. FlutterFlowTheme.of(context)
  1422. .bodyMedium
  1423. .fontWeight,
  1424. fontStyle:
  1425. FlutterFlowTheme.of(context)
  1426. .bodyMedium
  1427. .fontStyle,
  1428. ),
  1429. ),
  1430. if (getJsonField(
  1431. horecagelegenheidCurrentEstablishmentInfoResponse
  1432. .jsonBody,
  1433. r'''$[:].thuisbezorgtbetaalopties''',
  1434. ) !=
  1435. null)
  1436. Text(
  1437. valueOrDefault<String>(
  1438. functions.lijstAlsTekst(getJsonField(
  1439. horecagelegenheidCurrentEstablishmentInfoResponse
  1440. .jsonBody,
  1441. r'''$[:].thuisbezorgtbetaalopties''',
  1442. )),
  1443. 'betaalopties',
  1444. ),
  1445. style: FlutterFlowTheme.of(context)
  1446. .bodyMedium
  1447. .override(
  1448. font: GoogleFonts.roboto(
  1449. fontWeight:
  1450. FlutterFlowTheme.of(context)
  1451. .bodyMedium
  1452. .fontWeight,
  1453. fontStyle:
  1454. FlutterFlowTheme.of(context)
  1455. .bodyMedium
  1456. .fontStyle,
  1457. ),
  1458. letterSpacing: 0.0,
  1459. fontWeight:
  1460. FlutterFlowTheme.of(context)
  1461. .bodyMedium
  1462. .fontWeight,
  1463. fontStyle:
  1464. FlutterFlowTheme.of(context)
  1465. .bodyMedium
  1466. .fontStyle,
  1467. ),
  1468. ),
  1469. if (getJsonField(
  1470. horecagelegenheidCurrentEstablishmentInfoResponse
  1471. .jsonBody,
  1472. r'''$[:].bezorgtin''',
  1473. ) !=
  1474. null)
  1475. Text(
  1476. valueOrDefault<String>(
  1477. functions.lijstAlsTekst(getJsonField(
  1478. horecagelegenheidCurrentEstablishmentInfoResponse
  1479. .jsonBody,
  1480. r'''$[:].bezorgtin''',
  1481. )),
  1482. 'bezorgdin',
  1483. ),
  1484. style: FlutterFlowTheme.of(context)
  1485. .bodyMedium
  1486. .override(
  1487. font: GoogleFonts.roboto(
  1488. fontWeight:
  1489. FlutterFlowTheme.of(context)
  1490. .bodyMedium
  1491. .fontWeight,
  1492. fontStyle:
  1493. FlutterFlowTheme.of(context)
  1494. .bodyMedium
  1495. .fontStyle,
  1496. ),
  1497. letterSpacing: 0.0,
  1498. fontWeight:
  1499. FlutterFlowTheme.of(context)
  1500. .bodyMedium
  1501. .fontWeight,
  1502. fontStyle:
  1503. FlutterFlowTheme.of(context)
  1504. .bodyMedium
  1505. .fontStyle,
  1506. ),
  1507. ),
  1508. ],
  1509. ),
  1510. ],
  1511. ),
  1512. ),
  1513. ],
  1514. ),
  1515. ),
  1516. Expanded(
  1517. child: Container(
  1518. width: 462.72,
  1519. height: 100.0,
  1520. decoration: BoxDecoration(
  1521. color: FlutterFlowTheme.of(context).secondaryBackground,
  1522. ),
  1523. child: Column(
  1524. mainAxisSize: MainAxisSize.max,
  1525. children: [
  1526. Expanded(
  1527. child: wrapWithModel(
  1528. model: _model
  1529. .horecagelegenheidEventTabelComponentCopyModel,
  1530. updateCallback: () => safeSetState(() {}),
  1531. child: Builder(builder: (_) {
  1532. return DebugFlutterFlowModelContext(
  1533. rootModel: _model.rootModel,
  1534. child:
  1535. HorecagelegenheidEventTabelComponentCopyWidget(
  1536. nid: widget!.nid!,
  1537. horecaid: widget!.nid,
  1538. ),
  1539. );
  1540. }),
  1541. ),
  1542. ),
  1543. ],
  1544. ),
  1545. ),
  1546. ),
  1547. FFButtonWidget(
  1548. onPressed: () async {
  1549. context.pushNamed(
  1550. HorecagelegenhedenOverzichtCurrentWidget.routeName,
  1551. queryParameters: {
  1552. 'plaats': serializeParam(
  1553. FFAppState().gemeenteSelectId,
  1554. ParamType.String,
  1555. ),
  1556. }.withoutNulls,
  1557. );
  1558. },
  1559. text: FFLocalizations.of(context).getText(
  1560. 'ukbd1ac9' /* Alle horecagelegenheden */,
  1561. ),
  1562. options: FFButtonOptions(
  1563. height: 40.0,
  1564. padding:
  1565. EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 0.0),
  1566. iconPadding:
  1567. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  1568. color: FlutterFlowTheme.of(context).secondary,
  1569. textStyle:
  1570. FlutterFlowTheme.of(context).titleSmall.override(
  1571. font: GoogleFonts.roboto(
  1572. fontWeight: FlutterFlowTheme.of(context)
  1573. .titleSmall
  1574. .fontWeight,
  1575. fontStyle: FlutterFlowTheme.of(context)
  1576. .titleSmall
  1577. .fontStyle,
  1578. ),
  1579. color: Colors.white,
  1580. letterSpacing: 0.0,
  1581. fontWeight: FlutterFlowTheme.of(context)
  1582. .titleSmall
  1583. .fontWeight,
  1584. fontStyle: FlutterFlowTheme.of(context)
  1585. .titleSmall
  1586. .fontStyle,
  1587. ),
  1588. elevation: 0.0,
  1589. borderRadius: BorderRadius.circular(8.0),
  1590. ),
  1591. ),
  1592. ],
  1593. ),
  1594. ),
  1595. ),
  1596. );
  1597. },
  1598. );
  1599. }
  1600. }