horecagelegenheid_current_widget.dart 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215
  1. import '/backend/api_requests/api_calls.dart';
  2. import '/components/header_buttons_component_widget.dart';
  3. import '/flutter_flow/flutter_flow_icon_button.dart';
  4. import '/flutter_flow/flutter_flow_theme.dart';
  5. import '/flutter_flow/flutter_flow_util.dart';
  6. import '/flutter_flow/flutter_flow_widgets.dart';
  7. import '/horecagelegenhedenoverzicht/horecagelegenheid_event_tabel_component_copy/horecagelegenheid_event_tabel_component_copy_widget.dart';
  8. import '/shared/drawer_component/drawer_component_widget.dart';
  9. import 'dart:ui';
  10. import '/custom_code/widgets/index.dart' as custom_widgets;
  11. import '/index.dart';
  12. import 'package:aligned_tooltip/aligned_tooltip.dart';
  13. import 'package:carousel_slider/carousel_slider.dart';
  14. import 'package:cached_network_image/cached_network_image.dart';
  15. import 'package:flutter/material.dart';
  16. import 'package:flutter_spinkit/flutter_spinkit.dart';
  17. import 'package:google_fonts/google_fonts.dart';
  18. import 'package:provider/provider.dart';
  19. import 'horecagelegenheid_current_model.dart';
  20. export 'horecagelegenheid_current_model.dart';
  21. /// Establishment
  22. class HorecagelegenheidCurrentWidget extends StatefulWidget {
  23. const HorecagelegenheidCurrentWidget({
  24. super.key,
  25. required this.nid,
  26. });
  27. /// establishment nid
  28. final String? nid;
  29. static String routeName = 'horecagelegenheidCurrent';
  30. static String routePath = '/horecagelegenheidCurrent';
  31. @override
  32. State<HorecagelegenheidCurrentWidget> createState() =>
  33. _HorecagelegenheidCurrentWidgetState();
  34. }
  35. class _HorecagelegenheidCurrentWidgetState
  36. extends State<HorecagelegenheidCurrentWidget>
  37. with TickerProviderStateMixin, RouteAware {
  38. late HorecagelegenheidCurrentModel _model;
  39. final scaffoldKey = GlobalKey<ScaffoldState>();
  40. @override
  41. void initState() {
  42. super.initState();
  43. _model = createModel(context, () => HorecagelegenheidCurrentModel());
  44. _model.tabBarController = TabController(
  45. vsync: this,
  46. length: 3,
  47. initialIndex: 0,
  48. )
  49. ..addListener(() => safeSetState(() {}))
  50. ..addListener(() {
  51. debugLogWidgetClass(_model);
  52. });
  53. }
  54. @override
  55. void dispose() {
  56. routeObserver.unsubscribe(this);
  57. _model.dispose();
  58. super.dispose();
  59. }
  60. @override
  61. void didUpdateWidget(HorecagelegenheidCurrentWidget oldWidget) {
  62. super.didUpdateWidget(oldWidget);
  63. _model.widget = widget;
  64. }
  65. @override
  66. void didChangeDependencies() {
  67. super.didChangeDependencies();
  68. final route = DebugModalRoute.of(context);
  69. if (route != null) {
  70. routeObserver.subscribe(this, route);
  71. }
  72. debugLogGlobalProperty(context);
  73. }
  74. @override
  75. void didPopNext() {
  76. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  77. setState(() => _model.isRouteVisible = true);
  78. debugLogWidgetClass(_model);
  79. }
  80. }
  81. @override
  82. void didPush() {
  83. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  84. setState(() => _model.isRouteVisible = true);
  85. debugLogWidgetClass(_model);
  86. }
  87. }
  88. @override
  89. void didPop() {
  90. _model.isRouteVisible = false;
  91. }
  92. @override
  93. void didPushNext() {
  94. _model.isRouteVisible = false;
  95. }
  96. @override
  97. Widget build(BuildContext context) {
  98. DebugFlutterFlowModelContext.maybeOf(context)
  99. ?.parentModelCallback
  100. ?.call(_model);
  101. context.watch<FFAppState>();
  102. return FutureBuilder<ApiCallResponse>(
  103. future: EstablishmentInfoCall.call(
  104. nid: widget!.nid,
  105. ),
  106. builder: (context, snapshot) {
  107. // Customize what your widget looks like when it's loading.
  108. if (!snapshot.hasData) {
  109. return Scaffold(
  110. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  111. body: Center(
  112. child: SizedBox(
  113. width: 80.0,
  114. height: 80.0,
  115. child: SpinKitFadingCircle(
  116. color: Color(0xFFB1061E),
  117. size: 80.0,
  118. ),
  119. ),
  120. ),
  121. );
  122. }
  123. final horecagelegenheidCurrentEstablishmentInfoResponse =
  124. snapshot.data!;
  125. _model.debugBackendQueries[
  126. 'EstablishmentInfoCall_statusCode_Scaffold_m8hqnbgb'] =
  127. debugSerializeParam(
  128. horecagelegenheidCurrentEstablishmentInfoResponse.statusCode,
  129. ParamType.int,
  130. link:
  131. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  132. name: 'int',
  133. nullable: false,
  134. );
  135. _model.debugBackendQueries[
  136. 'EstablishmentInfoCall_responseBody_Scaffold_m8hqnbgb'] =
  137. debugSerializeParam(
  138. horecagelegenheidCurrentEstablishmentInfoResponse.bodyText,
  139. ParamType.String,
  140. link:
  141. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  142. name: 'String',
  143. nullable: false,
  144. );
  145. debugLogWidgetClass(_model);
  146. return GestureDetector(
  147. onTap: () {
  148. FocusScope.of(context).unfocus();
  149. FocusManager.instance.primaryFocus?.unfocus();
  150. },
  151. child: Scaffold(
  152. key: scaffoldKey,
  153. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  154. drawer: Drawer(
  155. elevation: 16.0,
  156. child: wrapWithModel(
  157. model: _model.drawerComponentModel,
  158. updateCallback: () => safeSetState(() {}),
  159. child: Builder(builder: (_) {
  160. return DebugFlutterFlowModelContext(
  161. rootModel: _model.rootModel,
  162. child: DrawerComponentWidget(),
  163. );
  164. }),
  165. ),
  166. ),
  167. appBar: PreferredSize(
  168. preferredSize: Size.fromHeight(80.0),
  169. child: AppBar(
  170. backgroundColor: FlutterFlowTheme.of(context).info,
  171. iconTheme: IconThemeData(color: Color(0xFFB12727)),
  172. automaticallyImplyLeading: false,
  173. actions: [],
  174. flexibleSpace: FlexibleSpaceBar(
  175. background: Row(
  176. mainAxisSize: MainAxisSize.max,
  177. children: [
  178. wrapWithModel(
  179. model: _model.headerButtonsComponentModel,
  180. updateCallback: () => safeSetState(() {}),
  181. child: Builder(builder: (_) {
  182. return DebugFlutterFlowModelContext(
  183. rootModel: _model.rootModel,
  184. child: HeaderButtonsComponentWidget(),
  185. );
  186. }),
  187. ),
  188. ],
  189. ),
  190. centerTitle: true,
  191. expandedTitleScale: 1.0,
  192. ),
  193. bottom: PreferredSize(
  194. preferredSize: Size.fromHeight(70.0),
  195. child: Container(),
  196. ),
  197. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  198. elevation: 2.0,
  199. ),
  200. ),
  201. body: SafeArea(
  202. top: true,
  203. child: Column(
  204. mainAxisSize: MainAxisSize.max,
  205. children: [
  206. Stack(
  207. children: [
  208. Container(
  209. width: 366.1,
  210. height: 281.5,
  211. decoration: BoxDecoration(
  212. color:
  213. FlutterFlowTheme.of(context).secondaryBackground,
  214. ),
  215. child: Builder(
  216. builder: (context) {
  217. final fotoos =
  218. EstablishmentInfoCall.establishmentFotoos(
  219. horecagelegenheidCurrentEstablishmentInfoResponse
  220. .jsonBody,
  221. )?.toList() ??
  222. [];
  223. _model.debugGeneratorVariables[
  224. 'fotoos${fotoos.length > 100 ? ' (first 100)' : ''}'] =
  225. debugSerializeParam(
  226. fotoos.take(100),
  227. ParamType.String,
  228. isList: true,
  229. link:
  230. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  231. name: 'String',
  232. nullable: false,
  233. );
  234. debugLogWidgetClass(_model);
  235. return Container(
  236. width: double.infinity,
  237. height: 200.0,
  238. child: CarouselSlider.builder(
  239. itemCount: fotoos.length,
  240. itemBuilder: (context, fotoosIndex, _) {
  241. final fotoosItem = fotoos[fotoosIndex];
  242. return Builder(
  243. builder: (context) {
  244. if (fotoosItem != null &&
  245. fotoosItem != '') {
  246. return ClipRRect(
  247. borderRadius:
  248. BorderRadius.circular(8.0),
  249. child: CachedNetworkImage(
  250. fadeInDuration:
  251. Duration(milliseconds: 500),
  252. fadeOutDuration:
  253. Duration(milliseconds: 500),
  254. imageUrl: fotoosItem,
  255. width: 200.0,
  256. height: 200.0,
  257. fit: BoxFit.cover,
  258. ),
  259. );
  260. } else {
  261. return Icon(
  262. Icons.image_not_supported,
  263. color: FlutterFlowTheme.of(context)
  264. .primaryText,
  265. size: 24.0,
  266. );
  267. }
  268. },
  269. );
  270. },
  271. carouselController:
  272. _model.carouselController ??=
  273. CarouselSliderController(),
  274. options: CarouselOptions(
  275. initialPage:
  276. max(0, min(1, fotoos.length - 1)),
  277. viewportFraction: 0.5,
  278. disableCenter: true,
  279. enlargeCenterPage: true,
  280. enlargeFactor: 0.25,
  281. enableInfiniteScroll: true,
  282. scrollDirection: Axis.horizontal,
  283. autoPlay: false,
  284. onPageChanged: (index, _) =>
  285. _model.carouselCurrentIndex = index,
  286. ),
  287. ),
  288. );
  289. },
  290. ),
  291. ),
  292. Align(
  293. alignment: AlignmentDirectional(1.0, 0.0),
  294. child: AlignedTooltip(
  295. content: Padding(
  296. padding: EdgeInsets.all(4.0),
  297. child: Text(
  298. FFLocalizations.of(context).getText(
  299. 'kjqv6ycx' /* Favoriet */,
  300. ),
  301. style: FlutterFlowTheme.of(context)
  302. .bodyLarge
  303. .override(
  304. font: GoogleFonts.inter(
  305. fontWeight: FlutterFlowTheme.of(context)
  306. .bodyLarge
  307. .fontWeight,
  308. fontStyle: FlutterFlowTheme.of(context)
  309. .bodyLarge
  310. .fontStyle,
  311. ),
  312. letterSpacing: 0.0,
  313. fontWeight: FlutterFlowTheme.of(context)
  314. .bodyLarge
  315. .fontWeight,
  316. fontStyle: FlutterFlowTheme.of(context)
  317. .bodyLarge
  318. .fontStyle,
  319. ),
  320. ),
  321. ),
  322. offset: 4.0,
  323. preferredDirection: AxisDirection.down,
  324. borderRadius: BorderRadius.circular(8.0),
  325. backgroundColor:
  326. FlutterFlowTheme.of(context).secondaryBackground,
  327. elevation: 4.0,
  328. tailBaseWidth: 24.0,
  329. tailLength: 12.0,
  330. waitDuration: Duration(milliseconds: 100),
  331. showDuration: Duration(milliseconds: 1500),
  332. triggerMode: TooltipTriggerMode.tap,
  333. child: FlutterFlowIconButton(
  334. borderRadius: 8.0,
  335. buttonSize: 32.0,
  336. fillColor: Color(0x0AFFFFFF),
  337. icon: Icon(
  338. Icons.favorite_border,
  339. color: Color(0xFFB50808),
  340. size: 24.0,
  341. ),
  342. onPressed: () {
  343. print('IconButtonFavoriet pressed ...');
  344. },
  345. ),
  346. ),
  347. ),
  348. ],
  349. ),
  350. Text(
  351. valueOrDefault<String>(
  352. EstablishmentInfoCall.establshmentTitel(
  353. horecagelegenheidCurrentEstablishmentInfoResponse
  354. .jsonBody,
  355. ),
  356. 'title',
  357. ),
  358. style: FlutterFlowTheme.of(context).headlineMedium.override(
  359. font: GoogleFonts.interTight(
  360. fontWeight: FlutterFlowTheme.of(context)
  361. .headlineMedium
  362. .fontWeight,
  363. fontStyle: FlutterFlowTheme.of(context)
  364. .headlineMedium
  365. .fontStyle,
  366. ),
  367. letterSpacing: 0.0,
  368. fontWeight: FlutterFlowTheme.of(context)
  369. .headlineMedium
  370. .fontWeight,
  371. fontStyle:
  372. FlutterFlowTheme.of(context).headlineMedium.fontStyle,
  373. shadows: [
  374. Shadow(
  375. color: FlutterFlowTheme.of(context).secondaryText,
  376. offset: Offset(2.0, 2.0),
  377. blurRadius: 2.0,
  378. )
  379. ],
  380. ),
  381. ),
  382. Expanded(
  383. child: Column(
  384. children: [
  385. Align(
  386. alignment: Alignment(0.0, 0),
  387. child: TabBar(
  388. labelColor:
  389. FlutterFlowTheme.of(context).primaryText,
  390. unselectedLabelColor:
  391. FlutterFlowTheme.of(context).secondaryText,
  392. labelStyle: FlutterFlowTheme.of(context)
  393. .titleMedium
  394. .override(
  395. font: GoogleFonts.interTight(
  396. fontWeight: FlutterFlowTheme.of(context)
  397. .titleMedium
  398. .fontWeight,
  399. fontStyle: FlutterFlowTheme.of(context)
  400. .titleMedium
  401. .fontStyle,
  402. ),
  403. letterSpacing: 0.0,
  404. fontWeight: FlutterFlowTheme.of(context)
  405. .titleMedium
  406. .fontWeight,
  407. fontStyle: FlutterFlowTheme.of(context)
  408. .titleMedium
  409. .fontStyle,
  410. ),
  411. unselectedLabelStyle: FlutterFlowTheme.of(context)
  412. .titleMedium
  413. .override(
  414. font: GoogleFonts.interTight(
  415. fontWeight: FlutterFlowTheme.of(context)
  416. .titleMedium
  417. .fontWeight,
  418. fontStyle: FlutterFlowTheme.of(context)
  419. .titleMedium
  420. .fontStyle,
  421. ),
  422. letterSpacing: 0.0,
  423. fontWeight: FlutterFlowTheme.of(context)
  424. .titleMedium
  425. .fontWeight,
  426. fontStyle: FlutterFlowTheme.of(context)
  427. .titleMedium
  428. .fontStyle,
  429. ),
  430. indicatorColor:
  431. FlutterFlowTheme.of(context).primary,
  432. tabs: [
  433. Tab(
  434. text: FFLocalizations.of(context).getText(
  435. 'pedeshok' /* Info */,
  436. ),
  437. ),
  438. Tab(
  439. text: FFLocalizations.of(context).getText(
  440. 'q5nwrlms' /* Links */,
  441. ),
  442. ),
  443. Tab(
  444. text: FFLocalizations.of(context).getText(
  445. 's1b6yp7v' /* Bezorgen */,
  446. ),
  447. ),
  448. ],
  449. controller: _model.tabBarController,
  450. onTap: (i) async {
  451. [() async {}, () async {}, () async {}][i]();
  452. },
  453. ),
  454. ),
  455. Expanded(
  456. child: TabBarView(
  457. controller: _model.tabBarController,
  458. children: [
  459. Row(
  460. mainAxisSize: MainAxisSize.max,
  461. children: [
  462. Column(
  463. mainAxisSize: MainAxisSize.max,
  464. children: [
  465. ClipRRect(
  466. borderRadius:
  467. BorderRadius.circular(8.0),
  468. child: CachedNetworkImage(
  469. fadeInDuration:
  470. Duration(milliseconds: 500),
  471. fadeOutDuration:
  472. Duration(milliseconds: 500),
  473. imageUrl: valueOrDefault<String>(
  474. EstablishmentInfoCall
  475. .establshmentLogo(
  476. horecagelegenheidCurrentEstablishmentInfoResponse
  477. .jsonBody,
  478. ),
  479. 'logo',
  480. ),
  481. width: 200.0,
  482. height: 200.0,
  483. fit: BoxFit.cover,
  484. ),
  485. ),
  486. Text(
  487. getJsonField(
  488. horecagelegenheidCurrentEstablishmentInfoResponse
  489. .jsonBody,
  490. r'''$[:].adres''',
  491. ).toString(),
  492. style: FlutterFlowTheme.of(context)
  493. .bodyMedium
  494. .override(
  495. font: GoogleFonts.inter(
  496. fontWeight:
  497. FlutterFlowTheme.of(context)
  498. .bodyMedium
  499. .fontWeight,
  500. fontStyle:
  501. FlutterFlowTheme.of(context)
  502. .bodyMedium
  503. .fontStyle,
  504. ),
  505. letterSpacing: 0.0,
  506. fontWeight:
  507. FlutterFlowTheme.of(context)
  508. .bodyMedium
  509. .fontWeight,
  510. fontStyle:
  511. FlutterFlowTheme.of(context)
  512. .bodyMedium
  513. .fontStyle,
  514. ),
  515. ),
  516. Text(
  517. getJsonField(
  518. horecagelegenheidCurrentEstablishmentInfoResponse
  519. .jsonBody,
  520. r'''$[:].plaats''',
  521. ).toString(),
  522. style: FlutterFlowTheme.of(context)
  523. .bodyMedium
  524. .override(
  525. font: GoogleFonts.inter(
  526. fontWeight:
  527. FlutterFlowTheme.of(context)
  528. .bodyMedium
  529. .fontWeight,
  530. fontStyle:
  531. FlutterFlowTheme.of(context)
  532. .bodyMedium
  533. .fontStyle,
  534. ),
  535. letterSpacing: 0.0,
  536. fontWeight:
  537. FlutterFlowTheme.of(context)
  538. .bodyMedium
  539. .fontWeight,
  540. fontStyle:
  541. FlutterFlowTheme.of(context)
  542. .bodyMedium
  543. .fontStyle,
  544. ),
  545. ),
  546. Text(
  547. getJsonField(
  548. horecagelegenheidCurrentEstablishmentInfoResponse
  549. .jsonBody,
  550. r'''$[:].telefoonnummer''',
  551. ).toString(),
  552. style: FlutterFlowTheme.of(context)
  553. .bodyMedium
  554. .override(
  555. font: GoogleFonts.inter(
  556. fontWeight:
  557. FlutterFlowTheme.of(context)
  558. .bodyMedium
  559. .fontWeight,
  560. fontStyle:
  561. FlutterFlowTheme.of(context)
  562. .bodyMedium
  563. .fontStyle,
  564. ),
  565. letterSpacing: 0.0,
  566. fontWeight:
  567. FlutterFlowTheme.of(context)
  568. .bodyMedium
  569. .fontWeight,
  570. fontStyle:
  571. FlutterFlowTheme.of(context)
  572. .bodyMedium
  573. .fontStyle,
  574. ),
  575. ),
  576. Text(
  577. getJsonField(
  578. horecagelegenheidCurrentEstablishmentInfoResponse
  579. .jsonBody,
  580. r'''$[:].email''',
  581. ).toString(),
  582. style: FlutterFlowTheme.of(context)
  583. .bodyMedium
  584. .override(
  585. font: GoogleFonts.inter(
  586. fontWeight:
  587. FlutterFlowTheme.of(context)
  588. .bodyMedium
  589. .fontWeight,
  590. fontStyle:
  591. FlutterFlowTheme.of(context)
  592. .bodyMedium
  593. .fontStyle,
  594. ),
  595. letterSpacing: 0.0,
  596. fontWeight:
  597. FlutterFlowTheme.of(context)
  598. .bodyMedium
  599. .fontWeight,
  600. fontStyle:
  601. FlutterFlowTheme.of(context)
  602. .bodyMedium
  603. .fontStyle,
  604. ),
  605. ),
  606. Text(
  607. getJsonField(
  608. horecagelegenheidCurrentEstablishmentInfoResponse
  609. .jsonBody,
  610. r'''$[:].kvk''',
  611. ).toString(),
  612. style: FlutterFlowTheme.of(context)
  613. .bodyMedium
  614. .override(
  615. font: GoogleFonts.inter(
  616. fontWeight:
  617. FlutterFlowTheme.of(context)
  618. .bodyMedium
  619. .fontWeight,
  620. fontStyle:
  621. FlutterFlowTheme.of(context)
  622. .bodyMedium
  623. .fontStyle,
  624. ),
  625. letterSpacing: 0.0,
  626. fontWeight:
  627. FlutterFlowTheme.of(context)
  628. .bodyMedium
  629. .fontWeight,
  630. fontStyle:
  631. FlutterFlowTheme.of(context)
  632. .bodyMedium
  633. .fontStyle,
  634. ),
  635. ),
  636. Builder(
  637. builder: (context) {
  638. final cryptocoins =
  639. EstablishmentInfoCall
  640. .establishmentCryptocoins(
  641. horecagelegenheidCurrentEstablishmentInfoResponse
  642. .jsonBody,
  643. )?.toList() ??
  644. [];
  645. _model.debugGeneratorVariables[
  646. 'cryptocoins${cryptocoins.length > 100 ? ' (first 100)' : ''}'] =
  647. debugSerializeParam(
  648. cryptocoins.take(100),
  649. ParamType.String,
  650. isList: true,
  651. link:
  652. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=horecagelegenheidCurrent',
  653. name: 'String',
  654. nullable: false,
  655. );
  656. debugLogWidgetClass(_model);
  657. return Row(
  658. mainAxisSize: MainAxisSize.max,
  659. children: List.generate(
  660. cryptocoins.length,
  661. (cryptocoinsIndex) {
  662. final cryptocoinsItem =
  663. cryptocoins[cryptocoinsIndex];
  664. return Text(
  665. cryptocoinsItem,
  666. style:
  667. FlutterFlowTheme.of(context)
  668. .bodyMedium
  669. .override(
  670. font:
  671. GoogleFonts.inter(
  672. fontWeight:
  673. FlutterFlowTheme.of(
  674. context)
  675. .bodyMedium
  676. .fontWeight,
  677. fontStyle:
  678. FlutterFlowTheme.of(
  679. context)
  680. .bodyMedium
  681. .fontStyle,
  682. ),
  683. letterSpacing: 0.0,
  684. fontWeight:
  685. FlutterFlowTheme.of(
  686. context)
  687. .bodyMedium
  688. .fontWeight,
  689. fontStyle:
  690. FlutterFlowTheme.of(
  691. context)
  692. .bodyMedium
  693. .fontStyle,
  694. ),
  695. );
  696. }),
  697. );
  698. },
  699. ),
  700. ],
  701. ),
  702. Column(
  703. mainAxisSize: MainAxisSize.max,
  704. children: [
  705. Container(
  706. width:
  707. MediaQuery.sizeOf(context).width *
  708. 0.7,
  709. height:
  710. MediaQuery.sizeOf(context).height *
  711. 0.2,
  712. child: custom_widgets.FromHTML(
  713. width:
  714. MediaQuery.sizeOf(context).width *
  715. 0.7,
  716. height: MediaQuery.sizeOf(context)
  717. .height *
  718. 0.2,
  719. HTMLParameter: valueOrDefault<String>(
  720. EstablishmentInfoCall
  721. .establshmentInhoud(
  722. horecagelegenheidCurrentEstablishmentInfoResponse
  723. .jsonBody,
  724. ),
  725. 'content',
  726. ),
  727. ),
  728. ),
  729. ],
  730. ),
  731. ],
  732. ),
  733. Column(
  734. mainAxisSize: MainAxisSize.max,
  735. children: [
  736. Text(
  737. getJsonField(
  738. horecagelegenheidCurrentEstablishmentInfoResponse
  739. .jsonBody,
  740. r'''$[:].website''',
  741. ).toString(),
  742. style: FlutterFlowTheme.of(context)
  743. .bodyMedium
  744. .override(
  745. font: GoogleFonts.inter(
  746. fontWeight:
  747. FlutterFlowTheme.of(context)
  748. .bodyMedium
  749. .fontWeight,
  750. fontStyle:
  751. FlutterFlowTheme.of(context)
  752. .bodyMedium
  753. .fontStyle,
  754. ),
  755. letterSpacing: 0.0,
  756. fontWeight:
  757. FlutterFlowTheme.of(context)
  758. .bodyMedium
  759. .fontWeight,
  760. fontStyle:
  761. FlutterFlowTheme.of(context)
  762. .bodyMedium
  763. .fontStyle,
  764. ),
  765. ),
  766. Text(
  767. getJsonField(
  768. horecagelegenheidCurrentEstablishmentInfoResponse
  769. .jsonBody,
  770. r'''$[:].menukaart''',
  771. ).toString(),
  772. style: FlutterFlowTheme.of(context)
  773. .bodyMedium
  774. .override(
  775. font: GoogleFonts.inter(
  776. fontWeight:
  777. FlutterFlowTheme.of(context)
  778. .bodyMedium
  779. .fontWeight,
  780. fontStyle:
  781. FlutterFlowTheme.of(context)
  782. .bodyMedium
  783. .fontStyle,
  784. ),
  785. letterSpacing: 0.0,
  786. fontWeight:
  787. FlutterFlowTheme.of(context)
  788. .bodyMedium
  789. .fontWeight,
  790. fontStyle:
  791. FlutterFlowTheme.of(context)
  792. .bodyMedium
  793. .fontStyle,
  794. ),
  795. ),
  796. Text(
  797. getJsonField(
  798. horecagelegenheidCurrentEstablishmentInfoResponse
  799. .jsonBody,
  800. r'''$[:].facebook''',
  801. ).toString(),
  802. style: FlutterFlowTheme.of(context)
  803. .bodyMedium
  804. .override(
  805. font: GoogleFonts.inter(
  806. fontWeight:
  807. FlutterFlowTheme.of(context)
  808. .bodyMedium
  809. .fontWeight,
  810. fontStyle:
  811. FlutterFlowTheme.of(context)
  812. .bodyMedium
  813. .fontStyle,
  814. ),
  815. letterSpacing: 0.0,
  816. fontWeight:
  817. FlutterFlowTheme.of(context)
  818. .bodyMedium
  819. .fontWeight,
  820. fontStyle:
  821. FlutterFlowTheme.of(context)
  822. .bodyMedium
  823. .fontStyle,
  824. ),
  825. ),
  826. Text(
  827. getJsonField(
  828. horecagelegenheidCurrentEstablishmentInfoResponse
  829. .jsonBody,
  830. r'''$[:].twitter''',
  831. ).toString(),
  832. style: FlutterFlowTheme.of(context)
  833. .bodyMedium
  834. .override(
  835. font: GoogleFonts.inter(
  836. fontWeight:
  837. FlutterFlowTheme.of(context)
  838. .bodyMedium
  839. .fontWeight,
  840. fontStyle:
  841. FlutterFlowTheme.of(context)
  842. .bodyMedium
  843. .fontStyle,
  844. ),
  845. letterSpacing: 0.0,
  846. fontWeight:
  847. FlutterFlowTheme.of(context)
  848. .bodyMedium
  849. .fontWeight,
  850. fontStyle:
  851. FlutterFlowTheme.of(context)
  852. .bodyMedium
  853. .fontStyle,
  854. ),
  855. ),
  856. Text(
  857. getJsonField(
  858. horecagelegenheidCurrentEstablishmentInfoResponse
  859. .jsonBody,
  860. r'''$[:].instagram''',
  861. ).toString(),
  862. style: FlutterFlowTheme.of(context)
  863. .bodyMedium
  864. .override(
  865. font: GoogleFonts.inter(
  866. fontWeight:
  867. FlutterFlowTheme.of(context)
  868. .bodyMedium
  869. .fontWeight,
  870. fontStyle:
  871. FlutterFlowTheme.of(context)
  872. .bodyMedium
  873. .fontStyle,
  874. ),
  875. letterSpacing: 0.0,
  876. fontWeight:
  877. FlutterFlowTheme.of(context)
  878. .bodyMedium
  879. .fontWeight,
  880. fontStyle:
  881. FlutterFlowTheme.of(context)
  882. .bodyMedium
  883. .fontStyle,
  884. ),
  885. ),
  886. ],
  887. ),
  888. Column(
  889. mainAxisSize: MainAxisSize.max,
  890. children: [
  891. Text(
  892. getJsonField(
  893. horecagelegenheidCurrentEstablishmentInfoResponse
  894. .jsonBody,
  895. r'''$[:].afhaalopties''',
  896. ).toString(),
  897. style: FlutterFlowTheme.of(context)
  898. .bodyMedium
  899. .override(
  900. font: GoogleFonts.inter(
  901. fontWeight:
  902. FlutterFlowTheme.of(context)
  903. .bodyMedium
  904. .fontWeight,
  905. fontStyle:
  906. FlutterFlowTheme.of(context)
  907. .bodyMedium
  908. .fontStyle,
  909. ),
  910. letterSpacing: 0.0,
  911. fontWeight:
  912. FlutterFlowTheme.of(context)
  913. .bodyMedium
  914. .fontWeight,
  915. fontStyle:
  916. FlutterFlowTheme.of(context)
  917. .bodyMedium
  918. .fontStyle,
  919. ),
  920. ),
  921. Text(
  922. getJsonField(
  923. horecagelegenheidCurrentEstablishmentInfoResponse
  924. .jsonBody,
  925. r'''$[:].bestellink''',
  926. ).toString(),
  927. style: FlutterFlowTheme.of(context)
  928. .bodyMedium
  929. .override(
  930. font: GoogleFonts.inter(
  931. fontWeight:
  932. FlutterFlowTheme.of(context)
  933. .bodyMedium
  934. .fontWeight,
  935. fontStyle:
  936. FlutterFlowTheme.of(context)
  937. .bodyMedium
  938. .fontStyle,
  939. ),
  940. letterSpacing: 0.0,
  941. fontWeight:
  942. FlutterFlowTheme.of(context)
  943. .bodyMedium
  944. .fontWeight,
  945. fontStyle:
  946. FlutterFlowTheme.of(context)
  947. .bodyMedium
  948. .fontStyle,
  949. ),
  950. ),
  951. Text(
  952. getJsonField(
  953. horecagelegenheidCurrentEstablishmentInfoResponse
  954. .jsonBody,
  955. r'''$[:].bezorgtijden''',
  956. ).toString(),
  957. style: FlutterFlowTheme.of(context)
  958. .bodyMedium
  959. .override(
  960. font: GoogleFonts.inter(
  961. fontWeight:
  962. FlutterFlowTheme.of(context)
  963. .bodyMedium
  964. .fontWeight,
  965. fontStyle:
  966. FlutterFlowTheme.of(context)
  967. .bodyMedium
  968. .fontStyle,
  969. ),
  970. letterSpacing: 0.0,
  971. fontWeight:
  972. FlutterFlowTheme.of(context)
  973. .bodyMedium
  974. .fontWeight,
  975. fontStyle:
  976. FlutterFlowTheme.of(context)
  977. .bodyMedium
  978. .fontStyle,
  979. ),
  980. ),
  981. Text(
  982. getJsonField(
  983. horecagelegenheidCurrentEstablishmentInfoResponse
  984. .jsonBody,
  985. r'''$[:].bezorgkosten''',
  986. ).toString(),
  987. style: FlutterFlowTheme.of(context)
  988. .bodyMedium
  989. .override(
  990. font: GoogleFonts.inter(
  991. fontWeight:
  992. FlutterFlowTheme.of(context)
  993. .bodyMedium
  994. .fontWeight,
  995. fontStyle:
  996. FlutterFlowTheme.of(context)
  997. .bodyMedium
  998. .fontStyle,
  999. ),
  1000. letterSpacing: 0.0,
  1001. fontWeight:
  1002. FlutterFlowTheme.of(context)
  1003. .bodyMedium
  1004. .fontWeight,
  1005. fontStyle:
  1006. FlutterFlowTheme.of(context)
  1007. .bodyMedium
  1008. .fontStyle,
  1009. ),
  1010. ),
  1011. Text(
  1012. getJsonField(
  1013. horecagelegenheidCurrentEstablishmentInfoResponse
  1014. .jsonBody,
  1015. r'''$[:].minimaleorder''',
  1016. ).toString(),
  1017. style: FlutterFlowTheme.of(context)
  1018. .bodyMedium
  1019. .override(
  1020. font: GoogleFonts.inter(
  1021. fontWeight:
  1022. FlutterFlowTheme.of(context)
  1023. .bodyMedium
  1024. .fontWeight,
  1025. fontStyle:
  1026. FlutterFlowTheme.of(context)
  1027. .bodyMedium
  1028. .fontStyle,
  1029. ),
  1030. letterSpacing: 0.0,
  1031. fontWeight:
  1032. FlutterFlowTheme.of(context)
  1033. .bodyMedium
  1034. .fontWeight,
  1035. fontStyle:
  1036. FlutterFlowTheme.of(context)
  1037. .bodyMedium
  1038. .fontStyle,
  1039. ),
  1040. ),
  1041. Text(
  1042. getJsonField(
  1043. horecagelegenheidCurrentEstablishmentInfoResponse
  1044. .jsonBody,
  1045. r'''$[:].thuisbezorgtbetaalopties''',
  1046. ).toString(),
  1047. style: FlutterFlowTheme.of(context)
  1048. .bodyMedium
  1049. .override(
  1050. font: GoogleFonts.inter(
  1051. fontWeight:
  1052. FlutterFlowTheme.of(context)
  1053. .bodyMedium
  1054. .fontWeight,
  1055. fontStyle:
  1056. FlutterFlowTheme.of(context)
  1057. .bodyMedium
  1058. .fontStyle,
  1059. ),
  1060. letterSpacing: 0.0,
  1061. fontWeight:
  1062. FlutterFlowTheme.of(context)
  1063. .bodyMedium
  1064. .fontWeight,
  1065. fontStyle:
  1066. FlutterFlowTheme.of(context)
  1067. .bodyMedium
  1068. .fontStyle,
  1069. ),
  1070. ),
  1071. Text(
  1072. getJsonField(
  1073. horecagelegenheidCurrentEstablishmentInfoResponse
  1074. .jsonBody,
  1075. r'''$[:].bezorgdin''',
  1076. ).toString(),
  1077. style: FlutterFlowTheme.of(context)
  1078. .bodyMedium
  1079. .override(
  1080. font: GoogleFonts.inter(
  1081. fontWeight:
  1082. FlutterFlowTheme.of(context)
  1083. .bodyMedium
  1084. .fontWeight,
  1085. fontStyle:
  1086. FlutterFlowTheme.of(context)
  1087. .bodyMedium
  1088. .fontStyle,
  1089. ),
  1090. letterSpacing: 0.0,
  1091. fontWeight:
  1092. FlutterFlowTheme.of(context)
  1093. .bodyMedium
  1094. .fontWeight,
  1095. fontStyle:
  1096. FlutterFlowTheme.of(context)
  1097. .bodyMedium
  1098. .fontStyle,
  1099. ),
  1100. ),
  1101. ],
  1102. ),
  1103. ],
  1104. ),
  1105. ),
  1106. ],
  1107. ),
  1108. ),
  1109. Expanded(
  1110. child: Container(
  1111. width: 462.72,
  1112. height: 100.0,
  1113. decoration: BoxDecoration(
  1114. color: FlutterFlowTheme.of(context).secondaryBackground,
  1115. ),
  1116. child: Column(
  1117. mainAxisSize: MainAxisSize.max,
  1118. children: [
  1119. Expanded(
  1120. child: wrapWithModel(
  1121. model: _model
  1122. .horecagelegenheidEventTabelComponentCopyModel,
  1123. updateCallback: () => safeSetState(() {}),
  1124. child: Builder(builder: (_) {
  1125. return DebugFlutterFlowModelContext(
  1126. rootModel: _model.rootModel,
  1127. child:
  1128. HorecagelegenheidEventTabelComponentCopyWidget(
  1129. nid: widget!.nid!,
  1130. horecaid: widget!.nid,
  1131. ),
  1132. );
  1133. }),
  1134. ),
  1135. ),
  1136. ],
  1137. ),
  1138. ),
  1139. ),
  1140. FFButtonWidget(
  1141. onPressed: () async {
  1142. context.pushNamed(
  1143. HorecagelegenhedenOverzichtWidget.routeName,
  1144. queryParameters: {
  1145. 'plaats': serializeParam(
  1146. FFAppState().gemeenteSelectId,
  1147. ParamType.String,
  1148. ),
  1149. }.withoutNulls,
  1150. );
  1151. },
  1152. text: FFLocalizations.of(context).getText(
  1153. 'ukbd1ac9' /* Alle horecagelegenheden */,
  1154. ),
  1155. options: FFButtonOptions(
  1156. height: 40.0,
  1157. padding:
  1158. EdgeInsetsDirectional.fromSTEB(16.0, 0.0, 16.0, 0.0),
  1159. iconPadding:
  1160. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  1161. color: FlutterFlowTheme.of(context).primary,
  1162. textStyle:
  1163. FlutterFlowTheme.of(context).titleSmall.override(
  1164. font: GoogleFonts.interTight(
  1165. fontWeight: FlutterFlowTheme.of(context)
  1166. .titleSmall
  1167. .fontWeight,
  1168. fontStyle: FlutterFlowTheme.of(context)
  1169. .titleSmall
  1170. .fontStyle,
  1171. ),
  1172. color: Colors.white,
  1173. letterSpacing: 0.0,
  1174. fontWeight: FlutterFlowTheme.of(context)
  1175. .titleSmall
  1176. .fontWeight,
  1177. fontStyle: FlutterFlowTheme.of(context)
  1178. .titleSmall
  1179. .fontStyle,
  1180. ),
  1181. elevation: 0.0,
  1182. borderRadius: BorderRadius.circular(8.0),
  1183. ),
  1184. ),
  1185. ],
  1186. ),
  1187. ),
  1188. ),
  1189. );
  1190. },
  1191. );
  1192. }
  1193. }