mijn_profiel_widget.dart 157 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467
  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/horecagelegenheidoverzicht_kaart/horecagelegenheidoverzicht_kaart_widget.dart';
  8. import '/shared/drawer_component/drawer_component_widget.dart';
  9. import '/shared/lege_lijst_component/lege_lijst_component_widget.dart';
  10. import 'dart:ui';
  11. import '/custom_code/actions/index.dart' as actions;
  12. import '/flutter_flow/custom_functions.dart' as functions;
  13. import '/index.dart';
  14. import 'package:flutter/material.dart';
  15. import 'package:flutter/scheduler.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 'mijn_profiel_model.dart';
  20. export 'mijn_profiel_model.dart';
  21. class MijnProfielWidget extends StatefulWidget {
  22. const MijnProfielWidget({super.key});
  23. static String routeName = 'mijnProfiel';
  24. static String routePath = '/mijnProfiel';
  25. @override
  26. State<MijnProfielWidget> createState() => _MijnProfielWidgetState();
  27. }
  28. class _MijnProfielWidgetState extends State<MijnProfielWidget>
  29. with TickerProviderStateMixin, RouteAware {
  30. late MijnProfielModel _model;
  31. final scaffoldKey = GlobalKey<ScaffoldState>();
  32. @override
  33. void initState() {
  34. super.initState();
  35. _model = createModel(context, () => MijnProfielModel());
  36. // On page load action.
  37. SchedulerBinding.instance.addPostFrameCallback((_) async {
  38. _model.apiResultvpn = await MijnHorecagelegenhedenCall.call(
  39. sessionName: FFAppState().userSessionname,
  40. sessid: FFAppState().userSessionid,
  41. );
  42. if ((_model.apiResultvpn?.succeeded ?? true)) {
  43. _model.mijnHorecaRespons =
  44. (_model.apiResultvpn?.jsonBody ?? '').toList().cast<dynamic>();
  45. safeSetState(() {});
  46. }
  47. });
  48. _model.tabBarmijnevenementenController = TabController(
  49. vsync: this,
  50. length: 4,
  51. initialIndex: 0,
  52. )
  53. ..addListener(() => safeSetState(() {}))
  54. ..addListener(() {
  55. debugLogWidgetClass(_model);
  56. });
  57. }
  58. @override
  59. void dispose() {
  60. routeObserver.unsubscribe(this);
  61. _model.dispose();
  62. super.dispose();
  63. }
  64. @override
  65. void didUpdateWidget(MijnProfielWidget oldWidget) {
  66. super.didUpdateWidget(oldWidget);
  67. _model.widget = widget;
  68. }
  69. @override
  70. void didChangeDependencies() {
  71. super.didChangeDependencies();
  72. final route = DebugModalRoute.of(context);
  73. if (route != null) {
  74. routeObserver.subscribe(this, route);
  75. }
  76. debugLogGlobalProperty(context);
  77. }
  78. @override
  79. void didPopNext() {
  80. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  81. setState(() => _model.isRouteVisible = true);
  82. debugLogWidgetClass(_model);
  83. }
  84. }
  85. @override
  86. void didPush() {
  87. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  88. setState(() => _model.isRouteVisible = true);
  89. debugLogWidgetClass(_model);
  90. }
  91. }
  92. @override
  93. void didPop() {
  94. _model.isRouteVisible = false;
  95. }
  96. @override
  97. void didPushNext() {
  98. _model.isRouteVisible = false;
  99. }
  100. @override
  101. Widget build(BuildContext context) {
  102. DebugFlutterFlowModelContext.maybeOf(context)
  103. ?.parentModelCallback
  104. ?.call(_model);
  105. context.watch<FFAppState>();
  106. _model.horecagelegenheidoverzichtKaartModels.clear();
  107. return GestureDetector(
  108. onTap: () {
  109. FocusScope.of(context).unfocus();
  110. FocusManager.instance.primaryFocus?.unfocus();
  111. },
  112. child: Scaffold(
  113. key: scaffoldKey,
  114. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  115. drawer: Drawer(
  116. elevation: 16.0,
  117. child: wrapWithModel(
  118. model: _model.drawerComponentModel,
  119. updateCallback: () => safeSetState(() {}),
  120. child: Builder(builder: (_) {
  121. return DebugFlutterFlowModelContext(
  122. rootModel: _model.rootModel,
  123. child: DrawerComponentWidget(),
  124. );
  125. }),
  126. ),
  127. ),
  128. appBar: PreferredSize(
  129. preferredSize: Size.fromHeight(80.0),
  130. child: AppBar(
  131. backgroundColor: FlutterFlowTheme.of(context).primaryText,
  132. automaticallyImplyLeading: false,
  133. actions: [],
  134. flexibleSpace: FlexibleSpaceBar(
  135. background: wrapWithModel(
  136. model: _model.headerButtonsComponentModel,
  137. updateCallback: () => safeSetState(() {}),
  138. child: Builder(builder: (_) {
  139. return DebugFlutterFlowModelContext(
  140. rootModel: _model.rootModel,
  141. child: HeaderButtonsComponentWidget(
  142. showBackButton: true,
  143. ),
  144. );
  145. }),
  146. ),
  147. centerTitle: true,
  148. expandedTitleScale: 1.0,
  149. ),
  150. bottom: PreferredSize(
  151. preferredSize: Size.fromHeight(70.0),
  152. child: Container(),
  153. ),
  154. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  155. elevation: 2.0,
  156. ),
  157. ),
  158. body: SafeArea(
  159. top: true,
  160. child: Padding(
  161. padding: EdgeInsets.all(16.0),
  162. child: Column(
  163. mainAxisSize: MainAxisSize.max,
  164. children: [
  165. Expanded(
  166. child: Column(
  167. children: [
  168. Align(
  169. alignment: Alignment(0.0, 0),
  170. child: TabBar(
  171. isScrollable: true,
  172. tabAlignment: TabAlignment.center,
  173. labelColor: FlutterFlowTheme.of(context).primaryText,
  174. unselectedLabelColor:
  175. FlutterFlowTheme.of(context).secondaryText,
  176. labelStyle:
  177. FlutterFlowTheme.of(context).titleMedium.override(
  178. font: GoogleFonts.roboto(
  179. fontWeight: FlutterFlowTheme.of(context)
  180. .titleMedium
  181. .fontWeight,
  182. fontStyle: FlutterFlowTheme.of(context)
  183. .titleMedium
  184. .fontStyle,
  185. ),
  186. letterSpacing: 0.0,
  187. fontWeight: FlutterFlowTheme.of(context)
  188. .titleMedium
  189. .fontWeight,
  190. fontStyle: FlutterFlowTheme.of(context)
  191. .titleMedium
  192. .fontStyle,
  193. ),
  194. unselectedLabelStyle:
  195. FlutterFlowTheme.of(context).titleMedium.override(
  196. font: GoogleFonts.roboto(
  197. fontWeight: FlutterFlowTheme.of(context)
  198. .titleMedium
  199. .fontWeight,
  200. fontStyle: FlutterFlowTheme.of(context)
  201. .titleMedium
  202. .fontStyle,
  203. ),
  204. letterSpacing: 0.0,
  205. fontWeight: FlutterFlowTheme.of(context)
  206. .titleMedium
  207. .fontWeight,
  208. fontStyle: FlutterFlowTheme.of(context)
  209. .titleMedium
  210. .fontStyle,
  211. ),
  212. indicatorColor:
  213. FlutterFlowTheme.of(context).secondary,
  214. tabs: [
  215. Tab(
  216. text: FFLocalizations.of(context).getText(
  217. 'p45zqsya' /* Mijn evenementen */,
  218. ),
  219. ),
  220. Tab(
  221. text: FFLocalizations.of(context).getText(
  222. 'lt5ws43d' /* Stadseditor */,
  223. ),
  224. ),
  225. Tab(
  226. text: FFLocalizations.of(context).getText(
  227. 'hwmb9ntf' /* Account */,
  228. ),
  229. ),
  230. Tab(
  231. text: FFLocalizations.of(context).getText(
  232. '9s07bzb1' /* Nieuwsbrieven */,
  233. ),
  234. ),
  235. ],
  236. controller: _model.tabBarmijnevenementenController,
  237. onTap: (i) async {
  238. [
  239. () async {},
  240. () async {},
  241. () async {},
  242. () async {}
  243. ][i]();
  244. },
  245. ),
  246. ),
  247. Expanded(
  248. child: TabBarView(
  249. controller: _model.tabBarmijnevenementenController,
  250. children: [
  251. SingleChildScrollView(
  252. child: Column(
  253. mainAxisSize: MainAxisSize.max,
  254. children: [
  255. if (_model.mijnHorecaRespons.isNotEmpty)
  256. Row(
  257. mainAxisSize: MainAxisSize.max,
  258. mainAxisAlignment:
  259. MainAxisAlignment.spaceBetween,
  260. children: [
  261. Text(
  262. FFLocalizations.of(context).getText(
  263. '70jtz6zq' /* Komende evenementen */,
  264. ),
  265. style: FlutterFlowTheme.of(context)
  266. .titleMedium
  267. .override(
  268. font: GoogleFonts.roboto(
  269. fontWeight:
  270. FlutterFlowTheme.of(
  271. context)
  272. .titleMedium
  273. .fontWeight,
  274. fontStyle:
  275. FlutterFlowTheme.of(
  276. context)
  277. .titleMedium
  278. .fontStyle,
  279. ),
  280. letterSpacing: 0.0,
  281. fontWeight:
  282. FlutterFlowTheme.of(context)
  283. .titleMedium
  284. .fontWeight,
  285. fontStyle:
  286. FlutterFlowTheme.of(context)
  287. .titleMedium
  288. .fontStyle,
  289. ),
  290. ),
  291. FFButtonWidget(
  292. onPressed: () async {
  293. context.pushNamed(
  294. MijnAanmeldingenWidget.routeName,
  295. queryParameters: {
  296. 'type': serializeParam(
  297. 'go_out_event',
  298. ParamType.String,
  299. ),
  300. }.withoutNulls,
  301. );
  302. },
  303. text: FFLocalizations.of(context)
  304. .getText(
  305. 'x70608fh' /* Bekijk alles */,
  306. ),
  307. options: FFButtonOptions(
  308. height: 40.0,
  309. padding:
  310. EdgeInsetsDirectional.fromSTEB(
  311. 16.0, 0.0, 16.0, 0.0),
  312. iconPadding:
  313. EdgeInsetsDirectional.fromSTEB(
  314. 0.0, 0.0, 0.0, 0.0),
  315. color: FlutterFlowTheme.of(context)
  316. .secondary,
  317. textStyle:
  318. FlutterFlowTheme.of(context)
  319. .titleSmall
  320. .override(
  321. font: GoogleFonts.roboto(
  322. fontWeight:
  323. FlutterFlowTheme.of(
  324. context)
  325. .titleSmall
  326. .fontWeight,
  327. fontStyle:
  328. FlutterFlowTheme.of(
  329. context)
  330. .titleSmall
  331. .fontStyle,
  332. ),
  333. color: Colors.white,
  334. letterSpacing: 0.0,
  335. fontWeight:
  336. FlutterFlowTheme.of(
  337. context)
  338. .titleSmall
  339. .fontWeight,
  340. fontStyle:
  341. FlutterFlowTheme.of(
  342. context)
  343. .titleSmall
  344. .fontStyle,
  345. ),
  346. elevation: 0.0,
  347. borderRadius:
  348. BorderRadius.circular(8.0),
  349. ),
  350. ),
  351. ],
  352. ),
  353. if (_model.mijnHorecaRespons.isNotEmpty)
  354. FutureBuilder<ApiCallResponse>(
  355. future: MijnAanmeldingenCall.call(
  356. sessionName:
  357. FFAppState().userSessionname,
  358. sessid: FFAppState().userSessionid,
  359. limit: 5,
  360. type: 'go_out_event',
  361. komend: '1',
  362. ),
  363. builder: (context, snapshot) {
  364. // Customize what your widget looks like when it's loading.
  365. if (!snapshot.hasData) {
  366. return Center(
  367. child: SizedBox(
  368. width: 80.0,
  369. height: 80.0,
  370. child: SpinKitFadingCircle(
  371. color:
  372. FlutterFlowTheme.of(context)
  373. .primary,
  374. size: 80.0,
  375. ),
  376. ),
  377. );
  378. }
  379. final listViewMijnAanmeldingenResponse =
  380. snapshot.data!;
  381. _model.debugBackendQueries[
  382. 'MijnAanmeldingenCall_statusCode_ListView_pnx616wd'] =
  383. debugSerializeParam(
  384. listViewMijnAanmeldingenResponse
  385. .statusCode,
  386. ParamType.int,
  387. link:
  388. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  389. name: 'int',
  390. nullable: false,
  391. );
  392. _model.debugBackendQueries[
  393. 'MijnAanmeldingenCall_responseBody_ListView_pnx616wd'] =
  394. debugSerializeParam(
  395. listViewMijnAanmeldingenResponse
  396. .bodyText,
  397. ParamType.String,
  398. link:
  399. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  400. name: 'String',
  401. nullable: false,
  402. );
  403. debugLogWidgetClass(_model);
  404. return Builder(
  405. builder: (context) {
  406. final aanmeldingItem =
  407. MijnAanmeldingenCall.items(
  408. listViewMijnAanmeldingenResponse
  409. .jsonBody,
  410. )?.toList() ??
  411. [];
  412. if (aanmeldingItem.isEmpty) {
  413. return LegeLijstComponentWidget(
  414. tekst:
  415. 'Je hebt nog geen komende evenementen aangemaakt. Hiervoor moet je eigenaar zijn van een horecagelegenheid.',
  416. );
  417. }
  418. _model.debugGeneratorVariables[
  419. 'aanmeldingItem${aanmeldingItem.length > 100 ? ' (first 100)' : ''}'] =
  420. debugSerializeParam(
  421. aanmeldingItem.take(100),
  422. ParamType.JSON,
  423. isList: true,
  424. link:
  425. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  426. name: 'dynamic',
  427. nullable: false,
  428. );
  429. debugLogWidgetClass(_model);
  430. return ListView.builder(
  431. padding: EdgeInsets.zero,
  432. shrinkWrap: true,
  433. scrollDirection: Axis.vertical,
  434. itemCount: aanmeldingItem.length,
  435. itemBuilder: (context,
  436. aanmeldingItemIndex) {
  437. final aanmeldingItemItem =
  438. aanmeldingItem[
  439. aanmeldingItemIndex];
  440. return Padding(
  441. padding: EdgeInsetsDirectional
  442. .fromSTEB(
  443. 0.0, 0.0, 0.0, 12.0),
  444. child: Column(
  445. mainAxisSize:
  446. MainAxisSize.max,
  447. children: [
  448. InkWell(
  449. splashColor:
  450. Colors.transparent,
  451. focusColor:
  452. Colors.transparent,
  453. hoverColor:
  454. Colors.transparent,
  455. highlightColor:
  456. Colors.transparent,
  457. onTap: () async {
  458. if (functions
  459. .isOngepubliceerd(
  460. aanmeldingItemItem)) {
  461. ScaffoldMessenger
  462. .of(context)
  463. .showSnackBar(
  464. SnackBar(
  465. content: Text(
  466. 'Dit item staat nog in beoordeling en is nog niet online.',
  467. style:
  468. TextStyle(
  469. color: FlutterFlowTheme.of(
  470. context)
  471. .primaryText,
  472. ),
  473. ),
  474. duration: Duration(
  475. milliseconds:
  476. 4000),
  477. backgroundColor:
  478. FlutterFlowTheme.of(
  479. context)
  480. .secondary,
  481. ),
  482. );
  483. } else {
  484. context.pushNamed(
  485. EventCurrentWidget
  486. .routeName,
  487. queryParameters: {
  488. 'nid':
  489. serializeParam(
  490. getJsonField(
  491. aanmeldingItemItem,
  492. r'''$.nid''',
  493. ).toString(),
  494. ParamType
  495. .String,
  496. ),
  497. }.withoutNulls,
  498. );
  499. }
  500. },
  501. child: Material(
  502. color: Colors
  503. .transparent,
  504. child: ListTile(
  505. title: Text(
  506. getJsonField(
  507. aanmeldingItemItem,
  508. r'''$.title''',
  509. ).toString(),
  510. style: FlutterFlowTheme
  511. .of(context)
  512. .titleLarge
  513. .override(
  514. font: GoogleFonts
  515. .roboto(
  516. fontWeight: FlutterFlowTheme.of(
  517. context)
  518. .titleLarge
  519. .fontWeight,
  520. fontStyle: FlutterFlowTheme.of(
  521. context)
  522. .titleLarge
  523. .fontStyle,
  524. ),
  525. letterSpacing:
  526. 0.0,
  527. fontWeight: FlutterFlowTheme.of(
  528. context)
  529. .titleLarge
  530. .fontWeight,
  531. fontStyle: FlutterFlowTheme.of(
  532. context)
  533. .titleLarge
  534. .fontStyle,
  535. ),
  536. ),
  537. subtitle: Text(
  538. getJsonField(
  539. aanmeldingItemItem,
  540. r'''$.datum_start''',
  541. ).toString(),
  542. style: FlutterFlowTheme
  543. .of(context)
  544. .labelMedium
  545. .override(
  546. font: GoogleFonts
  547. .roboto(
  548. fontWeight: FlutterFlowTheme.of(
  549. context)
  550. .labelMedium
  551. .fontWeight,
  552. fontStyle: FlutterFlowTheme.of(
  553. context)
  554. .labelMedium
  555. .fontStyle,
  556. ),
  557. letterSpacing:
  558. 0.0,
  559. fontWeight: FlutterFlowTheme.of(
  560. context)
  561. .labelMedium
  562. .fontWeight,
  563. fontStyle: FlutterFlowTheme.of(
  564. context)
  565. .labelMedium
  566. .fontStyle,
  567. ),
  568. ),
  569. trailing: Icon(
  570. Icons
  571. .arrow_forward_ios_rounded,
  572. color: FlutterFlowTheme
  573. .of(context)
  574. .secondaryText,
  575. size: 24.0,
  576. ),
  577. tileColor: FlutterFlowTheme
  578. .of(context)
  579. .secondaryBackground,
  580. dense: false,
  581. contentPadding:
  582. EdgeInsetsDirectional
  583. .fromSTEB(
  584. 12.0,
  585. 0.0,
  586. 12.0,
  587. 0.0),
  588. shape:
  589. RoundedRectangleBorder(
  590. borderRadius:
  591. BorderRadius
  592. .circular(
  593. 8.0),
  594. ),
  595. ),
  596. ),
  597. ),
  598. Align(
  599. alignment:
  600. AlignmentDirectional(
  601. 1.0, 0.0),
  602. child: FFButtonWidget(
  603. onPressed: () async {
  604. _model.apiResultmls =
  605. await AanmeldingKloonbronCall
  606. .call(
  607. sessionName:
  608. FFAppState()
  609. .userSessionname,
  610. sessid: FFAppState()
  611. .userSessionid,
  612. nid: getJsonField(
  613. aanmeldingItemItem,
  614. r'''$.nid''',
  615. ).toString(),
  616. );
  617. if ((_model
  618. .apiResultmls
  619. ?.succeeded ??
  620. true)) {
  621. FFAppState()
  622. .kloonBron = (_model
  623. .apiResultmls
  624. ?.jsonBody ??
  625. '');
  626. safeSetState(
  627. () {});
  628. context.pushNamed(
  629. UitgaansevenementAanmakenWidget
  630. .routeName,
  631. queryParameters:
  632. {
  633. 'horecagelegenheidNid':
  634. serializeParam(
  635. getJsonField(
  636. aanmeldingItemItem,
  637. r'''$.horecagelegenheidnid''',
  638. ).toString(),
  639. ParamType
  640. .String,
  641. ),
  642. }.withoutNulls,
  643. );
  644. }
  645. safeSetState(() {});
  646. },
  647. text: FFLocalizations
  648. .of(context)
  649. .getText(
  650. 'oxse6aci' /* Kopie */,
  651. ),
  652. options:
  653. FFButtonOptions(
  654. height: 40.0,
  655. padding:
  656. EdgeInsetsDirectional
  657. .fromSTEB(
  658. 16.0,
  659. 0.0,
  660. 16.0,
  661. 0.0),
  662. iconPadding:
  663. EdgeInsetsDirectional
  664. .fromSTEB(
  665. 0.0,
  666. 0.0,
  667. 0.0,
  668. 0.0),
  669. color: FlutterFlowTheme
  670. .of(context)
  671. .secondaryBackground,
  672. textStyle:
  673. FlutterFlowTheme.of(
  674. context)
  675. .titleSmall
  676. .override(
  677. font: GoogleFonts
  678. .roboto(
  679. fontWeight: FlutterFlowTheme.of(context)
  680. .titleSmall
  681. .fontWeight,
  682. fontStyle: FlutterFlowTheme.of(context)
  683. .titleSmall
  684. .fontStyle,
  685. ),
  686. color: FlutterFlowTheme.of(
  687. context)
  688. .primaryText,
  689. letterSpacing:
  690. 0.0,
  691. fontWeight: FlutterFlowTheme.of(
  692. context)
  693. .titleSmall
  694. .fontWeight,
  695. fontStyle: FlutterFlowTheme.of(
  696. context)
  697. .titleSmall
  698. .fontStyle,
  699. ),
  700. elevation: 0.0,
  701. borderRadius:
  702. BorderRadius
  703. .circular(
  704. 8.0),
  705. ),
  706. ),
  707. ),
  708. ],
  709. ),
  710. );
  711. },
  712. );
  713. },
  714. );
  715. },
  716. ),
  717. Row(
  718. mainAxisSize: MainAxisSize.max,
  719. mainAxisAlignment:
  720. MainAxisAlignment.spaceBetween,
  721. children: [
  722. Text(
  723. FFLocalizations.of(context).getText(
  724. 'aiokgolu' /* Mijn horecagelegenheden */,
  725. ),
  726. style: FlutterFlowTheme.of(context)
  727. .titleMedium
  728. .override(
  729. font: GoogleFonts.roboto(
  730. fontWeight:
  731. FlutterFlowTheme.of(context)
  732. .titleMedium
  733. .fontWeight,
  734. fontStyle:
  735. FlutterFlowTheme.of(context)
  736. .titleMedium
  737. .fontStyle,
  738. ),
  739. letterSpacing: 0.0,
  740. fontWeight:
  741. FlutterFlowTheme.of(context)
  742. .titleMedium
  743. .fontWeight,
  744. fontStyle:
  745. FlutterFlowTheme.of(context)
  746. .titleMedium
  747. .fontStyle,
  748. ),
  749. ),
  750. FFButtonWidget(
  751. onPressed: () async {
  752. await launchURL(
  753. 'https://uitgaanskrant.com/en/ondernemers#aanmaken');
  754. },
  755. text:
  756. FFLocalizations.of(context).getText(
  757. '8a7ti6zc' /* Zaak toevoegen */,
  758. ),
  759. options: FFButtonOptions(
  760. height: 40.0,
  761. padding:
  762. EdgeInsetsDirectional.fromSTEB(
  763. 16.0, 0.0, 16.0, 0.0),
  764. iconPadding:
  765. EdgeInsetsDirectional.fromSTEB(
  766. 0.0, 0.0, 0.0, 0.0),
  767. color: FlutterFlowTheme.of(context)
  768. .secondary,
  769. textStyle: FlutterFlowTheme.of(
  770. context)
  771. .titleSmall
  772. .override(
  773. font: GoogleFonts.roboto(
  774. fontWeight:
  775. FlutterFlowTheme.of(
  776. context)
  777. .titleSmall
  778. .fontWeight,
  779. fontStyle:
  780. FlutterFlowTheme.of(
  781. context)
  782. .titleSmall
  783. .fontStyle,
  784. ),
  785. color: Colors.white,
  786. letterSpacing: 0.0,
  787. fontWeight:
  788. FlutterFlowTheme.of(context)
  789. .titleSmall
  790. .fontWeight,
  791. fontStyle:
  792. FlutterFlowTheme.of(context)
  793. .titleSmall
  794. .fontStyle,
  795. ),
  796. elevation: 0.0,
  797. borderRadius:
  798. BorderRadius.circular(8.0),
  799. ),
  800. ),
  801. ],
  802. ),
  803. FutureBuilder<ApiCallResponse>(
  804. future: MijnHorecagelegenhedenCall.call(
  805. sessionName: FFAppState().userSessionname,
  806. sessid: FFAppState().userSessionid,
  807. ),
  808. builder: (context, snapshot) {
  809. // Customize what your widget looks like when it's loading.
  810. if (!snapshot.hasData) {
  811. return Center(
  812. child: SizedBox(
  813. width: 80.0,
  814. height: 80.0,
  815. child: SpinKitFadingCircle(
  816. color:
  817. FlutterFlowTheme.of(context)
  818. .primary,
  819. size: 80.0,
  820. ),
  821. ),
  822. );
  823. }
  824. final listViewMijnHorecagelegenhedenResponse =
  825. snapshot.data!;
  826. _model.debugBackendQueries[
  827. 'MijnHorecagelegenhedenCall_statusCode_ListView_gxiuys53'] =
  828. debugSerializeParam(
  829. listViewMijnHorecagelegenhedenResponse
  830. .statusCode,
  831. ParamType.int,
  832. link:
  833. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  834. name: 'int',
  835. nullable: false,
  836. );
  837. _model.debugBackendQueries[
  838. 'MijnHorecagelegenhedenCall_responseBody_ListView_gxiuys53'] =
  839. debugSerializeParam(
  840. listViewMijnHorecagelegenhedenResponse
  841. .bodyText,
  842. ParamType.String,
  843. link:
  844. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  845. name: 'String',
  846. nullable: false,
  847. );
  848. debugLogWidgetClass(_model);
  849. return Builder(
  850. builder: (context) {
  851. final horecaItem =
  852. listViewMijnHorecagelegenhedenResponse
  853. .jsonBody
  854. .toList();
  855. if (horecaItem.isEmpty) {
  856. return LegeLijstComponentWidget(
  857. tekst:
  858. 'Je hebt geen horecagelegenheden. Deze kun je gratis aanmaken op de uitgaanskrant.com website.',
  859. );
  860. }
  861. _model.debugGeneratorVariables[
  862. 'horecaItem${horecaItem.length > 100 ? ' (first 100)' : ''}'] =
  863. debugSerializeParam(
  864. horecaItem.take(100),
  865. ParamType.JSON,
  866. isList: true,
  867. link:
  868. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  869. name: 'dynamic',
  870. nullable: false,
  871. );
  872. debugLogWidgetClass(_model);
  873. return ListView.builder(
  874. padding: EdgeInsets.zero,
  875. shrinkWrap: true,
  876. scrollDirection: Axis.vertical,
  877. itemCount: horecaItem.length,
  878. itemBuilder:
  879. (context, horecaItemIndex) {
  880. final horecaItemItem =
  881. horecaItem[horecaItemIndex];
  882. return Column(
  883. mainAxisSize: MainAxisSize.max,
  884. children: [
  885. Builder(builder: (_) {
  886. return DebugFlutterFlowModelContext(
  887. rootModel:
  888. _model.rootModel,
  889. parentModelCallback: (m) {
  890. _model.horecagelegenheidoverzichtKaartModels[
  891. 'Key4vp_${horecaItemIndex}_of_${horecaItem.length}'] = m;
  892. },
  893. child:
  894. HorecagelegenheidoverzichtKaartWidget(
  895. key: Key(
  896. 'Key4vp_${horecaItemIndex}_of_${horecaItem.length}'),
  897. titel: getJsonField(
  898. horecaItemItem,
  899. r'''$.titel''',
  900. ).toString(),
  901. logo: getJsonField(
  902. horecaItemItem,
  903. r'''$.logo''',
  904. ).toString(),
  905. nid: getJsonField(
  906. horecaItemItem,
  907. r'''$.nid''',
  908. ).toString(),
  909. adres: getJsonField(
  910. horecaItemItem,
  911. r'''$.adres''',
  912. ).toString(),
  913. plaats: getJsonField(
  914. horecaItemItem,
  915. r'''$.plaats''',
  916. ).toString(),
  917. categorie:
  918. (getJsonField(
  919. horecaItemItem,
  920. r'''$.categorie''',
  921. true,
  922. ) as List?)
  923. ?.map<String>(
  924. (e) => e
  925. .toString())
  926. .toList()
  927. .cast<String>(),
  928. ),
  929. );
  930. }),
  931. FFButtonWidget(
  932. onPressed: () async {
  933. FFAppState().kloonBron =
  934. null;
  935. safeSetState(() {});
  936. context.pushNamed(
  937. UitgaansevenementAanmakenWidget
  938. .routeName,
  939. queryParameters: {
  940. 'horecagelegenheidNid':
  941. serializeParam(
  942. getJsonField(
  943. horecaItemItem,
  944. r'''$.nid''',
  945. ).toString(),
  946. ParamType.String,
  947. ),
  948. }.withoutNulls,
  949. );
  950. },
  951. text: FFLocalizations.of(
  952. context)
  953. .getText(
  954. 'y6wd6qpb' /* + Evenement aanmaken */,
  955. ),
  956. options: FFButtonOptions(
  957. width: double.infinity,
  958. height: 40.0,
  959. padding:
  960. EdgeInsetsDirectional
  961. .fromSTEB(
  962. 16.0,
  963. 0.0,
  964. 16.0,
  965. 0.0),
  966. iconPadding:
  967. EdgeInsetsDirectional
  968. .fromSTEB(
  969. 0.0,
  970. 0.0,
  971. 0.0,
  972. 0.0),
  973. color:
  974. FlutterFlowTheme.of(
  975. context)
  976. .secondary,
  977. textStyle:
  978. FlutterFlowTheme.of(
  979. context)
  980. .titleSmall
  981. .override(
  982. font:
  983. GoogleFonts
  984. .roboto(
  985. fontWeight: FlutterFlowTheme.of(
  986. context)
  987. .titleSmall
  988. .fontWeight,
  989. fontStyle: FlutterFlowTheme.of(
  990. context)
  991. .titleSmall
  992. .fontStyle,
  993. ),
  994. color: Colors
  995. .white,
  996. letterSpacing:
  997. 0.0,
  998. fontWeight: FlutterFlowTheme.of(
  999. context)
  1000. .titleSmall
  1001. .fontWeight,
  1002. fontStyle: FlutterFlowTheme.of(
  1003. context)
  1004. .titleSmall
  1005. .fontStyle,
  1006. ),
  1007. elevation: 0.0,
  1008. borderRadius:
  1009. BorderRadius.circular(
  1010. 8.0),
  1011. ),
  1012. ),
  1013. ],
  1014. );
  1015. },
  1016. );
  1017. },
  1018. );
  1019. },
  1020. ),
  1021. Text(
  1022. FFLocalizations.of(context).getText(
  1023. 'xw2yzyh1' /* Een horecagelegenheid toevoege... */,
  1024. ),
  1025. style: FlutterFlowTheme.of(context)
  1026. .bodySmall
  1027. .override(
  1028. font: GoogleFonts.roboto(
  1029. fontWeight:
  1030. FlutterFlowTheme.of(context)
  1031. .bodySmall
  1032. .fontWeight,
  1033. fontStyle:
  1034. FlutterFlowTheme.of(context)
  1035. .bodySmall
  1036. .fontStyle,
  1037. ),
  1038. color: FlutterFlowTheme.of(context)
  1039. .secondaryText,
  1040. letterSpacing: 0.0,
  1041. fontWeight:
  1042. FlutterFlowTheme.of(context)
  1043. .bodySmall
  1044. .fontWeight,
  1045. fontStyle:
  1046. FlutterFlowTheme.of(context)
  1047. .bodySmall
  1048. .fontStyle,
  1049. ),
  1050. ),
  1051. ],
  1052. ),
  1053. ),
  1054. SingleChildScrollView(
  1055. child: Column(
  1056. mainAxisSize: MainAxisSize.max,
  1057. children: [
  1058. Row(
  1059. mainAxisSize: MainAxisSize.max,
  1060. mainAxisAlignment:
  1061. MainAxisAlignment.spaceBetween,
  1062. children: [
  1063. Text(
  1064. FFLocalizations.of(context).getText(
  1065. 'od5wmxf8' /* Eigen activiteiten */,
  1066. ),
  1067. style: FlutterFlowTheme.of(context)
  1068. .titleMedium
  1069. .override(
  1070. font: GoogleFonts.roboto(
  1071. fontWeight:
  1072. FlutterFlowTheme.of(context)
  1073. .titleMedium
  1074. .fontWeight,
  1075. fontStyle:
  1076. FlutterFlowTheme.of(context)
  1077. .titleMedium
  1078. .fontStyle,
  1079. ),
  1080. letterSpacing: 0.0,
  1081. fontWeight:
  1082. FlutterFlowTheme.of(context)
  1083. .titleMedium
  1084. .fontWeight,
  1085. fontStyle:
  1086. FlutterFlowTheme.of(context)
  1087. .titleMedium
  1088. .fontStyle,
  1089. ),
  1090. ),
  1091. FFButtonWidget(
  1092. onPressed: () async {
  1093. context.pushNamed(
  1094. MijnAanmeldingenWidget.routeName,
  1095. queryParameters: {
  1096. 'type': serializeParam(
  1097. 'activity',
  1098. ParamType.String,
  1099. ),
  1100. }.withoutNulls,
  1101. );
  1102. },
  1103. text:
  1104. FFLocalizations.of(context).getText(
  1105. 'lkv2denp' /* Bekijk alles */,
  1106. ),
  1107. options: FFButtonOptions(
  1108. height: 40.0,
  1109. padding:
  1110. EdgeInsetsDirectional.fromSTEB(
  1111. 16.0, 0.0, 16.0, 0.0),
  1112. iconPadding:
  1113. EdgeInsetsDirectional.fromSTEB(
  1114. 0.0, 0.0, 0.0, 0.0),
  1115. color: FlutterFlowTheme.of(context)
  1116. .secondary,
  1117. textStyle: FlutterFlowTheme.of(
  1118. context)
  1119. .titleSmall
  1120. .override(
  1121. font: GoogleFonts.roboto(
  1122. fontWeight:
  1123. FlutterFlowTheme.of(
  1124. context)
  1125. .titleSmall
  1126. .fontWeight,
  1127. fontStyle:
  1128. FlutterFlowTheme.of(
  1129. context)
  1130. .titleSmall
  1131. .fontStyle,
  1132. ),
  1133. color: Colors.white,
  1134. letterSpacing: 0.0,
  1135. fontWeight:
  1136. FlutterFlowTheme.of(context)
  1137. .titleSmall
  1138. .fontWeight,
  1139. fontStyle:
  1140. FlutterFlowTheme.of(context)
  1141. .titleSmall
  1142. .fontStyle,
  1143. ),
  1144. elevation: 0.0,
  1145. borderRadius:
  1146. BorderRadius.circular(8.0),
  1147. ),
  1148. ),
  1149. ],
  1150. ),
  1151. FutureBuilder<ApiCallResponse>(
  1152. future: MijnAanmeldingenCall.call(
  1153. sessionName: FFAppState().userSessionname,
  1154. sessid: FFAppState().userSessionid,
  1155. limit: 5,
  1156. type: 'activity',
  1157. komend: '1',
  1158. ),
  1159. builder: (context, snapshot) {
  1160. // Customize what your widget looks like when it's loading.
  1161. if (!snapshot.hasData) {
  1162. return Center(
  1163. child: SizedBox(
  1164. width: 80.0,
  1165. height: 80.0,
  1166. child: SpinKitFadingCircle(
  1167. color:
  1168. FlutterFlowTheme.of(context)
  1169. .primary,
  1170. size: 80.0,
  1171. ),
  1172. ),
  1173. );
  1174. }
  1175. final listViewMijnAanmeldingenResponse =
  1176. snapshot.data!;
  1177. _model.debugBackendQueries[
  1178. 'MijnAanmeldingenCall_statusCode_ListView_zmsqmody'] =
  1179. debugSerializeParam(
  1180. listViewMijnAanmeldingenResponse
  1181. .statusCode,
  1182. ParamType.int,
  1183. link:
  1184. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1185. name: 'int',
  1186. nullable: false,
  1187. );
  1188. _model.debugBackendQueries[
  1189. 'MijnAanmeldingenCall_responseBody_ListView_zmsqmody'] =
  1190. debugSerializeParam(
  1191. listViewMijnAanmeldingenResponse
  1192. .bodyText,
  1193. ParamType.String,
  1194. link:
  1195. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1196. name: 'String',
  1197. nullable: false,
  1198. );
  1199. debugLogWidgetClass(_model);
  1200. return Builder(
  1201. builder: (context) {
  1202. final aanmeldingItem =
  1203. MijnAanmeldingenCall.items(
  1204. listViewMijnAanmeldingenResponse
  1205. .jsonBody,
  1206. )?.toList() ??
  1207. [];
  1208. if (aanmeldingItem.isEmpty) {
  1209. return LegeLijstComponentWidget(
  1210. tekst:
  1211. 'Je hebt nog geen komende stadsactiviteiten aangemaakt.',
  1212. );
  1213. }
  1214. _model.debugGeneratorVariables[
  1215. 'aanmeldingItem${aanmeldingItem.length > 100 ? ' (first 100)' : ''}'] =
  1216. debugSerializeParam(
  1217. aanmeldingItem.take(100),
  1218. ParamType.JSON,
  1219. isList: true,
  1220. link:
  1221. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1222. name: 'dynamic',
  1223. nullable: false,
  1224. );
  1225. debugLogWidgetClass(_model);
  1226. return ListView.builder(
  1227. padding: EdgeInsets.zero,
  1228. shrinkWrap: true,
  1229. scrollDirection: Axis.vertical,
  1230. itemCount: aanmeldingItem.length,
  1231. itemBuilder:
  1232. (context, aanmeldingItemIndex) {
  1233. final aanmeldingItemItem =
  1234. aanmeldingItem[
  1235. aanmeldingItemIndex];
  1236. return Padding(
  1237. padding: EdgeInsetsDirectional
  1238. .fromSTEB(
  1239. 0.0, 0.0, 0.0, 12.0),
  1240. child: Column(
  1241. mainAxisSize:
  1242. MainAxisSize.max,
  1243. children: [
  1244. InkWell(
  1245. splashColor:
  1246. Colors.transparent,
  1247. focusColor:
  1248. Colors.transparent,
  1249. hoverColor:
  1250. Colors.transparent,
  1251. highlightColor:
  1252. Colors.transparent,
  1253. onTap: () async {
  1254. if (functions
  1255. .isOngepubliceerd(
  1256. aanmeldingItemItem)) {
  1257. ScaffoldMessenger.of(
  1258. context)
  1259. .showSnackBar(
  1260. SnackBar(
  1261. content: Text(
  1262. 'Dit item staat nog in beoordeling en is nog niet online.',
  1263. style:
  1264. TextStyle(
  1265. color: FlutterFlowTheme.of(
  1266. context)
  1267. .primaryText,
  1268. ),
  1269. ),
  1270. duration: Duration(
  1271. milliseconds:
  1272. 4000),
  1273. backgroundColor:
  1274. FlutterFlowTheme.of(
  1275. context)
  1276. .secondary,
  1277. ),
  1278. );
  1279. } else {
  1280. context.pushNamed(
  1281. EventCurrentWidget
  1282. .routeName,
  1283. queryParameters: {
  1284. 'nid':
  1285. serializeParam(
  1286. getJsonField(
  1287. aanmeldingItemItem,
  1288. r'''$.nid''',
  1289. ).toString(),
  1290. ParamType
  1291. .String,
  1292. ),
  1293. 'horecaid':
  1294. serializeParam(
  1295. getJsonField(
  1296. aanmeldingItemItem,
  1297. r'''$.horecagelegenheidnid''',
  1298. ).toString(),
  1299. ParamType
  1300. .String,
  1301. ),
  1302. }.withoutNulls,
  1303. );
  1304. }
  1305. },
  1306. child: Material(
  1307. color:
  1308. Colors.transparent,
  1309. child: ListTile(
  1310. title: Text(
  1311. getJsonField(
  1312. aanmeldingItemItem,
  1313. r'''$.title''',
  1314. ).toString(),
  1315. style: FlutterFlowTheme
  1316. .of(context)
  1317. .titleLarge
  1318. .override(
  1319. font: GoogleFonts
  1320. .roboto(
  1321. fontWeight: FlutterFlowTheme.of(
  1322. context)
  1323. .titleLarge
  1324. .fontWeight,
  1325. fontStyle: FlutterFlowTheme.of(
  1326. context)
  1327. .titleLarge
  1328. .fontStyle,
  1329. ),
  1330. letterSpacing:
  1331. 0.0,
  1332. fontWeight: FlutterFlowTheme.of(
  1333. context)
  1334. .titleLarge
  1335. .fontWeight,
  1336. fontStyle: FlutterFlowTheme.of(
  1337. context)
  1338. .titleLarge
  1339. .fontStyle,
  1340. ),
  1341. ),
  1342. subtitle: Text(
  1343. getJsonField(
  1344. aanmeldingItemItem,
  1345. r'''$.datum_start''',
  1346. ).toString(),
  1347. style: FlutterFlowTheme
  1348. .of(context)
  1349. .labelMedium
  1350. .override(
  1351. font: GoogleFonts
  1352. .roboto(
  1353. fontWeight: FlutterFlowTheme.of(
  1354. context)
  1355. .labelMedium
  1356. .fontWeight,
  1357. fontStyle: FlutterFlowTheme.of(
  1358. context)
  1359. .labelMedium
  1360. .fontStyle,
  1361. ),
  1362. letterSpacing:
  1363. 0.0,
  1364. fontWeight: FlutterFlowTheme.of(
  1365. context)
  1366. .labelMedium
  1367. .fontWeight,
  1368. fontStyle: FlutterFlowTheme.of(
  1369. context)
  1370. .labelMedium
  1371. .fontStyle,
  1372. ),
  1373. ),
  1374. trailing: Icon(
  1375. Icons
  1376. .arrow_forward_ios_rounded,
  1377. color: FlutterFlowTheme
  1378. .of(context)
  1379. .secondaryText,
  1380. size: 24.0,
  1381. ),
  1382. tileColor: FlutterFlowTheme
  1383. .of(context)
  1384. .secondaryBackground,
  1385. dense: false,
  1386. contentPadding:
  1387. EdgeInsetsDirectional
  1388. .fromSTEB(
  1389. 12.0,
  1390. 0.0,
  1391. 12.0,
  1392. 0.0),
  1393. shape:
  1394. RoundedRectangleBorder(
  1395. borderRadius:
  1396. BorderRadius
  1397. .circular(
  1398. 8.0),
  1399. ),
  1400. ),
  1401. ),
  1402. ),
  1403. Align(
  1404. alignment:
  1405. AlignmentDirectional(
  1406. 1.0, 0.0),
  1407. child: FFButtonWidget(
  1408. onPressed: () async {
  1409. _model.apiResultAct =
  1410. await AanmeldingKloonbronCall
  1411. .call(
  1412. sessionName:
  1413. FFAppState()
  1414. .userSessionname,
  1415. sessid: FFAppState()
  1416. .userSessionid,
  1417. nid: getJsonField(
  1418. aanmeldingItemItem,
  1419. r'''$.nid''',
  1420. ).toString(),
  1421. );
  1422. if ((_model
  1423. .apiResultAct
  1424. ?.succeeded ??
  1425. true)) {
  1426. FFAppState()
  1427. .kloonBron = (_model
  1428. .apiResultAct
  1429. ?.jsonBody ??
  1430. '');
  1431. safeSetState(() {});
  1432. context.pushNamed(
  1433. StadsactiviteitAanmakenWidget
  1434. .routeName,
  1435. queryParameters: {
  1436. 'gemeenteTid':
  1437. serializeParam(
  1438. getJsonField(
  1439. (_model.apiResultAct
  1440. ?.jsonBody ??
  1441. ''),
  1442. r'''$.gemeente_tid''',
  1443. ).toString(),
  1444. ParamType
  1445. .String,
  1446. ),
  1447. }.withoutNulls,
  1448. );
  1449. }
  1450. safeSetState(() {});
  1451. },
  1452. text:
  1453. FFLocalizations.of(
  1454. context)
  1455. .getText(
  1456. 'wcyy4pao' /* Kopie */,
  1457. ),
  1458. options:
  1459. FFButtonOptions(
  1460. height: 40.0,
  1461. padding:
  1462. EdgeInsetsDirectional
  1463. .fromSTEB(
  1464. 16.0,
  1465. 0.0,
  1466. 16.0,
  1467. 0.0),
  1468. iconPadding:
  1469. EdgeInsetsDirectional
  1470. .fromSTEB(
  1471. 0.0,
  1472. 0.0,
  1473. 0.0,
  1474. 0.0),
  1475. color: FlutterFlowTheme
  1476. .of(context)
  1477. .secondaryBackground,
  1478. textStyle:
  1479. FlutterFlowTheme.of(
  1480. context)
  1481. .titleSmall
  1482. .override(
  1483. font: GoogleFonts
  1484. .roboto(
  1485. fontWeight: FlutterFlowTheme.of(
  1486. context)
  1487. .titleSmall
  1488. .fontWeight,
  1489. fontStyle: FlutterFlowTheme.of(
  1490. context)
  1491. .titleSmall
  1492. .fontStyle,
  1493. ),
  1494. color: FlutterFlowTheme.of(
  1495. context)
  1496. .primaryText,
  1497. letterSpacing:
  1498. 0.0,
  1499. fontWeight: FlutterFlowTheme.of(
  1500. context)
  1501. .titleSmall
  1502. .fontWeight,
  1503. fontStyle: FlutterFlowTheme.of(
  1504. context)
  1505. .titleSmall
  1506. .fontStyle,
  1507. ),
  1508. elevation: 0.0,
  1509. borderRadius:
  1510. BorderRadius
  1511. .circular(
  1512. 8.0),
  1513. ),
  1514. ),
  1515. ),
  1516. ],
  1517. ),
  1518. );
  1519. },
  1520. );
  1521. },
  1522. );
  1523. },
  1524. ),
  1525. Row(
  1526. mainAxisSize: MainAxisSize.max,
  1527. mainAxisAlignment:
  1528. MainAxisAlignment.spaceBetween,
  1529. children: [
  1530. Text(
  1531. FFLocalizations.of(context).getText(
  1532. '5iw84w8w' /* Mijn gemeenten (stadsrechten) */,
  1533. ),
  1534. style: FlutterFlowTheme.of(context)
  1535. .titleMedium
  1536. .override(
  1537. font: GoogleFonts.roboto(
  1538. fontWeight:
  1539. FlutterFlowTheme.of(context)
  1540. .titleMedium
  1541. .fontWeight,
  1542. fontStyle:
  1543. FlutterFlowTheme.of(context)
  1544. .titleMedium
  1545. .fontStyle,
  1546. ),
  1547. letterSpacing: 0.0,
  1548. fontWeight:
  1549. FlutterFlowTheme.of(context)
  1550. .titleMedium
  1551. .fontWeight,
  1552. fontStyle:
  1553. FlutterFlowTheme.of(context)
  1554. .titleMedium
  1555. .fontStyle,
  1556. ),
  1557. ),
  1558. FFButtonWidget(
  1559. onPressed: () async {
  1560. FFAppState().kloonBron = null;
  1561. safeSetState(() {});
  1562. context.pushNamed(
  1563. StadsactiviteitAanmakenWidget
  1564. .routeName);
  1565. },
  1566. text:
  1567. FFLocalizations.of(context).getText(
  1568. 'h3caw9re' /* + Activiteit */,
  1569. ),
  1570. options: FFButtonOptions(
  1571. height: 40.0,
  1572. padding:
  1573. EdgeInsetsDirectional.fromSTEB(
  1574. 16.0, 0.0, 16.0, 0.0),
  1575. iconPadding:
  1576. EdgeInsetsDirectional.fromSTEB(
  1577. 0.0, 0.0, 0.0, 0.0),
  1578. color: FlutterFlowTheme.of(context)
  1579. .secondary,
  1580. textStyle: FlutterFlowTheme.of(
  1581. context)
  1582. .titleSmall
  1583. .override(
  1584. font: GoogleFonts.roboto(
  1585. fontWeight:
  1586. FlutterFlowTheme.of(
  1587. context)
  1588. .titleSmall
  1589. .fontWeight,
  1590. fontStyle:
  1591. FlutterFlowTheme.of(
  1592. context)
  1593. .titleSmall
  1594. .fontStyle,
  1595. ),
  1596. color: Colors.white,
  1597. letterSpacing: 0.0,
  1598. fontWeight:
  1599. FlutterFlowTheme.of(context)
  1600. .titleSmall
  1601. .fontWeight,
  1602. fontStyle:
  1603. FlutterFlowTheme.of(context)
  1604. .titleSmall
  1605. .fontStyle,
  1606. ),
  1607. elevation: 0.0,
  1608. borderRadius:
  1609. BorderRadius.circular(8.0),
  1610. ),
  1611. ),
  1612. ],
  1613. ),
  1614. FutureBuilder<ApiCallResponse>(
  1615. future: MijnStadsrechtenCall.call(
  1616. sessionName: FFAppState().userSessionname,
  1617. sessid: FFAppState().userSessionid,
  1618. ),
  1619. builder: (context, snapshot) {
  1620. // Customize what your widget looks like when it's loading.
  1621. if (!snapshot.hasData) {
  1622. return Center(
  1623. child: SizedBox(
  1624. width: 80.0,
  1625. height: 80.0,
  1626. child: SpinKitFadingCircle(
  1627. color:
  1628. FlutterFlowTheme.of(context)
  1629. .primary,
  1630. size: 80.0,
  1631. ),
  1632. ),
  1633. );
  1634. }
  1635. final listViewMijnStadsrechtenResponse =
  1636. snapshot.data!;
  1637. _model.debugBackendQueries[
  1638. 'MijnStadsrechtenCall_statusCode_ListView_m1osuvrr'] =
  1639. debugSerializeParam(
  1640. listViewMijnStadsrechtenResponse
  1641. .statusCode,
  1642. ParamType.int,
  1643. link:
  1644. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1645. name: 'int',
  1646. nullable: false,
  1647. );
  1648. _model.debugBackendQueries[
  1649. 'MijnStadsrechtenCall_responseBody_ListView_m1osuvrr'] =
  1650. debugSerializeParam(
  1651. listViewMijnStadsrechtenResponse
  1652. .bodyText,
  1653. ParamType.String,
  1654. link:
  1655. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1656. name: 'String',
  1657. nullable: false,
  1658. );
  1659. debugLogWidgetClass(_model);
  1660. return Builder(
  1661. builder: (context) {
  1662. final rechtItem =
  1663. listViewMijnStadsrechtenResponse
  1664. .jsonBody
  1665. .toList();
  1666. if (rechtItem.isEmpty) {
  1667. return LegeLijstComponentWidget(
  1668. tekst:
  1669. 'Je hebt geen rechten als stadseditor. Je kunt wel activiteiten toevoegen, maar ze moeten eerst worden goedgekeurd door Uitgaanskrant.com.',
  1670. );
  1671. }
  1672. _model.debugGeneratorVariables[
  1673. 'rechtItem${rechtItem.length > 100 ? ' (first 100)' : ''}'] =
  1674. debugSerializeParam(
  1675. rechtItem.take(100),
  1676. ParamType.JSON,
  1677. isList: true,
  1678. link:
  1679. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1680. name: 'dynamic',
  1681. nullable: false,
  1682. );
  1683. debugLogWidgetClass(_model);
  1684. return ListView.builder(
  1685. padding: EdgeInsets.zero,
  1686. shrinkWrap: true,
  1687. scrollDirection: Axis.vertical,
  1688. itemCount: rechtItem.length,
  1689. itemBuilder:
  1690. (context, rechtItemIndex) {
  1691. final rechtItemItem =
  1692. rechtItem[rechtItemIndex];
  1693. return Padding(
  1694. padding: EdgeInsets.all(12.0),
  1695. child: Container(
  1696. decoration: BoxDecoration(
  1697. color: FlutterFlowTheme.of(
  1698. context)
  1699. .secondaryBackground,
  1700. borderRadius:
  1701. BorderRadius.circular(
  1702. 8.0),
  1703. ),
  1704. child: Column(
  1705. mainAxisSize:
  1706. MainAxisSize.max,
  1707. crossAxisAlignment:
  1708. CrossAxisAlignment
  1709. .start,
  1710. children: [
  1711. Text(
  1712. '${getJsonField(
  1713. rechtItemItem,
  1714. r'''$.titel''',
  1715. ).toString()} — ${getJsonField(
  1716. rechtItemItem,
  1717. r'''$.parent_titel''',
  1718. ).toString()}',
  1719. style:
  1720. FlutterFlowTheme.of(
  1721. context)
  1722. .bodyMedium
  1723. .override(
  1724. font: GoogleFonts
  1725. .roboto(
  1726. fontWeight: FlutterFlowTheme.of(
  1727. context)
  1728. .bodyMedium
  1729. .fontWeight,
  1730. fontStyle: FlutterFlowTheme.of(
  1731. context)
  1732. .bodyMedium
  1733. .fontStyle,
  1734. ),
  1735. letterSpacing:
  1736. 0.0,
  1737. fontWeight: FlutterFlowTheme.of(
  1738. context)
  1739. .bodyMedium
  1740. .fontWeight,
  1741. fontStyle: FlutterFlowTheme.of(
  1742. context)
  1743. .bodyMedium
  1744. .fontStyle,
  1745. ),
  1746. ),
  1747. FFButtonWidget(
  1748. onPressed: () async {
  1749. FFAppState()
  1750. .kloonBron = null;
  1751. safeSetState(() {});
  1752. context.pushNamed(
  1753. StadsactiviteitAanmakenWidget
  1754. .routeName,
  1755. queryParameters: {
  1756. 'gemeenteTid':
  1757. serializeParam(
  1758. getJsonField(
  1759. rechtItemItem,
  1760. r'''$.tid''',
  1761. ).toString(),
  1762. ParamType
  1763. .String,
  1764. ),
  1765. }.withoutNulls,
  1766. );
  1767. },
  1768. text:
  1769. FFLocalizations.of(
  1770. context)
  1771. .getText(
  1772. 'hfqho9ti' /* + Activiteit aanmaken */,
  1773. ),
  1774. options:
  1775. FFButtonOptions(
  1776. width:
  1777. double.infinity,
  1778. height: 40.0,
  1779. padding:
  1780. EdgeInsetsDirectional
  1781. .fromSTEB(
  1782. 16.0,
  1783. 0.0,
  1784. 16.0,
  1785. 0.0),
  1786. iconPadding:
  1787. EdgeInsetsDirectional
  1788. .fromSTEB(
  1789. 0.0,
  1790. 0.0,
  1791. 0.0,
  1792. 0.0),
  1793. color: FlutterFlowTheme
  1794. .of(context)
  1795. .secondary,
  1796. textStyle:
  1797. FlutterFlowTheme.of(
  1798. context)
  1799. .titleSmall
  1800. .override(
  1801. font: GoogleFonts
  1802. .roboto(
  1803. fontWeight: FlutterFlowTheme.of(
  1804. context)
  1805. .titleSmall
  1806. .fontWeight,
  1807. fontStyle: FlutterFlowTheme.of(
  1808. context)
  1809. .titleSmall
  1810. .fontStyle,
  1811. ),
  1812. color: Colors
  1813. .white,
  1814. letterSpacing:
  1815. 0.0,
  1816. fontWeight: FlutterFlowTheme.of(
  1817. context)
  1818. .titleSmall
  1819. .fontWeight,
  1820. fontStyle: FlutterFlowTheme.of(
  1821. context)
  1822. .titleSmall
  1823. .fontStyle,
  1824. ),
  1825. elevation: 0.0,
  1826. borderRadius:
  1827. BorderRadius
  1828. .circular(
  1829. 8.0),
  1830. ),
  1831. ),
  1832. ],
  1833. ),
  1834. ),
  1835. );
  1836. },
  1837. );
  1838. },
  1839. );
  1840. },
  1841. ),
  1842. ],
  1843. ),
  1844. ),
  1845. SingleChildScrollView(
  1846. child: Column(
  1847. mainAxisSize: MainAxisSize.max,
  1848. children: [
  1849. Padding(
  1850. padding: EdgeInsets.all(16.0),
  1851. child: Text(
  1852. FFAppState().userName,
  1853. style: FlutterFlowTheme.of(context)
  1854. .bodyMedium
  1855. .override(
  1856. font: GoogleFonts.roboto(
  1857. fontWeight:
  1858. FlutterFlowTheme.of(context)
  1859. .bodyMedium
  1860. .fontWeight,
  1861. fontStyle:
  1862. FlutterFlowTheme.of(context)
  1863. .bodyMedium
  1864. .fontStyle,
  1865. ),
  1866. letterSpacing: 0.0,
  1867. fontWeight:
  1868. FlutterFlowTheme.of(context)
  1869. .bodyMedium
  1870. .fontWeight,
  1871. fontStyle:
  1872. FlutterFlowTheme.of(context)
  1873. .bodyMedium
  1874. .fontStyle,
  1875. ),
  1876. ),
  1877. ),
  1878. InkWell(
  1879. splashColor: Colors.transparent,
  1880. focusColor: Colors.transparent,
  1881. hoverColor: Colors.transparent,
  1882. highlightColor: Colors.transparent,
  1883. onTap: () async {
  1884. context.pushNamed(
  1885. WachtwoordVergetenWidget.routeName);
  1886. },
  1887. child: Material(
  1888. color: Colors.transparent,
  1889. child: ListTile(
  1890. title: Text(
  1891. FFLocalizations.of(context).getText(
  1892. '0sxtqp61' /* Wachtwoord wijzigen */,
  1893. ),
  1894. style: FlutterFlowTheme.of(context)
  1895. .titleLarge
  1896. .override(
  1897. font: GoogleFonts.roboto(
  1898. fontWeight:
  1899. FlutterFlowTheme.of(
  1900. context)
  1901. .titleLarge
  1902. .fontWeight,
  1903. fontStyle:
  1904. FlutterFlowTheme.of(
  1905. context)
  1906. .titleLarge
  1907. .fontStyle,
  1908. ),
  1909. letterSpacing: 0.0,
  1910. fontWeight:
  1911. FlutterFlowTheme.of(context)
  1912. .titleLarge
  1913. .fontWeight,
  1914. fontStyle:
  1915. FlutterFlowTheme.of(context)
  1916. .titleLarge
  1917. .fontStyle,
  1918. ),
  1919. ),
  1920. trailing: Icon(
  1921. Icons.arrow_forward_ios_rounded,
  1922. color: FlutterFlowTheme.of(context)
  1923. .secondaryText,
  1924. size: 24.0,
  1925. ),
  1926. tileColor: FlutterFlowTheme.of(context)
  1927. .secondaryBackground,
  1928. dense: false,
  1929. contentPadding:
  1930. EdgeInsetsDirectional.fromSTEB(
  1931. 12.0, 0.0, 12.0, 0.0),
  1932. shape: RoundedRectangleBorder(
  1933. borderRadius:
  1934. BorderRadius.circular(8.0),
  1935. ),
  1936. ),
  1937. ),
  1938. ),
  1939. InkWell(
  1940. splashColor: Colors.transparent,
  1941. focusColor: Colors.transparent,
  1942. hoverColor: Colors.transparent,
  1943. highlightColor: Colors.transparent,
  1944. onTap: () async {
  1945. await launchURL(
  1946. 'https://uitgaanskrant.com/nl/support/mobieleapp');
  1947. },
  1948. child: Material(
  1949. color: Colors.transparent,
  1950. child: ListTile(
  1951. title: Text(
  1952. FFLocalizations.of(context).getText(
  1953. '4sjzjw0j' /* Account verwijderen */,
  1954. ),
  1955. style: FlutterFlowTheme.of(context)
  1956. .titleLarge
  1957. .override(
  1958. font: GoogleFonts.roboto(
  1959. fontWeight:
  1960. FlutterFlowTheme.of(
  1961. context)
  1962. .titleLarge
  1963. .fontWeight,
  1964. fontStyle:
  1965. FlutterFlowTheme.of(
  1966. context)
  1967. .titleLarge
  1968. .fontStyle,
  1969. ),
  1970. letterSpacing: 0.0,
  1971. fontWeight:
  1972. FlutterFlowTheme.of(context)
  1973. .titleLarge
  1974. .fontWeight,
  1975. fontStyle:
  1976. FlutterFlowTheme.of(context)
  1977. .titleLarge
  1978. .fontStyle,
  1979. ),
  1980. ),
  1981. trailing: Icon(
  1982. Icons.arrow_forward_ios_rounded,
  1983. color: FlutterFlowTheme.of(context)
  1984. .secondaryText,
  1985. size: 24.0,
  1986. ),
  1987. tileColor: FlutterFlowTheme.of(context)
  1988. .secondaryBackground,
  1989. dense: false,
  1990. contentPadding:
  1991. EdgeInsetsDirectional.fromSTEB(
  1992. 12.0, 0.0, 12.0, 0.0),
  1993. shape: RoundedRectangleBorder(
  1994. borderRadius:
  1995. BorderRadius.circular(8.0),
  1996. ),
  1997. ),
  1998. ),
  1999. ),
  2000. InkWell(
  2001. splashColor: Colors.transparent,
  2002. focusColor: Colors.transparent,
  2003. hoverColor: Colors.transparent,
  2004. highlightColor: Colors.transparent,
  2005. onTap: () async {
  2006. FFAppState().deleteUserToken();
  2007. FFAppState().userToken = '';
  2008. FFAppState().deleteUserSessionid();
  2009. FFAppState().userSessionid = '';
  2010. FFAppState().deleteUserSessionname();
  2011. FFAppState().userSessionname = '';
  2012. FFAppState().deleteUserName();
  2013. FFAppState().userName = '';
  2014. FFAppState().deleteUserUid();
  2015. FFAppState().userUid = 0;
  2016. FFAppState().deleteUserMail();
  2017. FFAppState().userMail = '';
  2018. safeSetState(() {});
  2019. context.goNamed(LoginWidget.routeName);
  2020. },
  2021. child: Material(
  2022. color: Colors.transparent,
  2023. child: ListTile(
  2024. title: Text(
  2025. FFLocalizations.of(context).getText(
  2026. 'owegb3ht' /* Uitloggen */,
  2027. ),
  2028. style: FlutterFlowTheme.of(context)
  2029. .titleLarge
  2030. .override(
  2031. font: GoogleFonts.roboto(
  2032. fontWeight:
  2033. FlutterFlowTheme.of(
  2034. context)
  2035. .titleLarge
  2036. .fontWeight,
  2037. fontStyle:
  2038. FlutterFlowTheme.of(
  2039. context)
  2040. .titleLarge
  2041. .fontStyle,
  2042. ),
  2043. letterSpacing: 0.0,
  2044. fontWeight:
  2045. FlutterFlowTheme.of(context)
  2046. .titleLarge
  2047. .fontWeight,
  2048. fontStyle:
  2049. FlutterFlowTheme.of(context)
  2050. .titleLarge
  2051. .fontStyle,
  2052. ),
  2053. ),
  2054. trailing: Icon(
  2055. Icons.arrow_forward_ios_rounded,
  2056. color: FlutterFlowTheme.of(context)
  2057. .secondaryText,
  2058. size: 24.0,
  2059. ),
  2060. tileColor: FlutterFlowTheme.of(context)
  2061. .secondaryBackground,
  2062. dense: false,
  2063. contentPadding:
  2064. EdgeInsetsDirectional.fromSTEB(
  2065. 12.0, 0.0, 12.0, 0.0),
  2066. shape: RoundedRectangleBorder(
  2067. borderRadius:
  2068. BorderRadius.circular(8.0),
  2069. ),
  2070. ),
  2071. ),
  2072. ),
  2073. ],
  2074. ),
  2075. ),
  2076. Column(
  2077. mainAxisSize: MainAxisSize.max,
  2078. children: [
  2079. FutureBuilder<ApiCallResponse>(
  2080. future: NieuwsbrievenCall.call(
  2081. sessionName: FFAppState().userSessionname,
  2082. sessid: FFAppState().userSessionid,
  2083. ),
  2084. builder: (context, snapshot) {
  2085. // Customize what your widget looks like when it's loading.
  2086. if (!snapshot.hasData) {
  2087. return Center(
  2088. child: SizedBox(
  2089. width: 80.0,
  2090. height: 80.0,
  2091. child: SpinKitFadingCircle(
  2092. color: FlutterFlowTheme.of(context)
  2093. .primary,
  2094. size: 80.0,
  2095. ),
  2096. ),
  2097. );
  2098. }
  2099. final listViewNieuwsbrievenResponse =
  2100. snapshot.data!;
  2101. _model.debugBackendQueries[
  2102. 'NieuwsbrievenCall_statusCode_ListView_35upog4p'] =
  2103. debugSerializeParam(
  2104. listViewNieuwsbrievenResponse.statusCode,
  2105. ParamType.int,
  2106. link:
  2107. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  2108. name: 'int',
  2109. nullable: false,
  2110. );
  2111. _model.debugBackendQueries[
  2112. 'NieuwsbrievenCall_responseBody_ListView_35upog4p'] =
  2113. debugSerializeParam(
  2114. listViewNieuwsbrievenResponse.bodyText,
  2115. ParamType.String,
  2116. link:
  2117. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  2118. name: 'String',
  2119. nullable: false,
  2120. );
  2121. debugLogWidgetClass(_model);
  2122. return Builder(
  2123. builder: (context) {
  2124. final nieuwsbriefItem =
  2125. NieuwsbrievenCall.items(
  2126. listViewNieuwsbrievenResponse
  2127. .jsonBody,
  2128. )?.toList() ??
  2129. [];
  2130. _model.debugGeneratorVariables[
  2131. 'nieuwsbriefItem${nieuwsbriefItem.length > 100 ? ' (first 100)' : ''}'] =
  2132. debugSerializeParam(
  2133. nieuwsbriefItem.take(100),
  2134. ParamType.JSON,
  2135. isList: true,
  2136. link:
  2137. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  2138. name: 'dynamic',
  2139. nullable: false,
  2140. );
  2141. debugLogWidgetClass(_model);
  2142. return ListView.builder(
  2143. padding: EdgeInsets.zero,
  2144. shrinkWrap: true,
  2145. scrollDirection: Axis.vertical,
  2146. itemCount: nieuwsbriefItem.length,
  2147. itemBuilder:
  2148. (context, nieuwsbriefItemIndex) {
  2149. final nieuwsbriefItemItem =
  2150. nieuwsbriefItem[
  2151. nieuwsbriefItemIndex];
  2152. return Padding(
  2153. padding: EdgeInsetsDirectional
  2154. .fromSTEB(
  2155. 16.0, 10.0, 16.0, 10.0),
  2156. child: Row(
  2157. mainAxisSize: MainAxisSize.max,
  2158. children: [
  2159. Expanded(
  2160. child: Column(
  2161. mainAxisSize:
  2162. MainAxisSize.max,
  2163. crossAxisAlignment:
  2164. CrossAxisAlignment
  2165. .start,
  2166. children: [
  2167. Text(
  2168. getJsonField(
  2169. nieuwsbriefItemItem,
  2170. r'''$.naam''',
  2171. ).toString(),
  2172. style: FlutterFlowTheme
  2173. .of(context)
  2174. .titleSmall
  2175. .override(
  2176. font:
  2177. GoogleFonts
  2178. .roboto(
  2179. fontWeight: FlutterFlowTheme.of(
  2180. context)
  2181. .titleSmall
  2182. .fontWeight,
  2183. fontStyle: FlutterFlowTheme.of(
  2184. context)
  2185. .titleSmall
  2186. .fontStyle,
  2187. ),
  2188. letterSpacing:
  2189. 0.0,
  2190. fontWeight: FlutterFlowTheme.of(
  2191. context)
  2192. .titleSmall
  2193. .fontWeight,
  2194. fontStyle: FlutterFlowTheme.of(
  2195. context)
  2196. .titleSmall
  2197. .fontStyle,
  2198. ),
  2199. ),
  2200. Text(
  2201. getJsonField(
  2202. nieuwsbriefItemItem,
  2203. r'''$.omschrijving''',
  2204. ).toString(),
  2205. style: FlutterFlowTheme
  2206. .of(context)
  2207. .bodySmall
  2208. .override(
  2209. font:
  2210. GoogleFonts
  2211. .roboto(
  2212. fontWeight: FlutterFlowTheme.of(
  2213. context)
  2214. .bodySmall
  2215. .fontWeight,
  2216. fontStyle: FlutterFlowTheme.of(
  2217. context)
  2218. .bodySmall
  2219. .fontStyle,
  2220. ),
  2221. color: FlutterFlowTheme.of(
  2222. context)
  2223. .secondaryText,
  2224. letterSpacing:
  2225. 0.0,
  2226. fontWeight: FlutterFlowTheme.of(
  2227. context)
  2228. .bodySmall
  2229. .fontWeight,
  2230. fontStyle: FlutterFlowTheme.of(
  2231. context)
  2232. .bodySmall
  2233. .fontStyle,
  2234. ),
  2235. ),
  2236. ],
  2237. ),
  2238. ),
  2239. if (!functions.nieuwsbriefAan(
  2240. nieuwsbriefItemItem))
  2241. FlutterFlowIconButton(
  2242. borderRadius: 8.0,
  2243. buttonSize: 40.0,
  2244. icon: Icon(
  2245. Icons.toggle_off,
  2246. color:
  2247. FlutterFlowTheme.of(
  2248. context)
  2249. .secondaryText,
  2250. size: 32.0,
  2251. ),
  2252. onPressed: () async {
  2253. await actions
  2254. .drupalRequest(
  2255. 'POST',
  2256. 'https://uitgaanskrant.com/nl/flutterdrup/nieuwsbrieven/subscribe.json',
  2257. FFAppState()
  2258. .userSessionname,
  2259. FFAppState()
  2260. .userSessionid,
  2261. FFAppState()
  2262. .userToken,
  2263. '{\"tid\": ${getJsonField(
  2264. nieuwsbriefItemItem,
  2265. r'''$.tid''',
  2266. ).toString()}}',
  2267. );
  2268. safeSetState(() {});
  2269. },
  2270. ),
  2271. if (functions.nieuwsbriefAan(
  2272. nieuwsbriefItemItem))
  2273. FlutterFlowIconButton(
  2274. borderRadius: 8.0,
  2275. buttonSize: 40.0,
  2276. icon: Icon(
  2277. Icons.toggle_on,
  2278. color:
  2279. FlutterFlowTheme.of(
  2280. context)
  2281. .primary,
  2282. size: 32.0,
  2283. ),
  2284. onPressed: () async {
  2285. await actions
  2286. .drupalRequest(
  2287. 'POST',
  2288. 'https://uitgaanskrant.com/nl/flutterdrup/nieuwsbrieven/unsubscribe.json',
  2289. FFAppState()
  2290. .userSessionname,
  2291. FFAppState()
  2292. .userSessionid,
  2293. FFAppState()
  2294. .userToken,
  2295. '{\"tid\": ${getJsonField(
  2296. nieuwsbriefItemItem,
  2297. r'''$.tid''',
  2298. ).toString()}}',
  2299. );
  2300. safeSetState(() {});
  2301. },
  2302. ),
  2303. ],
  2304. ),
  2305. );
  2306. },
  2307. );
  2308. },
  2309. );
  2310. },
  2311. ),
  2312. if (!(FFAppState()
  2313. .favorieteGemeenteIds
  2314. .isNotEmpty))
  2315. Padding(
  2316. padding: EdgeInsetsDirectional.fromSTEB(
  2317. 16.0, 8.0, 16.0, 24.0),
  2318. child: InkWell(
  2319. splashColor: Colors.transparent,
  2320. focusColor: Colors.transparent,
  2321. hoverColor: Colors.transparent,
  2322. highlightColor: Colors.transparent,
  2323. onTap: () async {
  2324. context.pushNamed(
  2325. SelectprovinciegemeenteWidget
  2326. .routeName);
  2327. },
  2328. child: Text(
  2329. FFLocalizations.of(context).getText(
  2330. '13hlbqrf' /* Je volgt nog geen gemeenten, d... */,
  2331. ),
  2332. style: FlutterFlowTheme.of(context)
  2333. .bodyMedium
  2334. .override(
  2335. font: GoogleFonts.roboto(
  2336. fontWeight:
  2337. FlutterFlowTheme.of(context)
  2338. .bodyMedium
  2339. .fontWeight,
  2340. fontStyle:
  2341. FlutterFlowTheme.of(context)
  2342. .bodyMedium
  2343. .fontStyle,
  2344. ),
  2345. color:
  2346. FlutterFlowTheme.of(context)
  2347. .primary,
  2348. letterSpacing: 0.0,
  2349. fontWeight:
  2350. FlutterFlowTheme.of(context)
  2351. .bodyMedium
  2352. .fontWeight,
  2353. fontStyle:
  2354. FlutterFlowTheme.of(context)
  2355. .bodyMedium
  2356. .fontStyle,
  2357. ),
  2358. ),
  2359. ),
  2360. ),
  2361. Padding(
  2362. padding: EdgeInsetsDirectional.fromSTEB(
  2363. 16.0, 8.0, 16.0, 24.0),
  2364. child: InkWell(
  2365. splashColor: Colors.transparent,
  2366. focusColor: Colors.transparent,
  2367. hoverColor: Colors.transparent,
  2368. highlightColor: Colors.transparent,
  2369. onTap: () async {
  2370. context.pushNamed(
  2371. SelectprovinciegemeenteWidget
  2372. .routeName);
  2373. },
  2374. child: Text(
  2375. FFLocalizations.of(context).getText(
  2376. 'jmzi90pc' /* De wekelijkse uitgaansagenda g... */,
  2377. ),
  2378. style: FlutterFlowTheme.of(context)
  2379. .bodyMedium
  2380. .override(
  2381. font: GoogleFonts.roboto(
  2382. fontWeight:
  2383. FlutterFlowTheme.of(context)
  2384. .bodyMedium
  2385. .fontWeight,
  2386. fontStyle:
  2387. FlutterFlowTheme.of(context)
  2388. .bodyMedium
  2389. .fontStyle,
  2390. ),
  2391. color: FlutterFlowTheme.of(context)
  2392. .secondary,
  2393. letterSpacing: 0.0,
  2394. fontWeight:
  2395. FlutterFlowTheme.of(context)
  2396. .bodyMedium
  2397. .fontWeight,
  2398. fontStyle:
  2399. FlutterFlowTheme.of(context)
  2400. .bodyMedium
  2401. .fontStyle,
  2402. ),
  2403. ),
  2404. ),
  2405. ),
  2406. ],
  2407. ),
  2408. ],
  2409. ),
  2410. ),
  2411. ],
  2412. ),
  2413. ),
  2414. ],
  2415. ),
  2416. ),
  2417. ),
  2418. ),
  2419. );
  2420. }
  2421. }