horecagelegenheid_current_widget.dart 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542
  1. import '/backend/api_requests/api_calls.dart';
  2. import '/components/google_maps_icon_button_widget.dart';
  3. import '/components/header_buttons_component_widget.dart';
  4. import '/flutter_flow/flutter_flow_ad_banner.dart';
  5. import '/flutter_flow/flutter_flow_icon_button.dart';
  6. import '/flutter_flow/flutter_flow_theme.dart';
  7. import '/flutter_flow/flutter_flow_util.dart';
  8. import '/flutter_flow/flutter_flow_widgets.dart';
  9. import '/horecagelegenhedenoverzicht/horecagelegenheid_event_tabel_component_copy/horecagelegenheid_event_tabel_component_copy_widget.dart';
  10. import '/shared/drawer_component/drawer_component_widget.dart';
  11. import 'dart:ui';
  12. import '/custom_code/actions/index.dart' as actions;
  13. import '/flutter_flow/custom_functions.dart' as functions;
  14. import '/index.dart';
  15. import 'package:aligned_tooltip/aligned_tooltip.dart';
  16. import 'package:carousel_slider/carousel_slider.dart';
  17. import 'package:cached_network_image/cached_network_image.dart';
  18. import 'package:flutter/material.dart';
  19. import 'package:flutter_blurhash/flutter_blurhash.dart';
  20. import 'package:flutter_spinkit/flutter_spinkit.dart';
  21. import 'package:google_fonts/google_fonts.dart';
  22. import 'package:octo_image/octo_image.dart';
  23. import 'package:provider/provider.dart';
  24. import 'horecagelegenheid_current_model.dart';
  25. export 'horecagelegenheid_current_model.dart';
  26. /// Establishment
  27. class HorecagelegenheidCurrentWidget extends StatefulWidget {
  28. const HorecagelegenheidCurrentWidget({
  29. super.key,
  30. required this.nid,
  31. });
  32. /// establishment nid
  33. final String? nid;
  34. static String routeName = 'horecagelegenheidCurrent';
  35. static String routePath = '/horecagelegenheidCurrent';
  36. @override
  37. State<HorecagelegenheidCurrentWidget> createState() =>
  38. _HorecagelegenheidCurrentWidgetState();
  39. }
  40. class _HorecagelegenheidCurrentWidgetState
  41. extends State<HorecagelegenheidCurrentWidget>
  42. with TickerProviderStateMixin, RouteAware {
  43. late HorecagelegenheidCurrentModel _model;
  44. final scaffoldKey = GlobalKey<ScaffoldState>();
  45. @override
  46. void initState() {
  47. super.initState();
  48. _model = createModel(context, () => HorecagelegenheidCurrentModel());
  49. _model.tabBarController = TabController(
  50. vsync: this,
  51. length: 3,
  52. initialIndex: 0,
  53. )
  54. ..addListener(() => safeSetState(() {}))
  55. ..addListener(() {
  56. debugLogWidgetClass(_model);
  57. });
  58. }
  59. @override
  60. void dispose() {
  61. routeObserver.unsubscribe(this);
  62. _model.dispose();
  63. super.dispose();
  64. }
  65. @override
  66. void didUpdateWidget(HorecagelegenheidCurrentWidget oldWidget) {
  67. super.didUpdateWidget(oldWidget);
  68. _model.widget = widget;
  69. }
  70. @override
  71. void didChangeDependencies() {
  72. super.didChangeDependencies();
  73. final route = DebugModalRoute.of(context);
  74. if (route != null) {
  75. routeObserver.subscribe(this, route);
  76. }
  77. debugLogGlobalProperty(context);
  78. }
  79. @override
  80. void didPopNext() {
  81. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  82. setState(() => _model.isRouteVisible = true);
  83. debugLogWidgetClass(_model);
  84. }
  85. }
  86. @override
  87. void didPush() {
  88. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  89. setState(() => _model.isRouteVisible = true);
  90. debugLogWidgetClass(_model);
  91. }
  92. }
  93. @override
  94. void didPop() {
  95. _model.isRouteVisible = false;
  96. }
  97. @override
  98. void didPushNext() {
  99. _model.isRouteVisible = false;
  100. }
  101. @override
  102. Widget build(BuildContext context) {
  103. DebugFlutterFlowModelContext.maybeOf(context)
  104. ?.parentModelCallback
  105. ?.call(_model);
  106. context.watch<FFAppState>();
  107. return FutureBuilder<ApiCallResponse>(
  108. future: EstablishmentInfoCall.call(
  109. nid: widget!.nid,
  110. ),
  111. builder: (context, snapshot) {
  112. // Customize what your widget looks like when it's loading.
  113. if (!snapshot.hasData) {
  114. return Scaffold(
  115. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  116. body: Center(
  117. child: SizedBox(
  118. width: 80.0,
  119. height: 80.0,
  120. child: SpinKitFadingCircle(
  121. color: FlutterFlowTheme.of(context).primary,
  122. size: 80.0,
  123. ),
  124. ),
  125. ),
  126. );
  127. }
  128. final horecagelegenheidCurrentEstablishmentInfoResponse =
  129. snapshot.data!;
  130. _model.debugBackendQueries[
  131. 'EstablishmentInfoCall_statusCode_Scaffold_m8hqnbgb'] =
  132. debugSerializeParam(
  133. horecagelegenheidCurrentEstablishmentInfoResponse.statusCode,
  134. ParamType.int,
  135. link:
  136. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  137. name: 'int',
  138. nullable: false,
  139. );
  140. _model.debugBackendQueries[
  141. 'EstablishmentInfoCall_responseBody_Scaffold_m8hqnbgb'] =
  142. debugSerializeParam(
  143. horecagelegenheidCurrentEstablishmentInfoResponse.bodyText,
  144. ParamType.String,
  145. link:
  146. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  147. name: 'String',
  148. nullable: false,
  149. );
  150. debugLogWidgetClass(_model);
  151. return GestureDetector(
  152. onTap: () {
  153. FocusScope.of(context).unfocus();
  154. FocusManager.instance.primaryFocus?.unfocus();
  155. },
  156. child: Scaffold(
  157. key: scaffoldKey,
  158. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  159. drawer: Drawer(
  160. elevation: 16.0,
  161. child: wrapWithModel(
  162. model: _model.drawerComponentModel,
  163. updateCallback: () => safeSetState(() {}),
  164. child: Builder(builder: (_) {
  165. return DebugFlutterFlowModelContext(
  166. rootModel: _model.rootModel,
  167. child: DrawerComponentWidget(),
  168. );
  169. }),
  170. ),
  171. ),
  172. appBar: PreferredSize(
  173. preferredSize: Size.fromHeight(80.0),
  174. child: AppBar(
  175. backgroundColor: FlutterFlowTheme.of(context).info,
  176. iconTheme: IconThemeData(
  177. color: FlutterFlowTheme.of(context).secondary),
  178. automaticallyImplyLeading: false,
  179. actions: [],
  180. flexibleSpace: FlexibleSpaceBar(
  181. background: Row(
  182. mainAxisSize: MainAxisSize.max,
  183. children: [
  184. wrapWithModel(
  185. model: _model.headerButtonsComponentModel,
  186. updateCallback: () => safeSetState(() {}),
  187. child: Builder(builder: (_) {
  188. return DebugFlutterFlowModelContext(
  189. rootModel: _model.rootModel,
  190. child: HeaderButtonsComponentWidget(),
  191. );
  192. }),
  193. ),
  194. ],
  195. ),
  196. centerTitle: true,
  197. expandedTitleScale: 1.0,
  198. ),
  199. bottom: PreferredSize(
  200. preferredSize: Size.fromHeight(70.0),
  201. child: Container(),
  202. ),
  203. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  204. elevation: 2.0,
  205. ),
  206. ),
  207. body: SafeArea(
  208. top: true,
  209. child: Column(
  210. mainAxisSize: MainAxisSize.max,
  211. children: [
  212. Stack(
  213. children: [
  214. Container(
  215. width: 366.1,
  216. height: 281.5,
  217. decoration: BoxDecoration(
  218. color:
  219. FlutterFlowTheme.of(context).secondaryBackground,
  220. ),
  221. child: Builder(
  222. builder: (context) {
  223. final fotoos =
  224. EstablishmentInfoCall.establishmentFotoos(
  225. horecagelegenheidCurrentEstablishmentInfoResponse
  226. .jsonBody,
  227. )?.toList() ??
  228. [];
  229. if (fotoos.isEmpty) {
  230. return Image.asset(
  231. 'assets/images/logo800px.png',
  232. );
  233. }
  234. _model.debugGeneratorVariables[
  235. 'fotoos${fotoos.length > 100 ? ' (first 100)' : ''}'] =
  236. debugSerializeParam(
  237. fotoos.take(100),
  238. ParamType.String,
  239. isList: true,
  240. link:
  241. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  242. name: 'String',
  243. nullable: false,
  244. );
  245. debugLogWidgetClass(_model);
  246. return Container(
  247. width: double.infinity,
  248. height: 200.0,
  249. child: CarouselSlider.builder(
  250. itemCount: fotoos.length,
  251. itemBuilder: (context, fotoosIndex, _) {
  252. final fotoosItem = fotoos[fotoosIndex];
  253. return Builder(
  254. builder: (context) {
  255. if (fotoosItem != null &&
  256. fotoosItem != '') {
  257. return ClipRRect(
  258. borderRadius:
  259. BorderRadius.circular(8.0),
  260. child: OctoImage(
  261. placeholderBuilder: (_) {
  262. final blurHash =
  263. 'L6PZfSi_.AyE_3t7t7R**0o#DgR4';
  264. if (!validateBlurhash(blurHash)) {
  265. return const SizedBox.shrink();
  266. }
  267. return SizedBox.expand(
  268. child: Image(
  269. image:
  270. BlurHashImage(blurHash),
  271. fit: BoxFit.cover,
  272. ),
  273. );
  274. },
  275. image: CachedNetworkImageProvider(
  276. fotoosItem,
  277. ),
  278. width: 200.0,
  279. height: 200.0,
  280. fit: BoxFit.fitWidth,
  281. ),
  282. );
  283. } else {
  284. return Icon(
  285. Icons.image_not_supported,
  286. color: FlutterFlowTheme.of(context)
  287. .primaryText,
  288. size: 24.0,
  289. );
  290. }
  291. },
  292. );
  293. },
  294. carouselController:
  295. _model.carouselController ??=
  296. CarouselSliderController(),
  297. options: CarouselOptions(
  298. initialPage:
  299. max(0, min(1, fotoos.length - 1)),
  300. viewportFraction: 0.5,
  301. disableCenter: true,
  302. enlargeCenterPage: true,
  303. enlargeFactor: 0.25,
  304. enableInfiniteScroll: true,
  305. scrollDirection: Axis.horizontal,
  306. autoPlay: false,
  307. onPageChanged: (index, _) =>
  308. _model.carouselCurrentIndex = index,
  309. ),
  310. ),
  311. );
  312. },
  313. ),
  314. ),
  315. Align(
  316. alignment: AlignmentDirectional(1.0, 0.0),
  317. child: AlignedTooltip(
  318. content: Padding(
  319. padding: EdgeInsets.all(4.0),
  320. child: Text(
  321. FFLocalizations.of(context).getText(
  322. 'gh9ciiqo' /* Favoriet */,
  323. ),
  324. style: FlutterFlowTheme.of(context)
  325. .bodyLarge
  326. .override(
  327. font: GoogleFonts.roboto(
  328. fontWeight: FlutterFlowTheme.of(context)
  329. .bodyLarge
  330. .fontWeight,
  331. fontStyle: FlutterFlowTheme.of(context)
  332. .bodyLarge
  333. .fontStyle,
  334. ),
  335. letterSpacing: 0.0,
  336. fontWeight: FlutterFlowTheme.of(context)
  337. .bodyLarge
  338. .fontWeight,
  339. fontStyle: FlutterFlowTheme.of(context)
  340. .bodyLarge
  341. .fontStyle,
  342. ),
  343. ),
  344. ),
  345. offset: 4.0,
  346. preferredDirection: AxisDirection.down,
  347. borderRadius: BorderRadius.circular(8.0),
  348. backgroundColor:
  349. FlutterFlowTheme.of(context).secondaryBackground,
  350. elevation: 4.0,
  351. tailBaseWidth: 24.0,
  352. tailLength: 12.0,
  353. waitDuration: Duration(milliseconds: 100),
  354. showDuration: Duration(milliseconds: 1500),
  355. triggerMode: TooltipTriggerMode.tap,
  356. child: Builder(
  357. builder: (context) {
  358. if (FFAppState()
  359. .favorieteHorecaNids
  360. .contains(widget!.nid)) {
  361. return FlutterFlowIconButton(
  362. borderRadius: 8.0,
  363. buttonSize: 32.0,
  364. fillColor: Colors.white,
  365. icon: Icon(
  366. Icons.favorite,
  367. color: FlutterFlowTheme.of(context).primary,
  368. size: 24.0,
  369. ),
  370. onPressed: () async {
  371. FFAppState().removeFromFavorieteHorecaNids(
  372. widget!.nid!);
  373. safeSetState(() {});
  374. await actions.drupalRequest(
  375. 'POST',
  376. 'https://uitgaanskrant.com/nl/flutterdrup/favorieten/unflag.json',
  377. FFAppState().userSessionname,
  378. FFAppState().userSessionid,
  379. FFAppState().userToken,
  380. functions
  381. .favorietenBodyNode(widget!.nid!)!,
  382. );
  383. },
  384. );
  385. } else {
  386. return FlutterFlowIconButton(
  387. borderRadius: 8.0,
  388. buttonSize: 32.0,
  389. fillColor: Colors.white,
  390. icon: Icon(
  391. Icons.favorite_border,
  392. color: FlutterFlowTheme.of(context).primary,
  393. size: 24.0,
  394. ),
  395. onPressed: () async {
  396. FFAppState()
  397. .addToFavorieteHorecaNids(widget!.nid!);
  398. safeSetState(() {});
  399. await actions.drupalRequest(
  400. 'POST',
  401. 'https://uitgaanskrant.com/nl/flutterdrup/favorieten/flag.json',
  402. FFAppState().userSessionname,
  403. FFAppState().userSessionid,
  404. FFAppState().userToken,
  405. functions
  406. .favorietenBodyNode(widget!.nid!)!,
  407. );
  408. },
  409. );
  410. }
  411. },
  412. ),
  413. ),
  414. ),
  415. ],
  416. ),
  417. if (getJsonField(
  418. horecagelegenheidCurrentEstablishmentInfoResponse
  419. .jsonBody,
  420. r'''$[:].titel''',
  421. ) !=
  422. null)
  423. Text(
  424. valueOrDefault<String>(
  425. EstablishmentInfoCall.establshmentTitel(
  426. horecagelegenheidCurrentEstablishmentInfoResponse
  427. .jsonBody,
  428. ),
  429. 'title',
  430. ),
  431. style:
  432. FlutterFlowTheme.of(context).headlineMedium.override(
  433. font: GoogleFonts.roboto(
  434. fontWeight: FlutterFlowTheme.of(context)
  435. .headlineMedium
  436. .fontWeight,
  437. fontStyle: FlutterFlowTheme.of(context)
  438. .headlineMedium
  439. .fontStyle,
  440. ),
  441. letterSpacing: 0.0,
  442. fontWeight: FlutterFlowTheme.of(context)
  443. .headlineMedium
  444. .fontWeight,
  445. fontStyle: FlutterFlowTheme.of(context)
  446. .headlineMedium
  447. .fontStyle,
  448. shadows: [
  449. Shadow(
  450. color: FlutterFlowTheme.of(context).secondaryText,
  451. offset: Offset(2.0, 2.0),
  452. blurRadius: 2.0,
  453. )
  454. ],
  455. ),
  456. ),
  457. Padding(
  458. padding:
  459. EdgeInsetsDirectional.fromSTEB(0.0, 15.0, 0.0, 0.0),
  460. child: FlutterFlowAdBanner(
  461. showsTestAd: true,
  462. iOSAdUnitID: 'ca-app-pub-2431417692812232/5511582981',
  463. androidAdUnitID: 'ca-app-pub-2431417692812232/6657143691',
  464. ),
  465. ),
  466. Expanded(
  467. child: Column(
  468. children: [
  469. Align(
  470. alignment: Alignment(0.0, 0),
  471. child: TabBar(
  472. labelColor:
  473. FlutterFlowTheme.of(context).primaryText,
  474. unselectedLabelColor:
  475. FlutterFlowTheme.of(context).secondaryText,
  476. labelStyle: FlutterFlowTheme.of(context)
  477. .titleMedium
  478. .override(
  479. font: GoogleFonts.roboto(
  480. fontWeight: FlutterFlowTheme.of(context)
  481. .titleMedium
  482. .fontWeight,
  483. fontStyle: FlutterFlowTheme.of(context)
  484. .titleMedium
  485. .fontStyle,
  486. ),
  487. letterSpacing: 0.0,
  488. fontWeight: FlutterFlowTheme.of(context)
  489. .titleMedium
  490. .fontWeight,
  491. fontStyle: FlutterFlowTheme.of(context)
  492. .titleMedium
  493. .fontStyle,
  494. ),
  495. unselectedLabelStyle: FlutterFlowTheme.of(context)
  496. .titleMedium
  497. .override(
  498. font: GoogleFonts.roboto(
  499. fontWeight: FlutterFlowTheme.of(context)
  500. .titleMedium
  501. .fontWeight,
  502. fontStyle: FlutterFlowTheme.of(context)
  503. .titleMedium
  504. .fontStyle,
  505. ),
  506. letterSpacing: 0.0,
  507. fontWeight: FlutterFlowTheme.of(context)
  508. .titleMedium
  509. .fontWeight,
  510. fontStyle: FlutterFlowTheme.of(context)
  511. .titleMedium
  512. .fontStyle,
  513. ),
  514. indicatorColor:
  515. FlutterFlowTheme.of(context).secondary,
  516. tabs: [
  517. Tab(
  518. text: FFLocalizations.of(context).getText(
  519. 'pedeshok' /* Info */,
  520. ),
  521. ),
  522. Tab(
  523. text: FFLocalizations.of(context).getText(
  524. 'q5nwrlms' /* Links */,
  525. ),
  526. ),
  527. Tab(
  528. text: FFLocalizations.of(context).getText(
  529. 's1b6yp7v' /* Bezorgen */,
  530. ),
  531. ),
  532. ],
  533. controller: _model.tabBarController,
  534. onTap: (i) async {
  535. [() async {}, () async {}, () async {}][i]();
  536. },
  537. ),
  538. ),
  539. Expanded(
  540. child: TabBarView(
  541. controller: _model.tabBarController,
  542. children: [
  543. Column(
  544. mainAxisSize: MainAxisSize.max,
  545. children: [
  546. if (getJsonField(
  547. horecagelegenheidCurrentEstablishmentInfoResponse
  548. .jsonBody,
  549. r'''$[:].logo''',
  550. ) !=
  551. null)
  552. ClipRRect(
  553. borderRadius: BorderRadius.circular(8.0),
  554. child: CachedNetworkImage(
  555. fadeInDuration:
  556. Duration(milliseconds: 500),
  557. fadeOutDuration:
  558. Duration(milliseconds: 500),
  559. imageUrl: valueOrDefault<String>(
  560. EstablishmentInfoCall
  561. .establshmentLogo(
  562. horecagelegenheidCurrentEstablishmentInfoResponse
  563. .jsonBody,
  564. ),
  565. 'logo',
  566. ),
  567. width: 200.0,
  568. height: 200.0,
  569. fit: BoxFit.cover,
  570. ),
  571. ),
  572. if (EstablishmentInfoCall.establishmentAdres(
  573. horecagelegenheidCurrentEstablishmentInfoResponse
  574. .jsonBody,
  575. ) !=
  576. null &&
  577. EstablishmentInfoCall.establishmentAdres(
  578. horecagelegenheidCurrentEstablishmentInfoResponse
  579. .jsonBody,
  580. ) !=
  581. '')
  582. Text(
  583. getJsonField(
  584. horecagelegenheidCurrentEstablishmentInfoResponse
  585. .jsonBody,
  586. r'''$[:].adres''',
  587. ).toString(),
  588. style: FlutterFlowTheme.of(context)
  589. .bodyMedium
  590. .override(
  591. font: GoogleFonts.roboto(
  592. fontWeight:
  593. FlutterFlowTheme.of(context)
  594. .bodyMedium
  595. .fontWeight,
  596. fontStyle:
  597. FlutterFlowTheme.of(context)
  598. .bodyMedium
  599. .fontStyle,
  600. ),
  601. letterSpacing: 0.0,
  602. fontWeight:
  603. FlutterFlowTheme.of(context)
  604. .bodyMedium
  605. .fontWeight,
  606. fontStyle:
  607. FlutterFlowTheme.of(context)
  608. .bodyMedium
  609. .fontStyle,
  610. ),
  611. ),
  612. if (EstablishmentInfoCall.establishmentPlaats(
  613. horecagelegenheidCurrentEstablishmentInfoResponse
  614. .jsonBody,
  615. ) !=
  616. null &&
  617. EstablishmentInfoCall.establishmentPlaats(
  618. horecagelegenheidCurrentEstablishmentInfoResponse
  619. .jsonBody,
  620. ) !=
  621. '')
  622. Text(
  623. getJsonField(
  624. horecagelegenheidCurrentEstablishmentInfoResponse
  625. .jsonBody,
  626. r'''$[:].plaats''',
  627. ).toString(),
  628. style: FlutterFlowTheme.of(context)
  629. .bodyMedium
  630. .override(
  631. font: GoogleFonts.roboto(
  632. fontWeight:
  633. FlutterFlowTheme.of(context)
  634. .bodyMedium
  635. .fontWeight,
  636. fontStyle:
  637. FlutterFlowTheme.of(context)
  638. .bodyMedium
  639. .fontStyle,
  640. ),
  641. letterSpacing: 0.0,
  642. fontWeight:
  643. FlutterFlowTheme.of(context)
  644. .bodyMedium
  645. .fontWeight,
  646. fontStyle:
  647. FlutterFlowTheme.of(context)
  648. .bodyMedium
  649. .fontStyle,
  650. ),
  651. ),
  652. if (EstablishmentInfoCall
  653. .establishmentTelefoonnummer(
  654. horecagelegenheidCurrentEstablishmentInfoResponse
  655. .jsonBody,
  656. ) !=
  657. null &&
  658. EstablishmentInfoCall
  659. .establishmentTelefoonnummer(
  660. horecagelegenheidCurrentEstablishmentInfoResponse
  661. .jsonBody,
  662. ) !=
  663. '')
  664. Text(
  665. getJsonField(
  666. horecagelegenheidCurrentEstablishmentInfoResponse
  667. .jsonBody,
  668. r'''$[:].telefoonnummer''',
  669. ).toString(),
  670. style: FlutterFlowTheme.of(context)
  671. .bodyMedium
  672. .override(
  673. font: GoogleFonts.roboto(
  674. fontWeight:
  675. FlutterFlowTheme.of(context)
  676. .bodyMedium
  677. .fontWeight,
  678. fontStyle:
  679. FlutterFlowTheme.of(context)
  680. .bodyMedium
  681. .fontStyle,
  682. ),
  683. letterSpacing: 0.0,
  684. fontWeight:
  685. FlutterFlowTheme.of(context)
  686. .bodyMedium
  687. .fontWeight,
  688. fontStyle:
  689. FlutterFlowTheme.of(context)
  690. .bodyMedium
  691. .fontStyle,
  692. ),
  693. ),
  694. if (EstablishmentInfoCall.establishmentEmail(
  695. horecagelegenheidCurrentEstablishmentInfoResponse
  696. .jsonBody,
  697. ) !=
  698. null &&
  699. EstablishmentInfoCall.establishmentEmail(
  700. horecagelegenheidCurrentEstablishmentInfoResponse
  701. .jsonBody,
  702. ) !=
  703. '')
  704. Text(
  705. getJsonField(
  706. horecagelegenheidCurrentEstablishmentInfoResponse
  707. .jsonBody,
  708. r'''$[:].email''',
  709. ).toString(),
  710. style: FlutterFlowTheme.of(context)
  711. .bodyMedium
  712. .override(
  713. font: GoogleFonts.roboto(
  714. fontWeight:
  715. FlutterFlowTheme.of(context)
  716. .bodyMedium
  717. .fontWeight,
  718. fontStyle:
  719. FlutterFlowTheme.of(context)
  720. .bodyMedium
  721. .fontStyle,
  722. ),
  723. letterSpacing: 0.0,
  724. fontWeight:
  725. FlutterFlowTheme.of(context)
  726. .bodyMedium
  727. .fontWeight,
  728. fontStyle:
  729. FlutterFlowTheme.of(context)
  730. .bodyMedium
  731. .fontStyle,
  732. ),
  733. ),
  734. if (EstablishmentInfoCall.establshmentKvk(
  735. horecagelegenheidCurrentEstablishmentInfoResponse
  736. .jsonBody,
  737. ) !=
  738. null &&
  739. EstablishmentInfoCall.establshmentKvk(
  740. horecagelegenheidCurrentEstablishmentInfoResponse
  741. .jsonBody,
  742. ) !=
  743. '')
  744. Text(
  745. getJsonField(
  746. horecagelegenheidCurrentEstablishmentInfoResponse
  747. .jsonBody,
  748. r'''$[:].kvk''',
  749. ).toString(),
  750. style: FlutterFlowTheme.of(context)
  751. .bodyMedium
  752. .override(
  753. font: GoogleFonts.roboto(
  754. fontWeight:
  755. FlutterFlowTheme.of(context)
  756. .bodyMedium
  757. .fontWeight,
  758. fontStyle:
  759. FlutterFlowTheme.of(context)
  760. .bodyMedium
  761. .fontStyle,
  762. ),
  763. letterSpacing: 0.0,
  764. fontWeight:
  765. FlutterFlowTheme.of(context)
  766. .bodyMedium
  767. .fontWeight,
  768. fontStyle:
  769. FlutterFlowTheme.of(context)
  770. .bodyMedium
  771. .fontStyle,
  772. ),
  773. ),
  774. Builder(
  775. builder: (context) {
  776. final cryptocoins = EstablishmentInfoCall
  777. .establishmentCryptocoins(
  778. horecagelegenheidCurrentEstablishmentInfoResponse
  779. .jsonBody,
  780. )?.toList() ??
  781. [];
  782. _model.debugGeneratorVariables[
  783. 'cryptocoins${cryptocoins.length > 100 ? ' (first 100)' : ''}'] =
  784. debugSerializeParam(
  785. cryptocoins.take(100),
  786. ParamType.String,
  787. isList: true,
  788. link:
  789. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  790. name: 'String',
  791. nullable: false,
  792. );
  793. debugLogWidgetClass(_model);
  794. return Wrap(
  795. spacing: 0.0,
  796. runSpacing: 0.0,
  797. alignment: WrapAlignment.start,
  798. crossAxisAlignment:
  799. WrapCrossAlignment.start,
  800. direction: Axis.horizontal,
  801. runAlignment: WrapAlignment.start,
  802. verticalDirection:
  803. VerticalDirection.down,
  804. clipBehavior: Clip.none,
  805. children:
  806. List.generate(cryptocoins.length,
  807. (cryptocoinsIndex) {
  808. final cryptocoinsItem =
  809. cryptocoins[cryptocoinsIndex];
  810. return Text(
  811. cryptocoinsItem,
  812. style: FlutterFlowTheme.of(context)
  813. .bodyMedium
  814. .override(
  815. font: GoogleFonts.roboto(
  816. fontWeight:
  817. FlutterFlowTheme.of(
  818. context)
  819. .bodyMedium
  820. .fontWeight,
  821. fontStyle:
  822. FlutterFlowTheme.of(
  823. context)
  824. .bodyMedium
  825. .fontStyle,
  826. ),
  827. letterSpacing: 0.0,
  828. fontWeight:
  829. FlutterFlowTheme.of(
  830. context)
  831. .bodyMedium
  832. .fontWeight,
  833. fontStyle:
  834. FlutterFlowTheme.of(
  835. context)
  836. .bodyMedium
  837. .fontStyle,
  838. ),
  839. );
  840. }),
  841. );
  842. },
  843. ),
  844. wrapWithModel(
  845. model: _model.googleMapsIconButtonModel,
  846. updateCallback: () => safeSetState(() {}),
  847. child: Builder(builder: (_) {
  848. return DebugFlutterFlowModelContext(
  849. rootModel: _model.rootModel,
  850. child: GoogleMapsIconButtonWidget(
  851. adres: EstablishmentInfoCall
  852. .establishmentAdres(
  853. horecagelegenheidCurrentEstablishmentInfoResponse
  854. .jsonBody,
  855. )!,
  856. plaats: EstablishmentInfoCall
  857. .establishmentPlaats(
  858. horecagelegenheidCurrentEstablishmentInfoResponse
  859. .jsonBody,
  860. )!,
  861. ),
  862. );
  863. }),
  864. ),
  865. ],
  866. ),
  867. Column(
  868. mainAxisSize: MainAxisSize.max,
  869. children: [
  870. if (EstablishmentInfoCall
  871. .establishmentWebsite(
  872. horecagelegenheidCurrentEstablishmentInfoResponse
  873. .jsonBody,
  874. ) !=
  875. null &&
  876. EstablishmentInfoCall
  877. .establishmentWebsite(
  878. horecagelegenheidCurrentEstablishmentInfoResponse
  879. .jsonBody,
  880. ) !=
  881. '')
  882. InkWell(
  883. splashColor: Colors.transparent,
  884. focusColor: Colors.transparent,
  885. hoverColor: Colors.transparent,
  886. highlightColor: Colors.transparent,
  887. onTap: () async {
  888. await launchURL(getJsonField(
  889. horecagelegenheidCurrentEstablishmentInfoResponse
  890. .jsonBody,
  891. r'''$[:].website''',
  892. ).toString());
  893. },
  894. child: Text(
  895. getJsonField(
  896. horecagelegenheidCurrentEstablishmentInfoResponse
  897. .jsonBody,
  898. r'''$[:].website''',
  899. ).toString(),
  900. style: FlutterFlowTheme.of(context)
  901. .bodyMedium
  902. .override(
  903. font: GoogleFonts.roboto(
  904. fontWeight:
  905. FlutterFlowTheme.of(context)
  906. .bodyMedium
  907. .fontWeight,
  908. fontStyle:
  909. FlutterFlowTheme.of(context)
  910. .bodyMedium
  911. .fontStyle,
  912. ),
  913. letterSpacing: 0.0,
  914. fontWeight:
  915. FlutterFlowTheme.of(context)
  916. .bodyMedium
  917. .fontWeight,
  918. fontStyle:
  919. FlutterFlowTheme.of(context)
  920. .bodyMedium
  921. .fontStyle,
  922. ),
  923. ),
  924. ),
  925. if (EstablishmentInfoCall
  926. .establishmentMenukaart(
  927. horecagelegenheidCurrentEstablishmentInfoResponse
  928. .jsonBody,
  929. ) !=
  930. null &&
  931. EstablishmentInfoCall
  932. .establishmentMenukaart(
  933. horecagelegenheidCurrentEstablishmentInfoResponse
  934. .jsonBody,
  935. ) !=
  936. '')
  937. InkWell(
  938. splashColor: Colors.transparent,
  939. focusColor: Colors.transparent,
  940. hoverColor: Colors.transparent,
  941. highlightColor: Colors.transparent,
  942. onTap: () async {
  943. await launchURL(getJsonField(
  944. horecagelegenheidCurrentEstablishmentInfoResponse
  945. .jsonBody,
  946. r'''$[:].menukaart''',
  947. ).toString());
  948. },
  949. child: Text(
  950. getJsonField(
  951. horecagelegenheidCurrentEstablishmentInfoResponse
  952. .jsonBody,
  953. r'''$[:].menukaart''',
  954. ).toString(),
  955. style: FlutterFlowTheme.of(context)
  956. .bodyMedium
  957. .override(
  958. font: GoogleFonts.roboto(
  959. fontWeight:
  960. FlutterFlowTheme.of(context)
  961. .bodyMedium
  962. .fontWeight,
  963. fontStyle:
  964. FlutterFlowTheme.of(context)
  965. .bodyMedium
  966. .fontStyle,
  967. ),
  968. letterSpacing: 0.0,
  969. fontWeight:
  970. FlutterFlowTheme.of(context)
  971. .bodyMedium
  972. .fontWeight,
  973. fontStyle:
  974. FlutterFlowTheme.of(context)
  975. .bodyMedium
  976. .fontStyle,
  977. ),
  978. ),
  979. ),
  980. if (EstablishmentInfoCall
  981. .establishmentFacebook(
  982. horecagelegenheidCurrentEstablishmentInfoResponse
  983. .jsonBody,
  984. ) !=
  985. null &&
  986. EstablishmentInfoCall
  987. .establishmentFacebook(
  988. horecagelegenheidCurrentEstablishmentInfoResponse
  989. .jsonBody,
  990. ) !=
  991. '')
  992. InkWell(
  993. splashColor: Colors.transparent,
  994. focusColor: Colors.transparent,
  995. hoverColor: Colors.transparent,
  996. highlightColor: Colors.transparent,
  997. onTap: () async {
  998. await launchURL(getJsonField(
  999. horecagelegenheidCurrentEstablishmentInfoResponse
  1000. .jsonBody,
  1001. r'''$[:].facebook''',
  1002. ).toString());
  1003. },
  1004. child: Text(
  1005. getJsonField(
  1006. horecagelegenheidCurrentEstablishmentInfoResponse
  1007. .jsonBody,
  1008. r'''$[:].facebook''',
  1009. ).toString(),
  1010. style: FlutterFlowTheme.of(context)
  1011. .bodyMedium
  1012. .override(
  1013. font: GoogleFonts.roboto(
  1014. fontWeight:
  1015. FlutterFlowTheme.of(context)
  1016. .bodyMedium
  1017. .fontWeight,
  1018. fontStyle:
  1019. FlutterFlowTheme.of(context)
  1020. .bodyMedium
  1021. .fontStyle,
  1022. ),
  1023. letterSpacing: 0.0,
  1024. fontWeight:
  1025. FlutterFlowTheme.of(context)
  1026. .bodyMedium
  1027. .fontWeight,
  1028. fontStyle:
  1029. FlutterFlowTheme.of(context)
  1030. .bodyMedium
  1031. .fontStyle,
  1032. ),
  1033. ),
  1034. ),
  1035. if (EstablishmentInfoCall
  1036. .establishmentTwitter(
  1037. horecagelegenheidCurrentEstablishmentInfoResponse
  1038. .jsonBody,
  1039. ) !=
  1040. null &&
  1041. EstablishmentInfoCall
  1042. .establishmentTwitter(
  1043. horecagelegenheidCurrentEstablishmentInfoResponse
  1044. .jsonBody,
  1045. ) !=
  1046. '')
  1047. InkWell(
  1048. splashColor: Colors.transparent,
  1049. focusColor: Colors.transparent,
  1050. hoverColor: Colors.transparent,
  1051. highlightColor: Colors.transparent,
  1052. onTap: () async {
  1053. await launchURL(getJsonField(
  1054. horecagelegenheidCurrentEstablishmentInfoResponse
  1055. .jsonBody,
  1056. r'''$[:].twitter''',
  1057. ).toString());
  1058. },
  1059. child: Text(
  1060. getJsonField(
  1061. horecagelegenheidCurrentEstablishmentInfoResponse
  1062. .jsonBody,
  1063. r'''$[:].twitter''',
  1064. ).toString(),
  1065. style: FlutterFlowTheme.of(context)
  1066. .bodyMedium
  1067. .override(
  1068. font: GoogleFonts.roboto(
  1069. fontWeight:
  1070. FlutterFlowTheme.of(context)
  1071. .bodyMedium
  1072. .fontWeight,
  1073. fontStyle:
  1074. FlutterFlowTheme.of(context)
  1075. .bodyMedium
  1076. .fontStyle,
  1077. ),
  1078. letterSpacing: 0.0,
  1079. fontWeight:
  1080. FlutterFlowTheme.of(context)
  1081. .bodyMedium
  1082. .fontWeight,
  1083. fontStyle:
  1084. FlutterFlowTheme.of(context)
  1085. .bodyMedium
  1086. .fontStyle,
  1087. ),
  1088. ),
  1089. ),
  1090. if (EstablishmentInfoCall
  1091. .establishmentInstagram(
  1092. horecagelegenheidCurrentEstablishmentInfoResponse
  1093. .jsonBody,
  1094. ) !=
  1095. null &&
  1096. EstablishmentInfoCall
  1097. .establishmentInstagram(
  1098. horecagelegenheidCurrentEstablishmentInfoResponse
  1099. .jsonBody,
  1100. ) !=
  1101. '')
  1102. InkWell(
  1103. splashColor: Colors.transparent,
  1104. focusColor: Colors.transparent,
  1105. hoverColor: Colors.transparent,
  1106. highlightColor: Colors.transparent,
  1107. onTap: () async {
  1108. await launchURL(getJsonField(
  1109. horecagelegenheidCurrentEstablishmentInfoResponse
  1110. .jsonBody,
  1111. r'''$[:].instagram''',
  1112. ).toString());
  1113. },
  1114. child: Text(
  1115. getJsonField(
  1116. horecagelegenheidCurrentEstablishmentInfoResponse
  1117. .jsonBody,
  1118. r'''$[:].instagram''',
  1119. ).toString(),
  1120. style: FlutterFlowTheme.of(context)
  1121. .bodyMedium
  1122. .override(
  1123. font: GoogleFonts.roboto(
  1124. fontWeight:
  1125. FlutterFlowTheme.of(context)
  1126. .bodyMedium
  1127. .fontWeight,
  1128. fontStyle:
  1129. FlutterFlowTheme.of(context)
  1130. .bodyMedium
  1131. .fontStyle,
  1132. ),
  1133. letterSpacing: 0.0,
  1134. fontWeight:
  1135. FlutterFlowTheme.of(context)
  1136. .bodyMedium
  1137. .fontWeight,
  1138. fontStyle:
  1139. FlutterFlowTheme.of(context)
  1140. .bodyMedium
  1141. .fontStyle,
  1142. ),
  1143. ),
  1144. ),
  1145. ],
  1146. ),
  1147. Column(
  1148. mainAxisSize: MainAxisSize.max,
  1149. children: [
  1150. Text(
  1151. getJsonField(
  1152. horecagelegenheidCurrentEstablishmentInfoResponse
  1153. .jsonBody,
  1154. r'''$[:].afhaalopties''',
  1155. ).toString(),
  1156. style: FlutterFlowTheme.of(context)
  1157. .bodyMedium
  1158. .override(
  1159. font: GoogleFonts.roboto(
  1160. fontWeight:
  1161. FlutterFlowTheme.of(context)
  1162. .bodyMedium
  1163. .fontWeight,
  1164. fontStyle:
  1165. FlutterFlowTheme.of(context)
  1166. .bodyMedium
  1167. .fontStyle,
  1168. ),
  1169. letterSpacing: 0.0,
  1170. fontWeight:
  1171. FlutterFlowTheme.of(context)
  1172. .bodyMedium
  1173. .fontWeight,
  1174. fontStyle:
  1175. FlutterFlowTheme.of(context)
  1176. .bodyMedium
  1177. .fontStyle,
  1178. ),
  1179. ),
  1180. if (EstablishmentInfoCall
  1181. .establshmentBestellink(
  1182. horecagelegenheidCurrentEstablishmentInfoResponse
  1183. .jsonBody,
  1184. ) !=
  1185. null &&
  1186. EstablishmentInfoCall
  1187. .establshmentBestellink(
  1188. horecagelegenheidCurrentEstablishmentInfoResponse
  1189. .jsonBody,
  1190. ) !=
  1191. '')
  1192. InkWell(
  1193. splashColor: Colors.transparent,
  1194. focusColor: Colors.transparent,
  1195. hoverColor: Colors.transparent,
  1196. highlightColor: Colors.transparent,
  1197. onTap: () async {
  1198. await launchURL(getJsonField(
  1199. horecagelegenheidCurrentEstablishmentInfoResponse
  1200. .jsonBody,
  1201. r'''$[:].bestellink''',
  1202. ).toString());
  1203. },
  1204. child: Text(
  1205. getJsonField(
  1206. horecagelegenheidCurrentEstablishmentInfoResponse
  1207. .jsonBody,
  1208. r'''$[:].bestellink''',
  1209. ).toString(),
  1210. style: FlutterFlowTheme.of(context)
  1211. .bodyMedium
  1212. .override(
  1213. font: GoogleFonts.roboto(
  1214. fontWeight:
  1215. FlutterFlowTheme.of(context)
  1216. .bodyMedium
  1217. .fontWeight,
  1218. fontStyle:
  1219. FlutterFlowTheme.of(context)
  1220. .bodyMedium
  1221. .fontStyle,
  1222. ),
  1223. letterSpacing: 0.0,
  1224. fontWeight:
  1225. FlutterFlowTheme.of(context)
  1226. .bodyMedium
  1227. .fontWeight,
  1228. fontStyle:
  1229. FlutterFlowTheme.of(context)
  1230. .bodyMedium
  1231. .fontStyle,
  1232. ),
  1233. ),
  1234. ),
  1235. if (EstablishmentInfoCall
  1236. .establishmentbezorgtijden(
  1237. horecagelegenheidCurrentEstablishmentInfoResponse
  1238. .jsonBody,
  1239. ) !=
  1240. null &&
  1241. EstablishmentInfoCall
  1242. .establishmentbezorgtijden(
  1243. horecagelegenheidCurrentEstablishmentInfoResponse
  1244. .jsonBody,
  1245. ) !=
  1246. '')
  1247. Text(
  1248. getJsonField(
  1249. horecagelegenheidCurrentEstablishmentInfoResponse
  1250. .jsonBody,
  1251. r'''$[:].bezorgtijden''',
  1252. ).toString(),
  1253. style: FlutterFlowTheme.of(context)
  1254. .bodyMedium
  1255. .override(
  1256. font: GoogleFonts.roboto(
  1257. fontWeight:
  1258. FlutterFlowTheme.of(context)
  1259. .bodyMedium
  1260. .fontWeight,
  1261. fontStyle:
  1262. FlutterFlowTheme.of(context)
  1263. .bodyMedium
  1264. .fontStyle,
  1265. ),
  1266. letterSpacing: 0.0,
  1267. fontWeight:
  1268. FlutterFlowTheme.of(context)
  1269. .bodyMedium
  1270. .fontWeight,
  1271. fontStyle:
  1272. FlutterFlowTheme.of(context)
  1273. .bodyMedium
  1274. .fontStyle,
  1275. ),
  1276. ),
  1277. if (EstablishmentInfoCall
  1278. .establishmentBezorgkosten(
  1279. horecagelegenheidCurrentEstablishmentInfoResponse
  1280. .jsonBody,
  1281. ) !=
  1282. null &&
  1283. EstablishmentInfoCall
  1284. .establishmentBezorgkosten(
  1285. horecagelegenheidCurrentEstablishmentInfoResponse
  1286. .jsonBody,
  1287. ) !=
  1288. '')
  1289. Text(
  1290. getJsonField(
  1291. horecagelegenheidCurrentEstablishmentInfoResponse
  1292. .jsonBody,
  1293. r'''$[:].bezorgkosten''',
  1294. ).toString(),
  1295. style: FlutterFlowTheme.of(context)
  1296. .bodyMedium
  1297. .override(
  1298. font: GoogleFonts.roboto(
  1299. fontWeight:
  1300. FlutterFlowTheme.of(context)
  1301. .bodyMedium
  1302. .fontWeight,
  1303. fontStyle:
  1304. FlutterFlowTheme.of(context)
  1305. .bodyMedium
  1306. .fontStyle,
  1307. ),
  1308. letterSpacing: 0.0,
  1309. fontWeight:
  1310. FlutterFlowTheme.of(context)
  1311. .bodyMedium
  1312. .fontWeight,
  1313. fontStyle:
  1314. FlutterFlowTheme.of(context)
  1315. .bodyMedium
  1316. .fontStyle,
  1317. ),
  1318. ),
  1319. if (EstablishmentInfoCall
  1320. .establishmentMinimaleorder(
  1321. horecagelegenheidCurrentEstablishmentInfoResponse
  1322. .jsonBody,
  1323. ) !=
  1324. null &&
  1325. EstablishmentInfoCall
  1326. .establishmentMinimaleorder(
  1327. horecagelegenheidCurrentEstablishmentInfoResponse
  1328. .jsonBody,
  1329. ) !=
  1330. '')
  1331. Text(
  1332. getJsonField(
  1333. horecagelegenheidCurrentEstablishmentInfoResponse
  1334. .jsonBody,
  1335. r'''$[:].minimaleorder''',
  1336. ).toString(),
  1337. style: FlutterFlowTheme.of(context)
  1338. .bodyMedium
  1339. .override(
  1340. font: GoogleFonts.roboto(
  1341. fontWeight:
  1342. FlutterFlowTheme.of(context)
  1343. .bodyMedium
  1344. .fontWeight,
  1345. fontStyle:
  1346. FlutterFlowTheme.of(context)
  1347. .bodyMedium
  1348. .fontStyle,
  1349. ),
  1350. letterSpacing: 0.0,
  1351. fontWeight:
  1352. FlutterFlowTheme.of(context)
  1353. .bodyMedium
  1354. .fontWeight,
  1355. fontStyle:
  1356. FlutterFlowTheme.of(context)
  1357. .bodyMedium
  1358. .fontStyle,
  1359. ),
  1360. ),
  1361. if (getJsonField(
  1362. horecagelegenheidCurrentEstablishmentInfoResponse
  1363. .jsonBody,
  1364. r'''$[:].thuisbezorgtbetaalopties''',
  1365. ) !=
  1366. null)
  1367. Text(
  1368. getJsonField(
  1369. horecagelegenheidCurrentEstablishmentInfoResponse
  1370. .jsonBody,
  1371. r'''$[:].thuisbezorgtbetaalopties''',
  1372. ).toString(),
  1373. style: FlutterFlowTheme.of(context)
  1374. .bodyMedium
  1375. .override(
  1376. font: GoogleFonts.roboto(
  1377. fontWeight:
  1378. FlutterFlowTheme.of(context)
  1379. .bodyMedium
  1380. .fontWeight,
  1381. fontStyle:
  1382. FlutterFlowTheme.of(context)
  1383. .bodyMedium
  1384. .fontStyle,
  1385. ),
  1386. letterSpacing: 0.0,
  1387. fontWeight:
  1388. FlutterFlowTheme.of(context)
  1389. .bodyMedium
  1390. .fontWeight,
  1391. fontStyle:
  1392. FlutterFlowTheme.of(context)
  1393. .bodyMedium
  1394. .fontStyle,
  1395. ),
  1396. ),
  1397. Text(
  1398. getJsonField(
  1399. horecagelegenheidCurrentEstablishmentInfoResponse
  1400. .jsonBody,
  1401. r'''$[:].bezorgdin''',
  1402. ).toString(),
  1403. style: FlutterFlowTheme.of(context)
  1404. .bodyMedium
  1405. .override(
  1406. font: GoogleFonts.roboto(
  1407. fontWeight:
  1408. FlutterFlowTheme.of(context)
  1409. .bodyMedium
  1410. .fontWeight,
  1411. fontStyle:
  1412. FlutterFlowTheme.of(context)
  1413. .bodyMedium
  1414. .fontStyle,
  1415. ),
  1416. letterSpacing: 0.0,
  1417. fontWeight:
  1418. FlutterFlowTheme.of(context)
  1419. .bodyMedium
  1420. .fontWeight,
  1421. fontStyle:
  1422. FlutterFlowTheme.of(context)
  1423. .bodyMedium
  1424. .fontStyle,
  1425. ),
  1426. ),
  1427. ],
  1428. ),
  1429. ],
  1430. ),
  1431. ),
  1432. ],
  1433. ),
  1434. ),
  1435. Expanded(
  1436. child: Container(
  1437. width: 462.72,
  1438. height: 100.0,
  1439. decoration: BoxDecoration(
  1440. color: FlutterFlowTheme.of(context).secondaryBackground,
  1441. ),
  1442. child: Column(
  1443. mainAxisSize: MainAxisSize.max,
  1444. children: [
  1445. Expanded(
  1446. child: wrapWithModel(
  1447. model: _model
  1448. .horecagelegenheidEventTabelComponentCopyModel,
  1449. updateCallback: () => safeSetState(() {}),
  1450. child: Builder(builder: (_) {
  1451. return DebugFlutterFlowModelContext(
  1452. rootModel: _model.rootModel,
  1453. child:
  1454. HorecagelegenheidEventTabelComponentCopyWidget(
  1455. nid: widget!.nid!,
  1456. horecaid: widget!.nid,
  1457. ),
  1458. );
  1459. }),
  1460. ),
  1461. ),
  1462. ],
  1463. ),
  1464. ),
  1465. ),
  1466. FFButtonWidget(
  1467. onPressed: () async {
  1468. context.pushNamed(
  1469. HorecagelegenhedenOverzichtWidget.routeName,
  1470. queryParameters: {
  1471. 'plaats': serializeParam(
  1472. FFAppState().gemeenteSelectId,
  1473. ParamType.String,
  1474. ),
  1475. }.withoutNulls,
  1476. );
  1477. },
  1478. text: FFLocalizations.of(context).getText(
  1479. 'ukbd1ac9' /* Alle horecagelegenheden */,
  1480. ),
  1481. options: FFButtonOptions(
  1482. height: 40.0,
  1483. padding:
  1484. EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 0.0),
  1485. iconPadding:
  1486. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  1487. color: FlutterFlowTheme.of(context).secondary,
  1488. textStyle:
  1489. FlutterFlowTheme.of(context).titleSmall.override(
  1490. font: GoogleFonts.roboto(
  1491. fontWeight: FlutterFlowTheme.of(context)
  1492. .titleSmall
  1493. .fontWeight,
  1494. fontStyle: FlutterFlowTheme.of(context)
  1495. .titleSmall
  1496. .fontStyle,
  1497. ),
  1498. color: Colors.white,
  1499. letterSpacing: 0.0,
  1500. fontWeight: FlutterFlowTheme.of(context)
  1501. .titleSmall
  1502. .fontWeight,
  1503. fontStyle: FlutterFlowTheme.of(context)
  1504. .titleSmall
  1505. .fontStyle,
  1506. ),
  1507. elevation: 0.0,
  1508. borderRadius: BorderRadius.circular(8.0),
  1509. ),
  1510. ),
  1511. ],
  1512. ),
  1513. ),
  1514. ),
  1515. );
  1516. },
  1517. );
  1518. }
  1519. }