mijn_profiel_widget.dart 142 KB

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