kaart_tabel_uitgaan_s_comp_widget.dart 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. import '/flutter_flow/flutter_flow_theme.dart';
  2. import '/flutter_flow/flutter_flow_util.dart';
  3. import '/flutter_flow/flutter_flow_widgets.dart';
  4. import '/shared/tag_categorie_component/tag_categorie_component_widget.dart';
  5. import 'dart:ui';
  6. import '/custom_code/widgets/index.dart' as custom_widgets;
  7. import 'package:flutter/material.dart';
  8. import 'package:flutter_spinkit/flutter_spinkit.dart';
  9. import 'package:google_fonts/google_fonts.dart';
  10. import 'package:provider/provider.dart';
  11. import 'kaart_tabel_uitgaan_s_comp_model.dart';
  12. export 'kaart_tabel_uitgaan_s_comp_model.dart';
  13. class KaartTabelUitgaanSCompWidget extends StatefulWidget {
  14. const KaartTabelUitgaanSCompWidget({
  15. super.key,
  16. this.titel,
  17. this.logo,
  18. this.categorie,
  19. this.date,
  20. this.horecagelegenheid,
  21. this.adres,
  22. this.plaats,
  23. this.inhoud,
  24. });
  25. final String? titel;
  26. final String? logo;
  27. final List<String>? categorie;
  28. final String? date;
  29. final String? horecagelegenheid;
  30. final String? adres;
  31. final String? plaats;
  32. final String? inhoud;
  33. @override
  34. State<KaartTabelUitgaanSCompWidget> createState() =>
  35. _KaartTabelUitgaanSCompWidgetState();
  36. }
  37. class _KaartTabelUitgaanSCompWidgetState
  38. extends State<KaartTabelUitgaanSCompWidget> with RouteAware {
  39. late KaartTabelUitgaanSCompModel _model;
  40. @override
  41. void setState(VoidCallback callback) {
  42. super.setState(callback);
  43. _model.onUpdate();
  44. }
  45. @override
  46. void initState() {
  47. super.initState();
  48. _model = createModel(context, () => KaartTabelUitgaanSCompModel());
  49. }
  50. @override
  51. void dispose() {
  52. routeObserver.unsubscribe(this);
  53. _model.maybeDispose();
  54. super.dispose();
  55. }
  56. @override
  57. void didUpdateWidget(KaartTabelUitgaanSCompWidget oldWidget) {
  58. super.didUpdateWidget(oldWidget);
  59. _model.widget = widget;
  60. }
  61. @override
  62. void didChangeDependencies() {
  63. super.didChangeDependencies();
  64. final route = DebugModalRoute.of(context);
  65. if (route != null) {
  66. routeObserver.subscribe(this, route);
  67. }
  68. debugLogGlobalProperty(context);
  69. }
  70. @override
  71. void didPopNext() {
  72. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  73. setState(() => _model.isRouteVisible = true);
  74. debugLogWidgetClass(_model);
  75. }
  76. }
  77. @override
  78. void didPush() {
  79. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  80. setState(() => _model.isRouteVisible = true);
  81. debugLogWidgetClass(_model);
  82. }
  83. }
  84. @override
  85. void didPop() {
  86. _model.isRouteVisible = false;
  87. }
  88. @override
  89. void didPushNext() {
  90. _model.isRouteVisible = false;
  91. }
  92. @override
  93. Widget build(BuildContext context) {
  94. DebugFlutterFlowModelContext.maybeOf(context)
  95. ?.parentModelCallback
  96. ?.call(_model);
  97. _model.tagCategorieComponentModels.clear();
  98. return Column(
  99. mainAxisSize: MainAxisSize.max,
  100. children: [
  101. Padding(
  102. padding: EdgeInsetsDirectional.fromSTEB(6.0, 4.0, 0.0, 0.0),
  103. child: Text(
  104. valueOrDefault<String>(
  105. widget!.titel,
  106. 'Evenement',
  107. ),
  108. style: FlutterFlowTheme.of(context).titleLarge.override(
  109. font: GoogleFonts.interTight(
  110. fontWeight: FlutterFlowTheme.of(context).titleLarge.fontWeight,
  111. fontStyle: FlutterFlowTheme.of(context).titleLarge.fontStyle,
  112. ),
  113. letterSpacing: 0.0,
  114. fontWeight: FlutterFlowTheme.of(context).titleLarge.fontWeight,
  115. fontStyle: FlutterFlowTheme.of(context).titleLarge.fontStyle,
  116. shadows: [
  117. Shadow(
  118. color: FlutterFlowTheme.of(context).secondaryText,
  119. offset: Offset(2.0, 2.0),
  120. blurRadius: 2.0,
  121. )
  122. ],
  123. ),
  124. ),
  125. ),
  126. Align(
  127. alignment: AlignmentDirectional(0.0, -1.0),
  128. child: Row(
  129. mainAxisSize: MainAxisSize.max,
  130. children: [
  131. Align(
  132. alignment: AlignmentDirectional(1.0, 1.0),
  133. child: Container(
  134. width: MediaQuery.sizeOf(context).width * 0.3,
  135. decoration: BoxDecoration(),
  136. child: Align(
  137. alignment: AlignmentDirectional(1.0, 0.0),
  138. child: Stack(
  139. alignment: AlignmentDirectional(1.0, 0.0),
  140. children: [
  141. Align(
  142. alignment: AlignmentDirectional(1.0, 0.0),
  143. child: ClipRRect(
  144. borderRadius: BorderRadius.only(),
  145. child: Image.network(
  146. widget!.logo!,
  147. height: 220.0,
  148. fit: BoxFit.fitHeight,
  149. ),
  150. ),
  151. ),
  152. Align(
  153. alignment: AlignmentDirectional(1.0, 1.0),
  154. child: Padding(
  155. padding: EdgeInsetsDirectional.fromSTEB(
  156. 0.0, 150.0, 0.0, 0.0),
  157. child: Builder(
  158. builder: (context) {
  159. final categories =
  160. widget!.categorie?.toList() ?? [];
  161. _model.debugGeneratorVariables[
  162. 'categories${categories.length > 100 ? ' (first 100)' : ''}'] =
  163. debugSerializeParam(
  164. categories.take(100),
  165. ParamType.String,
  166. isList: true,
  167. link:
  168. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=kaartTabelUitgaanSComp',
  169. name: 'String',
  170. nullable: false,
  171. );
  172. debugLogWidgetClass(_model);
  173. return Row(
  174. mainAxisSize: MainAxisSize.max,
  175. mainAxisAlignment: MainAxisAlignment.end,
  176. crossAxisAlignment: CrossAxisAlignment.end,
  177. children: List.generate(categories.length,
  178. (categoriesIndex) {
  179. final categoriesItem =
  180. categories[categoriesIndex];
  181. return Builder(builder: (_) {
  182. return DebugFlutterFlowModelContext(
  183. rootModel: _model.rootModel,
  184. parentModelCallback: (m) {
  185. _model.tagCategorieComponentModels[
  186. 'Keyf89_${categoriesIndex}_of_${categories.length}'] = m;
  187. },
  188. child: TagCategorieComponentWidget(
  189. key: Key(
  190. 'Keyf89_${categoriesIndex}_of_${categories.length}'),
  191. categorieTag: categoriesItem,
  192. ),
  193. );
  194. });
  195. }),
  196. );
  197. },
  198. ),
  199. ),
  200. ),
  201. ],
  202. ),
  203. ),
  204. ),
  205. ),
  206. Align(
  207. alignment: AlignmentDirectional(0.0, -1.0),
  208. child: Container(
  209. decoration: BoxDecoration(),
  210. alignment: AlignmentDirectional(0.0, -1.0),
  211. child: Column(
  212. mainAxisSize: MainAxisSize.max,
  213. crossAxisAlignment: CrossAxisAlignment.start,
  214. children: [
  215. Align(
  216. alignment: AlignmentDirectional(0.0, 0.0),
  217. child: Row(
  218. mainAxisSize: MainAxisSize.max,
  219. children: [
  220. Padding(
  221. padding: EdgeInsetsDirectional.fromSTEB(
  222. 3.0, 0.0, 6.0, 0.0),
  223. child: Icon(
  224. Icons.calendar_month,
  225. color: FlutterFlowTheme.of(context).primaryText,
  226. size: 24.0,
  227. ),
  228. ),
  229. Text(
  230. widget!.date!,
  231. style: FlutterFlowTheme.of(context)
  232. .titleSmall
  233. .override(
  234. font: GoogleFonts.interTight(
  235. fontWeight: FlutterFlowTheme.of(context)
  236. .titleSmall
  237. .fontWeight,
  238. fontStyle: FlutterFlowTheme.of(context)
  239. .titleSmall
  240. .fontStyle,
  241. ),
  242. letterSpacing: 0.0,
  243. fontWeight: FlutterFlowTheme.of(context)
  244. .titleSmall
  245. .fontWeight,
  246. fontStyle: FlutterFlowTheme.of(context)
  247. .titleSmall
  248. .fontStyle,
  249. ),
  250. ),
  251. ],
  252. ),
  253. ),
  254. Padding(
  255. padding:
  256. EdgeInsetsDirectional.fromSTEB(0.0, 2.0, 0.0, 2.0),
  257. child: Row(
  258. mainAxisSize: MainAxisSize.max,
  259. children: [
  260. Padding(
  261. padding: EdgeInsetsDirectional.fromSTEB(
  262. 3.0, 0.0, 6.0, 0.0),
  263. child: Icon(
  264. Icons.add_business_rounded,
  265. color: FlutterFlowTheme.of(context).primaryText,
  266. size: 24.0,
  267. ),
  268. ),
  269. Text(
  270. widget!.horecagelegenheid!,
  271. style: FlutterFlowTheme.of(context)
  272. .bodyMedium
  273. .override(
  274. font: GoogleFonts.inter(
  275. fontWeight: FlutterFlowTheme.of(context)
  276. .bodyMedium
  277. .fontWeight,
  278. fontStyle: FlutterFlowTheme.of(context)
  279. .bodyMedium
  280. .fontStyle,
  281. ),
  282. letterSpacing: 0.0,
  283. fontWeight: FlutterFlowTheme.of(context)
  284. .bodyMedium
  285. .fontWeight,
  286. fontStyle: FlutterFlowTheme.of(context)
  287. .bodyMedium
  288. .fontStyle,
  289. ),
  290. ),
  291. ],
  292. ),
  293. ),
  294. Row(
  295. mainAxisSize: MainAxisSize.max,
  296. children: [
  297. Padding(
  298. padding: EdgeInsetsDirectional.fromSTEB(
  299. 3.0, 0.0, 6.0, 0.0),
  300. child: Icon(
  301. Icons.location_on_sharp,
  302. color: FlutterFlowTheme.of(context).primaryText,
  303. size: 24.0,
  304. ),
  305. ),
  306. Text(
  307. widget!.adres!,
  308. style: FlutterFlowTheme.of(context)
  309. .bodyMedium
  310. .override(
  311. font: GoogleFonts.inter(
  312. fontWeight: FlutterFlowTheme.of(context)
  313. .bodyMedium
  314. .fontWeight,
  315. fontStyle: FlutterFlowTheme.of(context)
  316. .bodyMedium
  317. .fontStyle,
  318. ),
  319. letterSpacing: 0.0,
  320. fontWeight: FlutterFlowTheme.of(context)
  321. .bodyMedium
  322. .fontWeight,
  323. fontStyle: FlutterFlowTheme.of(context)
  324. .bodyMedium
  325. .fontStyle,
  326. ),
  327. ),
  328. Padding(
  329. padding: EdgeInsetsDirectional.fromSTEB(
  330. 8.0, 0.0, 0.0, 0.0),
  331. child: Text(
  332. widget!.plaats!,
  333. style: FlutterFlowTheme.of(context)
  334. .bodyMedium
  335. .override(
  336. font: GoogleFonts.inter(
  337. fontWeight: FlutterFlowTheme.of(context)
  338. .bodyMedium
  339. .fontWeight,
  340. fontStyle: FlutterFlowTheme.of(context)
  341. .bodyMedium
  342. .fontStyle,
  343. ),
  344. letterSpacing: 0.0,
  345. fontWeight: FlutterFlowTheme.of(context)
  346. .bodyMedium
  347. .fontWeight,
  348. fontStyle: FlutterFlowTheme.of(context)
  349. .bodyMedium
  350. .fontStyle,
  351. ),
  352. ),
  353. ),
  354. ],
  355. ),
  356. Padding(
  357. padding:
  358. EdgeInsetsDirectional.fromSTEB(0.0, 2.0, 0.0, 2.0),
  359. child: Row(
  360. mainAxisSize: MainAxisSize.max,
  361. crossAxisAlignment: CrossAxisAlignment.start,
  362. children: [
  363. Align(
  364. alignment: AlignmentDirectional(0.0, -1.0),
  365. child: Padding(
  366. padding: EdgeInsetsDirectional.fromSTEB(
  367. 3.0, 0.0, 6.0, 0.0),
  368. child: Icon(
  369. Icons.message,
  370. color:
  371. FlutterFlowTheme.of(context).primaryText,
  372. size: 24.0,
  373. ),
  374. ),
  375. ),
  376. Container(
  377. width: MediaQuery.sizeOf(context).width * 0.4,
  378. height: 80.0,
  379. child: custom_widgets.FromHTML(
  380. HTMLParameter: widget!.inhoud!,
  381. width: MediaQuery.sizeOf(context).width * 0.4,
  382. height: 80.0,
  383. ),
  384. ),
  385. ],
  386. ),
  387. ),
  388. ],
  389. ),
  390. ),
  391. ),
  392. ],
  393. ),
  394. ),
  395. ],
  396. );
  397. }
  398. }