mijn_profiel_widget.dart 154 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435
  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 Column(
  441. mainAxisSize:
  442. MainAxisSize.max,
  443. children: [
  444. InkWell(
  445. splashColor:
  446. Colors.transparent,
  447. focusColor:
  448. Colors.transparent,
  449. hoverColor:
  450. Colors.transparent,
  451. highlightColor:
  452. Colors.transparent,
  453. onTap: () async {
  454. if (functions
  455. .isOngepubliceerd(
  456. aanmeldingItemItem)) {
  457. ScaffoldMessenger.of(
  458. context)
  459. .showSnackBar(
  460. SnackBar(
  461. content: Text(
  462. 'Dit item staat nog in beoordeling en is nog niet online.',
  463. style:
  464. TextStyle(
  465. color: FlutterFlowTheme.of(
  466. context)
  467. .primaryText,
  468. ),
  469. ),
  470. duration: Duration(
  471. milliseconds:
  472. 4000),
  473. backgroundColor:
  474. FlutterFlowTheme.of(
  475. context)
  476. .secondary,
  477. ),
  478. );
  479. } else {
  480. context.pushNamed(
  481. EventCurrentWidget
  482. .routeName,
  483. queryParameters: {
  484. 'nid':
  485. serializeParam(
  486. getJsonField(
  487. aanmeldingItemItem,
  488. r'''$.nid''',
  489. ).toString(),
  490. ParamType
  491. .String,
  492. ),
  493. }.withoutNulls,
  494. );
  495. }
  496. },
  497. child: Material(
  498. color:
  499. Colors.transparent,
  500. child: ListTile(
  501. title: Text(
  502. getJsonField(
  503. aanmeldingItemItem,
  504. r'''$.title''',
  505. ).toString(),
  506. style: FlutterFlowTheme
  507. .of(context)
  508. .titleLarge
  509. .override(
  510. font: GoogleFonts
  511. .roboto(
  512. fontWeight: FlutterFlowTheme.of(
  513. context)
  514. .titleLarge
  515. .fontWeight,
  516. fontStyle: FlutterFlowTheme.of(
  517. context)
  518. .titleLarge
  519. .fontStyle,
  520. ),
  521. letterSpacing:
  522. 0.0,
  523. fontWeight: FlutterFlowTheme.of(
  524. context)
  525. .titleLarge
  526. .fontWeight,
  527. fontStyle: FlutterFlowTheme.of(
  528. context)
  529. .titleLarge
  530. .fontStyle,
  531. ),
  532. ),
  533. subtitle: Text(
  534. getJsonField(
  535. aanmeldingItemItem,
  536. r'''$.datum_start''',
  537. ).toString(),
  538. style: FlutterFlowTheme
  539. .of(context)
  540. .labelMedium
  541. .override(
  542. font: GoogleFonts
  543. .roboto(
  544. fontWeight: FlutterFlowTheme.of(
  545. context)
  546. .labelMedium
  547. .fontWeight,
  548. fontStyle: FlutterFlowTheme.of(
  549. context)
  550. .labelMedium
  551. .fontStyle,
  552. ),
  553. letterSpacing:
  554. 0.0,
  555. fontWeight: FlutterFlowTheme.of(
  556. context)
  557. .labelMedium
  558. .fontWeight,
  559. fontStyle: FlutterFlowTheme.of(
  560. context)
  561. .labelMedium
  562. .fontStyle,
  563. ),
  564. ),
  565. trailing: Icon(
  566. Icons
  567. .arrow_forward_ios_rounded,
  568. color: FlutterFlowTheme
  569. .of(context)
  570. .secondaryText,
  571. size: 24.0,
  572. ),
  573. tileColor: FlutterFlowTheme
  574. .of(context)
  575. .secondaryBackground,
  576. dense: false,
  577. contentPadding:
  578. EdgeInsetsDirectional
  579. .fromSTEB(
  580. 12.0,
  581. 0.0,
  582. 12.0,
  583. 0.0),
  584. shape:
  585. RoundedRectangleBorder(
  586. borderRadius:
  587. BorderRadius
  588. .circular(
  589. 8.0),
  590. ),
  591. ),
  592. ),
  593. ),
  594. FFButtonWidget(
  595. onPressed: () async {
  596. _model.apiResultmls =
  597. await AanmeldingKloonbronCall
  598. .call(
  599. sessionName: FFAppState()
  600. .userSessionname,
  601. sessid: FFAppState()
  602. .userSessionid,
  603. nid: getJsonField(
  604. aanmeldingItemItem,
  605. r'''$.nid''',
  606. ).toString(),
  607. );
  608. if ((_model.apiResultmls
  609. ?.succeeded ??
  610. true)) {
  611. FFAppState()
  612. .kloonBron = (_model
  613. .apiResultmls
  614. ?.jsonBody ??
  615. '');
  616. safeSetState(() {});
  617. context.pushNamed(
  618. UitgaansevenementAanmakenWidget
  619. .routeName,
  620. queryParameters: {
  621. 'horecagelegenheidNid':
  622. serializeParam(
  623. getJsonField(
  624. aanmeldingItemItem,
  625. r'''$.horecagelegenheidnid''',
  626. ).toString(),
  627. ParamType
  628. .String,
  629. ),
  630. }.withoutNulls,
  631. );
  632. }
  633. safeSetState(() {});
  634. },
  635. text: FFLocalizations.of(
  636. context)
  637. .getText(
  638. 'oxse6aci' /* Kopie */,
  639. ),
  640. options: FFButtonOptions(
  641. height: 40.0,
  642. padding:
  643. EdgeInsetsDirectional
  644. .fromSTEB(
  645. 16.0,
  646. 0.0,
  647. 16.0,
  648. 0.0),
  649. iconPadding:
  650. EdgeInsetsDirectional
  651. .fromSTEB(
  652. 0.0,
  653. 0.0,
  654. 0.0,
  655. 0.0),
  656. color:
  657. FlutterFlowTheme.of(
  658. context)
  659. .primary,
  660. textStyle:
  661. FlutterFlowTheme.of(
  662. context)
  663. .titleSmall
  664. .override(
  665. font: GoogleFonts
  666. .roboto(
  667. fontWeight: FlutterFlowTheme.of(
  668. context)
  669. .titleSmall
  670. .fontWeight,
  671. fontStyle: FlutterFlowTheme.of(
  672. context)
  673. .titleSmall
  674. .fontStyle,
  675. ),
  676. color: Colors
  677. .white,
  678. letterSpacing:
  679. 0.0,
  680. fontWeight: FlutterFlowTheme.of(
  681. context)
  682. .titleSmall
  683. .fontWeight,
  684. fontStyle: FlutterFlowTheme.of(
  685. context)
  686. .titleSmall
  687. .fontStyle,
  688. ),
  689. elevation: 0.0,
  690. borderRadius:
  691. BorderRadius
  692. .circular(8.0),
  693. ),
  694. ),
  695. ],
  696. );
  697. },
  698. );
  699. },
  700. );
  701. },
  702. ),
  703. Row(
  704. mainAxisSize: MainAxisSize.max,
  705. mainAxisAlignment:
  706. MainAxisAlignment.spaceBetween,
  707. children: [
  708. Text(
  709. FFLocalizations.of(context).getText(
  710. 'aiokgolu' /* Mijn horecagelegenheden */,
  711. ),
  712. style: FlutterFlowTheme.of(context)
  713. .titleMedium
  714. .override(
  715. font: GoogleFonts.roboto(
  716. fontWeight:
  717. FlutterFlowTheme.of(context)
  718. .titleMedium
  719. .fontWeight,
  720. fontStyle:
  721. FlutterFlowTheme.of(context)
  722. .titleMedium
  723. .fontStyle,
  724. ),
  725. letterSpacing: 0.0,
  726. fontWeight:
  727. FlutterFlowTheme.of(context)
  728. .titleMedium
  729. .fontWeight,
  730. fontStyle:
  731. FlutterFlowTheme.of(context)
  732. .titleMedium
  733. .fontStyle,
  734. ),
  735. ),
  736. FFButtonWidget(
  737. onPressed: () async {
  738. await launchURL(
  739. 'https://uitgaanskrant.com/en/ondernemers#aanmaken');
  740. },
  741. text:
  742. FFLocalizations.of(context).getText(
  743. '8a7ti6zc' /* Zaak toevoegen */,
  744. ),
  745. options: FFButtonOptions(
  746. height: 40.0,
  747. padding:
  748. EdgeInsetsDirectional.fromSTEB(
  749. 16.0, 0.0, 16.0, 0.0),
  750. iconPadding:
  751. EdgeInsetsDirectional.fromSTEB(
  752. 0.0, 0.0, 0.0, 0.0),
  753. color: FlutterFlowTheme.of(context)
  754. .secondary,
  755. textStyle: FlutterFlowTheme.of(
  756. context)
  757. .titleSmall
  758. .override(
  759. font: GoogleFonts.roboto(
  760. fontWeight:
  761. FlutterFlowTheme.of(
  762. context)
  763. .titleSmall
  764. .fontWeight,
  765. fontStyle:
  766. FlutterFlowTheme.of(
  767. context)
  768. .titleSmall
  769. .fontStyle,
  770. ),
  771. color: Colors.white,
  772. letterSpacing: 0.0,
  773. fontWeight:
  774. FlutterFlowTheme.of(context)
  775. .titleSmall
  776. .fontWeight,
  777. fontStyle:
  778. FlutterFlowTheme.of(context)
  779. .titleSmall
  780. .fontStyle,
  781. ),
  782. elevation: 0.0,
  783. borderRadius:
  784. BorderRadius.circular(8.0),
  785. ),
  786. ),
  787. ],
  788. ),
  789. FutureBuilder<ApiCallResponse>(
  790. future: MijnHorecagelegenhedenCall.call(
  791. sessionName: FFAppState().userSessionname,
  792. sessid: FFAppState().userSessionid,
  793. ),
  794. builder: (context, snapshot) {
  795. // Customize what your widget looks like when it's loading.
  796. if (!snapshot.hasData) {
  797. return Center(
  798. child: SizedBox(
  799. width: 80.0,
  800. height: 80.0,
  801. child: SpinKitFadingCircle(
  802. color:
  803. FlutterFlowTheme.of(context)
  804. .primary,
  805. size: 80.0,
  806. ),
  807. ),
  808. );
  809. }
  810. final listViewMijnHorecagelegenhedenResponse =
  811. snapshot.data!;
  812. _model.debugBackendQueries[
  813. 'MijnHorecagelegenhedenCall_statusCode_ListView_gxiuys53'] =
  814. debugSerializeParam(
  815. listViewMijnHorecagelegenhedenResponse
  816. .statusCode,
  817. ParamType.int,
  818. link:
  819. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  820. name: 'int',
  821. nullable: false,
  822. );
  823. _model.debugBackendQueries[
  824. 'MijnHorecagelegenhedenCall_responseBody_ListView_gxiuys53'] =
  825. debugSerializeParam(
  826. listViewMijnHorecagelegenhedenResponse
  827. .bodyText,
  828. ParamType.String,
  829. link:
  830. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  831. name: 'String',
  832. nullable: false,
  833. );
  834. debugLogWidgetClass(_model);
  835. return Builder(
  836. builder: (context) {
  837. final horecaItem =
  838. listViewMijnHorecagelegenhedenResponse
  839. .jsonBody
  840. .toList();
  841. if (horecaItem.isEmpty) {
  842. return LegeLijstComponentWidget(
  843. tekst:
  844. 'Je hebt geen horecagelegenheden. Deze kun je gratis aanmaken op de uitgaanskrant.com website.',
  845. );
  846. }
  847. _model.debugGeneratorVariables[
  848. 'horecaItem${horecaItem.length > 100 ? ' (first 100)' : ''}'] =
  849. debugSerializeParam(
  850. horecaItem.take(100),
  851. ParamType.JSON,
  852. isList: true,
  853. link:
  854. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  855. name: 'dynamic',
  856. nullable: false,
  857. );
  858. debugLogWidgetClass(_model);
  859. return ListView.builder(
  860. padding: EdgeInsets.zero,
  861. shrinkWrap: true,
  862. scrollDirection: Axis.vertical,
  863. itemCount: horecaItem.length,
  864. itemBuilder:
  865. (context, horecaItemIndex) {
  866. final horecaItemItem =
  867. horecaItem[horecaItemIndex];
  868. return Column(
  869. mainAxisSize: MainAxisSize.max,
  870. children: [
  871. Builder(builder: (_) {
  872. return DebugFlutterFlowModelContext(
  873. rootModel:
  874. _model.rootModel,
  875. parentModelCallback: (m) {
  876. _model.horecagelegenheidoverzichtKaartModels[
  877. 'Key4vp_${horecaItemIndex}_of_${horecaItem.length}'] = m;
  878. },
  879. child:
  880. HorecagelegenheidoverzichtKaartWidget(
  881. key: Key(
  882. 'Key4vp_${horecaItemIndex}_of_${horecaItem.length}'),
  883. titel: getJsonField(
  884. horecaItemItem,
  885. r'''$.titel''',
  886. ).toString(),
  887. logo: getJsonField(
  888. horecaItemItem,
  889. r'''$.logo''',
  890. ).toString(),
  891. nid: getJsonField(
  892. horecaItemItem,
  893. r'''$.nid''',
  894. ).toString(),
  895. adres: getJsonField(
  896. horecaItemItem,
  897. r'''$.adres''',
  898. ).toString(),
  899. plaats: getJsonField(
  900. horecaItemItem,
  901. r'''$.plaats''',
  902. ).toString(),
  903. categorie:
  904. (getJsonField(
  905. horecaItemItem,
  906. r'''$.categorie''',
  907. true,
  908. ) as List?)
  909. ?.map<String>(
  910. (e) => e
  911. .toString())
  912. .toList()
  913. .cast<String>(),
  914. ),
  915. );
  916. }),
  917. FFButtonWidget(
  918. onPressed: () async {
  919. FFAppState().kloonBron =
  920. null;
  921. safeSetState(() {});
  922. context.pushNamed(
  923. UitgaansevenementAanmakenWidget
  924. .routeName,
  925. queryParameters: {
  926. 'horecagelegenheidNid':
  927. serializeParam(
  928. getJsonField(
  929. horecaItemItem,
  930. r'''$.nid''',
  931. ).toString(),
  932. ParamType.String,
  933. ),
  934. }.withoutNulls,
  935. );
  936. },
  937. text: FFLocalizations.of(
  938. context)
  939. .getText(
  940. 'y6wd6qpb' /* + Evenement aanmaken */,
  941. ),
  942. options: FFButtonOptions(
  943. width: double.infinity,
  944. height: 40.0,
  945. padding:
  946. EdgeInsetsDirectional
  947. .fromSTEB(
  948. 16.0,
  949. 0.0,
  950. 16.0,
  951. 0.0),
  952. iconPadding:
  953. EdgeInsetsDirectional
  954. .fromSTEB(
  955. 0.0,
  956. 0.0,
  957. 0.0,
  958. 0.0),
  959. color:
  960. FlutterFlowTheme.of(
  961. context)
  962. .secondary,
  963. textStyle:
  964. FlutterFlowTheme.of(
  965. context)
  966. .titleSmall
  967. .override(
  968. font:
  969. GoogleFonts
  970. .roboto(
  971. fontWeight: FlutterFlowTheme.of(
  972. context)
  973. .titleSmall
  974. .fontWeight,
  975. fontStyle: FlutterFlowTheme.of(
  976. context)
  977. .titleSmall
  978. .fontStyle,
  979. ),
  980. color: Colors
  981. .white,
  982. letterSpacing:
  983. 0.0,
  984. fontWeight: FlutterFlowTheme.of(
  985. context)
  986. .titleSmall
  987. .fontWeight,
  988. fontStyle: FlutterFlowTheme.of(
  989. context)
  990. .titleSmall
  991. .fontStyle,
  992. ),
  993. elevation: 0.0,
  994. borderRadius:
  995. BorderRadius.circular(
  996. 8.0),
  997. ),
  998. ),
  999. ],
  1000. );
  1001. },
  1002. );
  1003. },
  1004. );
  1005. },
  1006. ),
  1007. Text(
  1008. FFLocalizations.of(context).getText(
  1009. 'xw2yzyh1' /* Een horecagelegenheid toevoege... */,
  1010. ),
  1011. style: FlutterFlowTheme.of(context)
  1012. .bodySmall
  1013. .override(
  1014. font: GoogleFonts.roboto(
  1015. fontWeight:
  1016. FlutterFlowTheme.of(context)
  1017. .bodySmall
  1018. .fontWeight,
  1019. fontStyle:
  1020. FlutterFlowTheme.of(context)
  1021. .bodySmall
  1022. .fontStyle,
  1023. ),
  1024. color: FlutterFlowTheme.of(context)
  1025. .secondaryText,
  1026. letterSpacing: 0.0,
  1027. fontWeight:
  1028. FlutterFlowTheme.of(context)
  1029. .bodySmall
  1030. .fontWeight,
  1031. fontStyle:
  1032. FlutterFlowTheme.of(context)
  1033. .bodySmall
  1034. .fontStyle,
  1035. ),
  1036. ),
  1037. ],
  1038. ),
  1039. ),
  1040. SingleChildScrollView(
  1041. child: Column(
  1042. mainAxisSize: MainAxisSize.max,
  1043. children: [
  1044. Row(
  1045. mainAxisSize: MainAxisSize.max,
  1046. mainAxisAlignment:
  1047. MainAxisAlignment.spaceBetween,
  1048. children: [
  1049. Text(
  1050. FFLocalizations.of(context).getText(
  1051. 'od5wmxf8' /* Eigen activiteiten */,
  1052. ),
  1053. style: FlutterFlowTheme.of(context)
  1054. .titleMedium
  1055. .override(
  1056. font: GoogleFonts.roboto(
  1057. fontWeight:
  1058. FlutterFlowTheme.of(context)
  1059. .titleMedium
  1060. .fontWeight,
  1061. fontStyle:
  1062. FlutterFlowTheme.of(context)
  1063. .titleMedium
  1064. .fontStyle,
  1065. ),
  1066. letterSpacing: 0.0,
  1067. fontWeight:
  1068. FlutterFlowTheme.of(context)
  1069. .titleMedium
  1070. .fontWeight,
  1071. fontStyle:
  1072. FlutterFlowTheme.of(context)
  1073. .titleMedium
  1074. .fontStyle,
  1075. ),
  1076. ),
  1077. FFButtonWidget(
  1078. onPressed: () async {
  1079. context.pushNamed(
  1080. MijnAanmeldingenWidget.routeName,
  1081. queryParameters: {
  1082. 'type': serializeParam(
  1083. 'activity',
  1084. ParamType.String,
  1085. ),
  1086. }.withoutNulls,
  1087. );
  1088. },
  1089. text:
  1090. FFLocalizations.of(context).getText(
  1091. 'lkv2denp' /* Bekijk alles */,
  1092. ),
  1093. options: FFButtonOptions(
  1094. height: 40.0,
  1095. padding:
  1096. EdgeInsetsDirectional.fromSTEB(
  1097. 16.0, 0.0, 16.0, 0.0),
  1098. iconPadding:
  1099. EdgeInsetsDirectional.fromSTEB(
  1100. 0.0, 0.0, 0.0, 0.0),
  1101. color: FlutterFlowTheme.of(context)
  1102. .secondary,
  1103. textStyle: FlutterFlowTheme.of(
  1104. context)
  1105. .titleSmall
  1106. .override(
  1107. font: GoogleFonts.roboto(
  1108. fontWeight:
  1109. FlutterFlowTheme.of(
  1110. context)
  1111. .titleSmall
  1112. .fontWeight,
  1113. fontStyle:
  1114. FlutterFlowTheme.of(
  1115. context)
  1116. .titleSmall
  1117. .fontStyle,
  1118. ),
  1119. color: Colors.white,
  1120. letterSpacing: 0.0,
  1121. fontWeight:
  1122. FlutterFlowTheme.of(context)
  1123. .titleSmall
  1124. .fontWeight,
  1125. fontStyle:
  1126. FlutterFlowTheme.of(context)
  1127. .titleSmall
  1128. .fontStyle,
  1129. ),
  1130. elevation: 0.0,
  1131. borderRadius:
  1132. BorderRadius.circular(8.0),
  1133. ),
  1134. ),
  1135. ],
  1136. ),
  1137. FutureBuilder<ApiCallResponse>(
  1138. future: MijnAanmeldingenCall.call(
  1139. sessionName: FFAppState().userSessionname,
  1140. sessid: FFAppState().userSessionid,
  1141. limit: 5,
  1142. type: 'activity',
  1143. komend: '1',
  1144. ),
  1145. builder: (context, snapshot) {
  1146. // Customize what your widget looks like when it's loading.
  1147. if (!snapshot.hasData) {
  1148. return Center(
  1149. child: SizedBox(
  1150. width: 80.0,
  1151. height: 80.0,
  1152. child: SpinKitFadingCircle(
  1153. color:
  1154. FlutterFlowTheme.of(context)
  1155. .primary,
  1156. size: 80.0,
  1157. ),
  1158. ),
  1159. );
  1160. }
  1161. final listViewMijnAanmeldingenResponse =
  1162. snapshot.data!;
  1163. _model.debugBackendQueries[
  1164. 'MijnAanmeldingenCall_statusCode_ListView_zmsqmody'] =
  1165. debugSerializeParam(
  1166. listViewMijnAanmeldingenResponse
  1167. .statusCode,
  1168. ParamType.int,
  1169. link:
  1170. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1171. name: 'int',
  1172. nullable: false,
  1173. );
  1174. _model.debugBackendQueries[
  1175. 'MijnAanmeldingenCall_responseBody_ListView_zmsqmody'] =
  1176. debugSerializeParam(
  1177. listViewMijnAanmeldingenResponse
  1178. .bodyText,
  1179. ParamType.String,
  1180. link:
  1181. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1182. name: 'String',
  1183. nullable: false,
  1184. );
  1185. debugLogWidgetClass(_model);
  1186. return Builder(
  1187. builder: (context) {
  1188. final aanmeldingItem =
  1189. MijnAanmeldingenCall.items(
  1190. listViewMijnAanmeldingenResponse
  1191. .jsonBody,
  1192. )?.toList() ??
  1193. [];
  1194. if (aanmeldingItem.isEmpty) {
  1195. return LegeLijstComponentWidget(
  1196. tekst:
  1197. 'Je hebt nog geen komende stadsactiviteiten aangemaakt.',
  1198. );
  1199. }
  1200. _model.debugGeneratorVariables[
  1201. 'aanmeldingItem${aanmeldingItem.length > 100 ? ' (first 100)' : ''}'] =
  1202. debugSerializeParam(
  1203. aanmeldingItem.take(100),
  1204. ParamType.JSON,
  1205. isList: true,
  1206. link:
  1207. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1208. name: 'dynamic',
  1209. nullable: false,
  1210. );
  1211. debugLogWidgetClass(_model);
  1212. return ListView.builder(
  1213. padding: EdgeInsets.zero,
  1214. shrinkWrap: true,
  1215. scrollDirection: Axis.vertical,
  1216. itemCount: aanmeldingItem.length,
  1217. itemBuilder:
  1218. (context, aanmeldingItemIndex) {
  1219. final aanmeldingItemItem =
  1220. aanmeldingItem[
  1221. aanmeldingItemIndex];
  1222. return Column(
  1223. mainAxisSize: MainAxisSize.max,
  1224. children: [
  1225. InkWell(
  1226. splashColor:
  1227. Colors.transparent,
  1228. focusColor:
  1229. Colors.transparent,
  1230. hoverColor:
  1231. Colors.transparent,
  1232. highlightColor:
  1233. Colors.transparent,
  1234. onTap: () async {
  1235. if (functions
  1236. .isOngepubliceerd(
  1237. aanmeldingItemItem)) {
  1238. ScaffoldMessenger.of(
  1239. context)
  1240. .showSnackBar(
  1241. SnackBar(
  1242. content: Text(
  1243. 'Dit item staat nog in beoordeling en is nog niet online.',
  1244. style: TextStyle(
  1245. color: FlutterFlowTheme.of(
  1246. context)
  1247. .primaryText,
  1248. ),
  1249. ),
  1250. duration: Duration(
  1251. milliseconds:
  1252. 4000),
  1253. backgroundColor:
  1254. FlutterFlowTheme.of(
  1255. context)
  1256. .secondary,
  1257. ),
  1258. );
  1259. } else {
  1260. context.pushNamed(
  1261. EventCurrentWidget
  1262. .routeName,
  1263. queryParameters: {
  1264. 'nid':
  1265. serializeParam(
  1266. getJsonField(
  1267. aanmeldingItemItem,
  1268. r'''$.nid''',
  1269. ).toString(),
  1270. ParamType.String,
  1271. ),
  1272. 'horecaid':
  1273. serializeParam(
  1274. getJsonField(
  1275. aanmeldingItemItem,
  1276. r'''$.horecagelegenheidnid''',
  1277. ).toString(),
  1278. ParamType.String,
  1279. ),
  1280. }.withoutNulls,
  1281. );
  1282. }
  1283. },
  1284. child: Material(
  1285. color: Colors.transparent,
  1286. child: ListTile(
  1287. title: Text(
  1288. getJsonField(
  1289. aanmeldingItemItem,
  1290. r'''$.title''',
  1291. ).toString(),
  1292. style: FlutterFlowTheme
  1293. .of(context)
  1294. .titleLarge
  1295. .override(
  1296. font:
  1297. GoogleFonts
  1298. .roboto(
  1299. fontWeight: FlutterFlowTheme.of(
  1300. context)
  1301. .titleLarge
  1302. .fontWeight,
  1303. fontStyle: FlutterFlowTheme.of(
  1304. context)
  1305. .titleLarge
  1306. .fontStyle,
  1307. ),
  1308. letterSpacing:
  1309. 0.0,
  1310. fontWeight: FlutterFlowTheme.of(
  1311. context)
  1312. .titleLarge
  1313. .fontWeight,
  1314. fontStyle: FlutterFlowTheme.of(
  1315. context)
  1316. .titleLarge
  1317. .fontStyle,
  1318. ),
  1319. ),
  1320. subtitle: Text(
  1321. getJsonField(
  1322. aanmeldingItemItem,
  1323. r'''$.datum_start''',
  1324. ).toString(),
  1325. style: FlutterFlowTheme
  1326. .of(context)
  1327. .labelMedium
  1328. .override(
  1329. font:
  1330. GoogleFonts
  1331. .roboto(
  1332. fontWeight: FlutterFlowTheme.of(
  1333. context)
  1334. .labelMedium
  1335. .fontWeight,
  1336. fontStyle: FlutterFlowTheme.of(
  1337. context)
  1338. .labelMedium
  1339. .fontStyle,
  1340. ),
  1341. letterSpacing:
  1342. 0.0,
  1343. fontWeight: FlutterFlowTheme.of(
  1344. context)
  1345. .labelMedium
  1346. .fontWeight,
  1347. fontStyle: FlutterFlowTheme.of(
  1348. context)
  1349. .labelMedium
  1350. .fontStyle,
  1351. ),
  1352. ),
  1353. trailing: Icon(
  1354. Icons
  1355. .arrow_forward_ios_rounded,
  1356. color: FlutterFlowTheme
  1357. .of(context)
  1358. .secondaryText,
  1359. size: 24.0,
  1360. ),
  1361. tileColor: FlutterFlowTheme
  1362. .of(context)
  1363. .secondaryBackground,
  1364. dense: false,
  1365. contentPadding:
  1366. EdgeInsetsDirectional
  1367. .fromSTEB(
  1368. 12.0,
  1369. 0.0,
  1370. 12.0,
  1371. 0.0),
  1372. shape:
  1373. RoundedRectangleBorder(
  1374. borderRadius:
  1375. BorderRadius
  1376. .circular(
  1377. 8.0),
  1378. ),
  1379. ),
  1380. ),
  1381. ),
  1382. FFButtonWidget(
  1383. onPressed: () async {
  1384. _model.apiResultAct =
  1385. await AanmeldingKloonbronCall
  1386. .call(
  1387. sessionName: FFAppState()
  1388. .userSessionname,
  1389. sessid: FFAppState()
  1390. .userSessionid,
  1391. nid: getJsonField(
  1392. aanmeldingItemItem,
  1393. r'''$.nid''',
  1394. ).toString(),
  1395. );
  1396. if ((_model.apiResultAct
  1397. ?.succeeded ??
  1398. true)) {
  1399. FFAppState()
  1400. .kloonBron = (_model
  1401. .apiResultAct
  1402. ?.jsonBody ??
  1403. '');
  1404. safeSetState(() {});
  1405. context.pushNamed(
  1406. StadsactiviteitAanmakenWidget
  1407. .routeName,
  1408. queryParameters: {
  1409. 'gemeenteTid':
  1410. serializeParam(
  1411. getJsonField(
  1412. (_model.apiResultAct
  1413. ?.jsonBody ??
  1414. ''),
  1415. r'''$.gemeente_tid''',
  1416. ).toString(),
  1417. ParamType.String,
  1418. ),
  1419. }.withoutNulls,
  1420. );
  1421. }
  1422. safeSetState(() {});
  1423. },
  1424. text: FFLocalizations.of(
  1425. context)
  1426. .getText(
  1427. 'wcyy4pao' /* Kopie */,
  1428. ),
  1429. options: FFButtonOptions(
  1430. height: 40.0,
  1431. padding:
  1432. EdgeInsetsDirectional
  1433. .fromSTEB(
  1434. 16.0,
  1435. 0.0,
  1436. 16.0,
  1437. 0.0),
  1438. iconPadding:
  1439. EdgeInsetsDirectional
  1440. .fromSTEB(
  1441. 0.0,
  1442. 0.0,
  1443. 0.0,
  1444. 0.0),
  1445. color:
  1446. FlutterFlowTheme.of(
  1447. context)
  1448. .primary,
  1449. textStyle:
  1450. FlutterFlowTheme.of(
  1451. context)
  1452. .titleSmall
  1453. .override(
  1454. font:
  1455. GoogleFonts
  1456. .roboto(
  1457. fontWeight: FlutterFlowTheme.of(
  1458. context)
  1459. .titleSmall
  1460. .fontWeight,
  1461. fontStyle: FlutterFlowTheme.of(
  1462. context)
  1463. .titleSmall
  1464. .fontStyle,
  1465. ),
  1466. color: Colors
  1467. .white,
  1468. letterSpacing:
  1469. 0.0,
  1470. fontWeight: FlutterFlowTheme.of(
  1471. context)
  1472. .titleSmall
  1473. .fontWeight,
  1474. fontStyle: FlutterFlowTheme.of(
  1475. context)
  1476. .titleSmall
  1477. .fontStyle,
  1478. ),
  1479. elevation: 0.0,
  1480. borderRadius:
  1481. BorderRadius.circular(
  1482. 8.0),
  1483. ),
  1484. ),
  1485. ],
  1486. );
  1487. },
  1488. );
  1489. },
  1490. );
  1491. },
  1492. ),
  1493. Row(
  1494. mainAxisSize: MainAxisSize.max,
  1495. mainAxisAlignment:
  1496. MainAxisAlignment.spaceBetween,
  1497. children: [
  1498. Text(
  1499. FFLocalizations.of(context).getText(
  1500. '5iw84w8w' /* Mijn gemeenten (stadsrechten) */,
  1501. ),
  1502. style: FlutterFlowTheme.of(context)
  1503. .titleMedium
  1504. .override(
  1505. font: GoogleFonts.roboto(
  1506. fontWeight:
  1507. FlutterFlowTheme.of(context)
  1508. .titleMedium
  1509. .fontWeight,
  1510. fontStyle:
  1511. FlutterFlowTheme.of(context)
  1512. .titleMedium
  1513. .fontStyle,
  1514. ),
  1515. letterSpacing: 0.0,
  1516. fontWeight:
  1517. FlutterFlowTheme.of(context)
  1518. .titleMedium
  1519. .fontWeight,
  1520. fontStyle:
  1521. FlutterFlowTheme.of(context)
  1522. .titleMedium
  1523. .fontStyle,
  1524. ),
  1525. ),
  1526. FFButtonWidget(
  1527. onPressed: () async {
  1528. FFAppState().kloonBron = null;
  1529. safeSetState(() {});
  1530. context.pushNamed(
  1531. StadsactiviteitAanmakenWidget
  1532. .routeName);
  1533. },
  1534. text:
  1535. FFLocalizations.of(context).getText(
  1536. 'h3caw9re' /* + Activiteit */,
  1537. ),
  1538. options: FFButtonOptions(
  1539. height: 40.0,
  1540. padding:
  1541. EdgeInsetsDirectional.fromSTEB(
  1542. 16.0, 0.0, 16.0, 0.0),
  1543. iconPadding:
  1544. EdgeInsetsDirectional.fromSTEB(
  1545. 0.0, 0.0, 0.0, 0.0),
  1546. color: FlutterFlowTheme.of(context)
  1547. .secondary,
  1548. textStyle: FlutterFlowTheme.of(
  1549. context)
  1550. .titleSmall
  1551. .override(
  1552. font: GoogleFonts.roboto(
  1553. fontWeight:
  1554. FlutterFlowTheme.of(
  1555. context)
  1556. .titleSmall
  1557. .fontWeight,
  1558. fontStyle:
  1559. FlutterFlowTheme.of(
  1560. context)
  1561. .titleSmall
  1562. .fontStyle,
  1563. ),
  1564. color: Colors.white,
  1565. letterSpacing: 0.0,
  1566. fontWeight:
  1567. FlutterFlowTheme.of(context)
  1568. .titleSmall
  1569. .fontWeight,
  1570. fontStyle:
  1571. FlutterFlowTheme.of(context)
  1572. .titleSmall
  1573. .fontStyle,
  1574. ),
  1575. elevation: 0.0,
  1576. borderRadius:
  1577. BorderRadius.circular(8.0),
  1578. ),
  1579. ),
  1580. ],
  1581. ),
  1582. FutureBuilder<ApiCallResponse>(
  1583. future: MijnStadsrechtenCall.call(
  1584. sessionName: FFAppState().userSessionname,
  1585. sessid: FFAppState().userSessionid,
  1586. ),
  1587. builder: (context, snapshot) {
  1588. // Customize what your widget looks like when it's loading.
  1589. if (!snapshot.hasData) {
  1590. return Center(
  1591. child: SizedBox(
  1592. width: 80.0,
  1593. height: 80.0,
  1594. child: SpinKitFadingCircle(
  1595. color:
  1596. FlutterFlowTheme.of(context)
  1597. .primary,
  1598. size: 80.0,
  1599. ),
  1600. ),
  1601. );
  1602. }
  1603. final listViewMijnStadsrechtenResponse =
  1604. snapshot.data!;
  1605. _model.debugBackendQueries[
  1606. 'MijnStadsrechtenCall_statusCode_ListView_m1osuvrr'] =
  1607. debugSerializeParam(
  1608. listViewMijnStadsrechtenResponse
  1609. .statusCode,
  1610. ParamType.int,
  1611. link:
  1612. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1613. name: 'int',
  1614. nullable: false,
  1615. );
  1616. _model.debugBackendQueries[
  1617. 'MijnStadsrechtenCall_responseBody_ListView_m1osuvrr'] =
  1618. debugSerializeParam(
  1619. listViewMijnStadsrechtenResponse
  1620. .bodyText,
  1621. ParamType.String,
  1622. link:
  1623. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1624. name: 'String',
  1625. nullable: false,
  1626. );
  1627. debugLogWidgetClass(_model);
  1628. return Builder(
  1629. builder: (context) {
  1630. final rechtItem =
  1631. listViewMijnStadsrechtenResponse
  1632. .jsonBody
  1633. .toList();
  1634. if (rechtItem.isEmpty) {
  1635. return LegeLijstComponentWidget(
  1636. tekst:
  1637. 'Je hebt geen rechten als stadseditor. Je kunt wel activiteiten toevoegen, maar ze moeten eerst worden goedgekeurd door Uitgaanskrant.com.',
  1638. );
  1639. }
  1640. _model.debugGeneratorVariables[
  1641. 'rechtItem${rechtItem.length > 100 ? ' (first 100)' : ''}'] =
  1642. debugSerializeParam(
  1643. rechtItem.take(100),
  1644. ParamType.JSON,
  1645. isList: true,
  1646. link:
  1647. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  1648. name: 'dynamic',
  1649. nullable: false,
  1650. );
  1651. debugLogWidgetClass(_model);
  1652. return ListView.builder(
  1653. padding: EdgeInsets.zero,
  1654. shrinkWrap: true,
  1655. scrollDirection: Axis.vertical,
  1656. itemCount: rechtItem.length,
  1657. itemBuilder:
  1658. (context, rechtItemIndex) {
  1659. final rechtItemItem =
  1660. rechtItem[rechtItemIndex];
  1661. return Padding(
  1662. padding: EdgeInsets.all(12.0),
  1663. child: Container(
  1664. decoration: BoxDecoration(
  1665. color: FlutterFlowTheme.of(
  1666. context)
  1667. .secondaryBackground,
  1668. borderRadius:
  1669. BorderRadius.circular(
  1670. 8.0),
  1671. ),
  1672. child: Column(
  1673. mainAxisSize:
  1674. MainAxisSize.max,
  1675. crossAxisAlignment:
  1676. CrossAxisAlignment
  1677. .start,
  1678. children: [
  1679. Text(
  1680. '${getJsonField(
  1681. rechtItemItem,
  1682. r'''$.titel''',
  1683. ).toString()} — ${getJsonField(
  1684. rechtItemItem,
  1685. r'''$.parent_titel''',
  1686. ).toString()}',
  1687. style:
  1688. FlutterFlowTheme.of(
  1689. context)
  1690. .bodyMedium
  1691. .override(
  1692. font: GoogleFonts
  1693. .roboto(
  1694. fontWeight: FlutterFlowTheme.of(
  1695. context)
  1696. .bodyMedium
  1697. .fontWeight,
  1698. fontStyle: FlutterFlowTheme.of(
  1699. context)
  1700. .bodyMedium
  1701. .fontStyle,
  1702. ),
  1703. letterSpacing:
  1704. 0.0,
  1705. fontWeight: FlutterFlowTheme.of(
  1706. context)
  1707. .bodyMedium
  1708. .fontWeight,
  1709. fontStyle: FlutterFlowTheme.of(
  1710. context)
  1711. .bodyMedium
  1712. .fontStyle,
  1713. ),
  1714. ),
  1715. FFButtonWidget(
  1716. onPressed: () async {
  1717. FFAppState()
  1718. .kloonBron = null;
  1719. safeSetState(() {});
  1720. context.pushNamed(
  1721. StadsactiviteitAanmakenWidget
  1722. .routeName,
  1723. queryParameters: {
  1724. 'gemeenteTid':
  1725. serializeParam(
  1726. getJsonField(
  1727. rechtItemItem,
  1728. r'''$.tid''',
  1729. ).toString(),
  1730. ParamType
  1731. .String,
  1732. ),
  1733. }.withoutNulls,
  1734. );
  1735. },
  1736. text:
  1737. FFLocalizations.of(
  1738. context)
  1739. .getText(
  1740. 'hfqho9ti' /* + Activiteit aanmaken */,
  1741. ),
  1742. options:
  1743. FFButtonOptions(
  1744. width:
  1745. double.infinity,
  1746. height: 40.0,
  1747. padding:
  1748. EdgeInsetsDirectional
  1749. .fromSTEB(
  1750. 16.0,
  1751. 0.0,
  1752. 16.0,
  1753. 0.0),
  1754. iconPadding:
  1755. EdgeInsetsDirectional
  1756. .fromSTEB(
  1757. 0.0,
  1758. 0.0,
  1759. 0.0,
  1760. 0.0),
  1761. color: FlutterFlowTheme
  1762. .of(context)
  1763. .secondary,
  1764. textStyle:
  1765. FlutterFlowTheme.of(
  1766. context)
  1767. .titleSmall
  1768. .override(
  1769. font: GoogleFonts
  1770. .roboto(
  1771. fontWeight: FlutterFlowTheme.of(
  1772. context)
  1773. .titleSmall
  1774. .fontWeight,
  1775. fontStyle: FlutterFlowTheme.of(
  1776. context)
  1777. .titleSmall
  1778. .fontStyle,
  1779. ),
  1780. color: Colors
  1781. .white,
  1782. letterSpacing:
  1783. 0.0,
  1784. fontWeight: FlutterFlowTheme.of(
  1785. context)
  1786. .titleSmall
  1787. .fontWeight,
  1788. fontStyle: FlutterFlowTheme.of(
  1789. context)
  1790. .titleSmall
  1791. .fontStyle,
  1792. ),
  1793. elevation: 0.0,
  1794. borderRadius:
  1795. BorderRadius
  1796. .circular(
  1797. 8.0),
  1798. ),
  1799. ),
  1800. ],
  1801. ),
  1802. ),
  1803. );
  1804. },
  1805. );
  1806. },
  1807. );
  1808. },
  1809. ),
  1810. ],
  1811. ),
  1812. ),
  1813. SingleChildScrollView(
  1814. child: Column(
  1815. mainAxisSize: MainAxisSize.max,
  1816. children: [
  1817. Padding(
  1818. padding: EdgeInsets.all(16.0),
  1819. child: Text(
  1820. FFAppState().userName,
  1821. style: FlutterFlowTheme.of(context)
  1822. .bodyMedium
  1823. .override(
  1824. font: GoogleFonts.roboto(
  1825. fontWeight:
  1826. FlutterFlowTheme.of(context)
  1827. .bodyMedium
  1828. .fontWeight,
  1829. fontStyle:
  1830. FlutterFlowTheme.of(context)
  1831. .bodyMedium
  1832. .fontStyle,
  1833. ),
  1834. letterSpacing: 0.0,
  1835. fontWeight:
  1836. FlutterFlowTheme.of(context)
  1837. .bodyMedium
  1838. .fontWeight,
  1839. fontStyle:
  1840. FlutterFlowTheme.of(context)
  1841. .bodyMedium
  1842. .fontStyle,
  1843. ),
  1844. ),
  1845. ),
  1846. InkWell(
  1847. splashColor: Colors.transparent,
  1848. focusColor: Colors.transparent,
  1849. hoverColor: Colors.transparent,
  1850. highlightColor: Colors.transparent,
  1851. onTap: () async {
  1852. context.pushNamed(
  1853. WachtwoordVergetenWidget.routeName);
  1854. },
  1855. child: Material(
  1856. color: Colors.transparent,
  1857. child: ListTile(
  1858. title: Text(
  1859. FFLocalizations.of(context).getText(
  1860. '0sxtqp61' /* Wachtwoord wijzigen */,
  1861. ),
  1862. style: FlutterFlowTheme.of(context)
  1863. .titleLarge
  1864. .override(
  1865. font: GoogleFonts.roboto(
  1866. fontWeight:
  1867. FlutterFlowTheme.of(
  1868. context)
  1869. .titleLarge
  1870. .fontWeight,
  1871. fontStyle:
  1872. FlutterFlowTheme.of(
  1873. context)
  1874. .titleLarge
  1875. .fontStyle,
  1876. ),
  1877. letterSpacing: 0.0,
  1878. fontWeight:
  1879. FlutterFlowTheme.of(context)
  1880. .titleLarge
  1881. .fontWeight,
  1882. fontStyle:
  1883. FlutterFlowTheme.of(context)
  1884. .titleLarge
  1885. .fontStyle,
  1886. ),
  1887. ),
  1888. trailing: Icon(
  1889. Icons.arrow_forward_ios_rounded,
  1890. color: FlutterFlowTheme.of(context)
  1891. .secondaryText,
  1892. size: 24.0,
  1893. ),
  1894. tileColor: FlutterFlowTheme.of(context)
  1895. .secondaryBackground,
  1896. dense: false,
  1897. contentPadding:
  1898. EdgeInsetsDirectional.fromSTEB(
  1899. 12.0, 0.0, 12.0, 0.0),
  1900. shape: RoundedRectangleBorder(
  1901. borderRadius:
  1902. BorderRadius.circular(8.0),
  1903. ),
  1904. ),
  1905. ),
  1906. ),
  1907. InkWell(
  1908. splashColor: Colors.transparent,
  1909. focusColor: Colors.transparent,
  1910. hoverColor: Colors.transparent,
  1911. highlightColor: Colors.transparent,
  1912. onTap: () async {
  1913. await launchURL(
  1914. 'https://uitgaanskrant.com/nl/support/mobieleapp');
  1915. },
  1916. child: Material(
  1917. color: Colors.transparent,
  1918. child: ListTile(
  1919. title: Text(
  1920. FFLocalizations.of(context).getText(
  1921. '4sjzjw0j' /* Account verwijderen */,
  1922. ),
  1923. style: FlutterFlowTheme.of(context)
  1924. .titleLarge
  1925. .override(
  1926. font: GoogleFonts.roboto(
  1927. fontWeight:
  1928. FlutterFlowTheme.of(
  1929. context)
  1930. .titleLarge
  1931. .fontWeight,
  1932. fontStyle:
  1933. FlutterFlowTheme.of(
  1934. context)
  1935. .titleLarge
  1936. .fontStyle,
  1937. ),
  1938. letterSpacing: 0.0,
  1939. fontWeight:
  1940. FlutterFlowTheme.of(context)
  1941. .titleLarge
  1942. .fontWeight,
  1943. fontStyle:
  1944. FlutterFlowTheme.of(context)
  1945. .titleLarge
  1946. .fontStyle,
  1947. ),
  1948. ),
  1949. trailing: Icon(
  1950. Icons.arrow_forward_ios_rounded,
  1951. color: FlutterFlowTheme.of(context)
  1952. .secondaryText,
  1953. size: 24.0,
  1954. ),
  1955. tileColor: FlutterFlowTheme.of(context)
  1956. .secondaryBackground,
  1957. dense: false,
  1958. contentPadding:
  1959. EdgeInsetsDirectional.fromSTEB(
  1960. 12.0, 0.0, 12.0, 0.0),
  1961. shape: RoundedRectangleBorder(
  1962. borderRadius:
  1963. BorderRadius.circular(8.0),
  1964. ),
  1965. ),
  1966. ),
  1967. ),
  1968. InkWell(
  1969. splashColor: Colors.transparent,
  1970. focusColor: Colors.transparent,
  1971. hoverColor: Colors.transparent,
  1972. highlightColor: Colors.transparent,
  1973. onTap: () async {
  1974. FFAppState().deleteUserToken();
  1975. FFAppState().userToken = '';
  1976. FFAppState().deleteUserSessionid();
  1977. FFAppState().userSessionid = '';
  1978. FFAppState().deleteUserSessionname();
  1979. FFAppState().userSessionname = '';
  1980. FFAppState().deleteUserName();
  1981. FFAppState().userName = '';
  1982. FFAppState().deleteUserUid();
  1983. FFAppState().userUid = 0;
  1984. FFAppState().deleteUserMail();
  1985. FFAppState().userMail = '';
  1986. safeSetState(() {});
  1987. context.goNamed(LoginWidget.routeName);
  1988. },
  1989. child: Material(
  1990. color: Colors.transparent,
  1991. child: ListTile(
  1992. title: Text(
  1993. FFLocalizations.of(context).getText(
  1994. 'owegb3ht' /* Uitloggen */,
  1995. ),
  1996. style: FlutterFlowTheme.of(context)
  1997. .titleLarge
  1998. .override(
  1999. font: GoogleFonts.roboto(
  2000. fontWeight:
  2001. FlutterFlowTheme.of(
  2002. context)
  2003. .titleLarge
  2004. .fontWeight,
  2005. fontStyle:
  2006. FlutterFlowTheme.of(
  2007. context)
  2008. .titleLarge
  2009. .fontStyle,
  2010. ),
  2011. letterSpacing: 0.0,
  2012. fontWeight:
  2013. FlutterFlowTheme.of(context)
  2014. .titleLarge
  2015. .fontWeight,
  2016. fontStyle:
  2017. FlutterFlowTheme.of(context)
  2018. .titleLarge
  2019. .fontStyle,
  2020. ),
  2021. ),
  2022. trailing: Icon(
  2023. Icons.arrow_forward_ios_rounded,
  2024. color: FlutterFlowTheme.of(context)
  2025. .secondaryText,
  2026. size: 24.0,
  2027. ),
  2028. tileColor: FlutterFlowTheme.of(context)
  2029. .secondaryBackground,
  2030. dense: false,
  2031. contentPadding:
  2032. EdgeInsetsDirectional.fromSTEB(
  2033. 12.0, 0.0, 12.0, 0.0),
  2034. shape: RoundedRectangleBorder(
  2035. borderRadius:
  2036. BorderRadius.circular(8.0),
  2037. ),
  2038. ),
  2039. ),
  2040. ),
  2041. ],
  2042. ),
  2043. ),
  2044. Column(
  2045. mainAxisSize: MainAxisSize.max,
  2046. children: [
  2047. FutureBuilder<ApiCallResponse>(
  2048. future: NieuwsbrievenCall.call(
  2049. sessionName: FFAppState().userSessionname,
  2050. sessid: FFAppState().userSessionid,
  2051. ),
  2052. builder: (context, snapshot) {
  2053. // Customize what your widget looks like when it's loading.
  2054. if (!snapshot.hasData) {
  2055. return Center(
  2056. child: SizedBox(
  2057. width: 80.0,
  2058. height: 80.0,
  2059. child: SpinKitFadingCircle(
  2060. color: FlutterFlowTheme.of(context)
  2061. .primary,
  2062. size: 80.0,
  2063. ),
  2064. ),
  2065. );
  2066. }
  2067. final listViewNieuwsbrievenResponse =
  2068. snapshot.data!;
  2069. _model.debugBackendQueries[
  2070. 'NieuwsbrievenCall_statusCode_ListView_35upog4p'] =
  2071. debugSerializeParam(
  2072. listViewNieuwsbrievenResponse.statusCode,
  2073. ParamType.int,
  2074. link:
  2075. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  2076. name: 'int',
  2077. nullable: false,
  2078. );
  2079. _model.debugBackendQueries[
  2080. 'NieuwsbrievenCall_responseBody_ListView_35upog4p'] =
  2081. debugSerializeParam(
  2082. listViewNieuwsbrievenResponse.bodyText,
  2083. ParamType.String,
  2084. link:
  2085. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  2086. name: 'String',
  2087. nullable: false,
  2088. );
  2089. debugLogWidgetClass(_model);
  2090. return Builder(
  2091. builder: (context) {
  2092. final nieuwsbriefItem =
  2093. NieuwsbrievenCall.items(
  2094. listViewNieuwsbrievenResponse
  2095. .jsonBody,
  2096. )?.toList() ??
  2097. [];
  2098. _model.debugGeneratorVariables[
  2099. 'nieuwsbriefItem${nieuwsbriefItem.length > 100 ? ' (first 100)' : ''}'] =
  2100. debugSerializeParam(
  2101. nieuwsbriefItem.take(100),
  2102. ParamType.JSON,
  2103. isList: true,
  2104. link:
  2105. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfiel',
  2106. name: 'dynamic',
  2107. nullable: false,
  2108. );
  2109. debugLogWidgetClass(_model);
  2110. return ListView.builder(
  2111. padding: EdgeInsets.zero,
  2112. shrinkWrap: true,
  2113. scrollDirection: Axis.vertical,
  2114. itemCount: nieuwsbriefItem.length,
  2115. itemBuilder:
  2116. (context, nieuwsbriefItemIndex) {
  2117. final nieuwsbriefItemItem =
  2118. nieuwsbriefItem[
  2119. nieuwsbriefItemIndex];
  2120. return Padding(
  2121. padding: EdgeInsetsDirectional
  2122. .fromSTEB(
  2123. 16.0, 10.0, 16.0, 10.0),
  2124. child: Row(
  2125. mainAxisSize: MainAxisSize.max,
  2126. children: [
  2127. Expanded(
  2128. child: Column(
  2129. mainAxisSize:
  2130. MainAxisSize.max,
  2131. crossAxisAlignment:
  2132. CrossAxisAlignment
  2133. .start,
  2134. children: [
  2135. Text(
  2136. getJsonField(
  2137. nieuwsbriefItemItem,
  2138. r'''$.naam''',
  2139. ).toString(),
  2140. style: FlutterFlowTheme
  2141. .of(context)
  2142. .titleSmall
  2143. .override(
  2144. font:
  2145. GoogleFonts
  2146. .roboto(
  2147. fontWeight: FlutterFlowTheme.of(
  2148. context)
  2149. .titleSmall
  2150. .fontWeight,
  2151. fontStyle: FlutterFlowTheme.of(
  2152. context)
  2153. .titleSmall
  2154. .fontStyle,
  2155. ),
  2156. letterSpacing:
  2157. 0.0,
  2158. fontWeight: FlutterFlowTheme.of(
  2159. context)
  2160. .titleSmall
  2161. .fontWeight,
  2162. fontStyle: FlutterFlowTheme.of(
  2163. context)
  2164. .titleSmall
  2165. .fontStyle,
  2166. ),
  2167. ),
  2168. Text(
  2169. getJsonField(
  2170. nieuwsbriefItemItem,
  2171. r'''$.omschrijving''',
  2172. ).toString(),
  2173. style: FlutterFlowTheme
  2174. .of(context)
  2175. .bodySmall
  2176. .override(
  2177. font:
  2178. GoogleFonts
  2179. .roboto(
  2180. fontWeight: FlutterFlowTheme.of(
  2181. context)
  2182. .bodySmall
  2183. .fontWeight,
  2184. fontStyle: FlutterFlowTheme.of(
  2185. context)
  2186. .bodySmall
  2187. .fontStyle,
  2188. ),
  2189. color: FlutterFlowTheme.of(
  2190. context)
  2191. .secondaryText,
  2192. letterSpacing:
  2193. 0.0,
  2194. fontWeight: FlutterFlowTheme.of(
  2195. context)
  2196. .bodySmall
  2197. .fontWeight,
  2198. fontStyle: FlutterFlowTheme.of(
  2199. context)
  2200. .bodySmall
  2201. .fontStyle,
  2202. ),
  2203. ),
  2204. ],
  2205. ),
  2206. ),
  2207. if (!functions.nieuwsbriefAan(
  2208. nieuwsbriefItemItem))
  2209. FlutterFlowIconButton(
  2210. borderRadius: 8.0,
  2211. buttonSize: 40.0,
  2212. icon: Icon(
  2213. Icons.toggle_off,
  2214. color:
  2215. FlutterFlowTheme.of(
  2216. context)
  2217. .secondaryText,
  2218. size: 32.0,
  2219. ),
  2220. onPressed: () async {
  2221. await actions
  2222. .drupalRequest(
  2223. 'POST',
  2224. 'https://uitgaanskrant.com/nl/flutterdrup/nieuwsbrieven/subscribe.json',
  2225. FFAppState()
  2226. .userSessionname,
  2227. FFAppState()
  2228. .userSessionid,
  2229. FFAppState()
  2230. .userToken,
  2231. '{\"tid\": ${getJsonField(
  2232. nieuwsbriefItemItem,
  2233. r'''$.tid''',
  2234. ).toString()}}',
  2235. );
  2236. safeSetState(() {});
  2237. },
  2238. ),
  2239. if (functions.nieuwsbriefAan(
  2240. nieuwsbriefItemItem))
  2241. FlutterFlowIconButton(
  2242. borderRadius: 8.0,
  2243. buttonSize: 40.0,
  2244. icon: Icon(
  2245. Icons.toggle_on,
  2246. color:
  2247. FlutterFlowTheme.of(
  2248. context)
  2249. .primary,
  2250. size: 32.0,
  2251. ),
  2252. onPressed: () async {
  2253. await actions
  2254. .drupalRequest(
  2255. 'POST',
  2256. 'https://uitgaanskrant.com/nl/flutterdrup/nieuwsbrieven/unsubscribe.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. ],
  2272. ),
  2273. );
  2274. },
  2275. );
  2276. },
  2277. );
  2278. },
  2279. ),
  2280. if (!(FFAppState()
  2281. .favorieteGemeenteIds
  2282. .isNotEmpty))
  2283. Padding(
  2284. padding: EdgeInsetsDirectional.fromSTEB(
  2285. 16.0, 8.0, 16.0, 24.0),
  2286. child: InkWell(
  2287. splashColor: Colors.transparent,
  2288. focusColor: Colors.transparent,
  2289. hoverColor: Colors.transparent,
  2290. highlightColor: Colors.transparent,
  2291. onTap: () async {
  2292. context.pushNamed(
  2293. SelectprovinciegemeenteWidget
  2294. .routeName);
  2295. },
  2296. child: Text(
  2297. FFLocalizations.of(context).getText(
  2298. '13hlbqrf' /* Je volgt nog geen gemeenten, d... */,
  2299. ),
  2300. style: FlutterFlowTheme.of(context)
  2301. .bodyMedium
  2302. .override(
  2303. font: GoogleFonts.roboto(
  2304. fontWeight:
  2305. FlutterFlowTheme.of(context)
  2306. .bodyMedium
  2307. .fontWeight,
  2308. fontStyle:
  2309. FlutterFlowTheme.of(context)
  2310. .bodyMedium
  2311. .fontStyle,
  2312. ),
  2313. color:
  2314. FlutterFlowTheme.of(context)
  2315. .primary,
  2316. letterSpacing: 0.0,
  2317. fontWeight:
  2318. FlutterFlowTheme.of(context)
  2319. .bodyMedium
  2320. .fontWeight,
  2321. fontStyle:
  2322. FlutterFlowTheme.of(context)
  2323. .bodyMedium
  2324. .fontStyle,
  2325. ),
  2326. ),
  2327. ),
  2328. ),
  2329. Padding(
  2330. padding: EdgeInsetsDirectional.fromSTEB(
  2331. 16.0, 8.0, 16.0, 24.0),
  2332. child: InkWell(
  2333. splashColor: Colors.transparent,
  2334. focusColor: Colors.transparent,
  2335. hoverColor: Colors.transparent,
  2336. highlightColor: Colors.transparent,
  2337. onTap: () async {
  2338. context.pushNamed(
  2339. SelectprovinciegemeenteWidget
  2340. .routeName);
  2341. },
  2342. child: Text(
  2343. FFLocalizations.of(context).getText(
  2344. 'jmzi90pc' /* De wekelijkse uitgaansagenda g... */,
  2345. ),
  2346. style: FlutterFlowTheme.of(context)
  2347. .bodyMedium
  2348. .override(
  2349. font: GoogleFonts.roboto(
  2350. fontWeight:
  2351. FlutterFlowTheme.of(context)
  2352. .bodyMedium
  2353. .fontWeight,
  2354. fontStyle:
  2355. FlutterFlowTheme.of(context)
  2356. .bodyMedium
  2357. .fontStyle,
  2358. ),
  2359. color: FlutterFlowTheme.of(context)
  2360. .secondary,
  2361. letterSpacing: 0.0,
  2362. fontWeight:
  2363. FlutterFlowTheme.of(context)
  2364. .bodyMedium
  2365. .fontWeight,
  2366. fontStyle:
  2367. FlutterFlowTheme.of(context)
  2368. .bodyMedium
  2369. .fontStyle,
  2370. ),
  2371. ),
  2372. ),
  2373. ),
  2374. ],
  2375. ),
  2376. ],
  2377. ),
  2378. ),
  2379. ],
  2380. ),
  2381. ),
  2382. ],
  2383. ),
  2384. ),
  2385. ),
  2386. ),
  2387. );
  2388. }
  2389. }