mijn_profiel_copy2_widget.dart 106 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743
  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 'dart:ui';
  9. import '/index.dart';
  10. import 'package:flutter/material.dart';
  11. import 'package:flutter_spinkit/flutter_spinkit.dart';
  12. import 'package:google_fonts/google_fonts.dart';
  13. import 'package:provider/provider.dart';
  14. import 'mijn_profiel_copy2_model.dart';
  15. export 'mijn_profiel_copy2_model.dart';
  16. class MijnProfielCopy2Widget extends StatefulWidget {
  17. const MijnProfielCopy2Widget({super.key});
  18. static String routeName = 'mijnProfielCopy2';
  19. static String routePath = '/mijnProfielCopy2';
  20. @override
  21. State<MijnProfielCopy2Widget> createState() => _MijnProfielCopy2WidgetState();
  22. }
  23. class _MijnProfielCopy2WidgetState extends State<MijnProfielCopy2Widget>
  24. with TickerProviderStateMixin, RouteAware {
  25. late MijnProfielCopy2Model _model;
  26. final scaffoldKey = GlobalKey<ScaffoldState>();
  27. @override
  28. void initState() {
  29. super.initState();
  30. _model = createModel(context, () => MijnProfielCopy2Model());
  31. _model.tabBarmijnevenementenController = TabController(
  32. vsync: this,
  33. length: 3,
  34. initialIndex: 0,
  35. )
  36. ..addListener(() => safeSetState(() {}))
  37. ..addListener(() {
  38. debugLogWidgetClass(_model);
  39. });
  40. }
  41. @override
  42. void dispose() {
  43. routeObserver.unsubscribe(this);
  44. _model.dispose();
  45. super.dispose();
  46. }
  47. @override
  48. void didUpdateWidget(MijnProfielCopy2Widget oldWidget) {
  49. super.didUpdateWidget(oldWidget);
  50. _model.widget = widget;
  51. }
  52. @override
  53. void didChangeDependencies() {
  54. super.didChangeDependencies();
  55. final route = DebugModalRoute.of(context);
  56. if (route != null) {
  57. routeObserver.subscribe(this, route);
  58. }
  59. debugLogGlobalProperty(context);
  60. }
  61. @override
  62. void didPopNext() {
  63. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  64. setState(() => _model.isRouteVisible = true);
  65. debugLogWidgetClass(_model);
  66. }
  67. }
  68. @override
  69. void didPush() {
  70. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  71. setState(() => _model.isRouteVisible = true);
  72. debugLogWidgetClass(_model);
  73. }
  74. }
  75. @override
  76. void didPop() {
  77. _model.isRouteVisible = false;
  78. }
  79. @override
  80. void didPushNext() {
  81. _model.isRouteVisible = false;
  82. }
  83. @override
  84. Widget build(BuildContext context) {
  85. DebugFlutterFlowModelContext.maybeOf(context)
  86. ?.parentModelCallback
  87. ?.call(_model);
  88. context.watch<FFAppState>();
  89. _model.horecagelegenheidoverzichtKaartModels.clear();
  90. return GestureDetector(
  91. onTap: () {
  92. FocusScope.of(context).unfocus();
  93. FocusManager.instance.primaryFocus?.unfocus();
  94. },
  95. child: Scaffold(
  96. key: scaffoldKey,
  97. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  98. drawer: Drawer(
  99. elevation: 16.0,
  100. child: wrapWithModel(
  101. model: _model.drawerComponentModel,
  102. updateCallback: () => safeSetState(() {}),
  103. child: Builder(builder: (_) {
  104. return DebugFlutterFlowModelContext(
  105. rootModel: _model.rootModel,
  106. child: DrawerComponentWidget(),
  107. );
  108. }),
  109. ),
  110. ),
  111. appBar: PreferredSize(
  112. preferredSize: Size.fromHeight(80.0),
  113. child: AppBar(
  114. backgroundColor: FlutterFlowTheme.of(context).primaryText,
  115. automaticallyImplyLeading: false,
  116. actions: [],
  117. flexibleSpace: FlexibleSpaceBar(
  118. background: wrapWithModel(
  119. model: _model.headerButtonsComponentModel,
  120. updateCallback: () => safeSetState(() {}),
  121. child: Builder(builder: (_) {
  122. return DebugFlutterFlowModelContext(
  123. rootModel: _model.rootModel,
  124. child: HeaderButtonsComponentWidget(
  125. showBackButton: true,
  126. ),
  127. );
  128. }),
  129. ),
  130. centerTitle: true,
  131. expandedTitleScale: 1.0,
  132. ),
  133. bottom: PreferredSize(
  134. preferredSize: Size.fromHeight(70.0),
  135. child: Container(),
  136. ),
  137. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  138. elevation: 2.0,
  139. ),
  140. ),
  141. body: SafeArea(
  142. top: true,
  143. child: Padding(
  144. padding: EdgeInsets.all(16.0),
  145. child: Column(
  146. mainAxisSize: MainAxisSize.max,
  147. children: [
  148. Expanded(
  149. child: Column(
  150. children: [
  151. Align(
  152. alignment: Alignment(0.0, 0),
  153. child: TabBar(
  154. isScrollable: true,
  155. tabAlignment: TabAlignment.center,
  156. labelColor: FlutterFlowTheme.of(context).primaryText,
  157. unselectedLabelColor:
  158. FlutterFlowTheme.of(context).secondaryText,
  159. labelStyle:
  160. FlutterFlowTheme.of(context).titleMedium.override(
  161. font: GoogleFonts.roboto(
  162. fontWeight: FlutterFlowTheme.of(context)
  163. .titleMedium
  164. .fontWeight,
  165. fontStyle: FlutterFlowTheme.of(context)
  166. .titleMedium
  167. .fontStyle,
  168. ),
  169. letterSpacing: 0.0,
  170. fontWeight: FlutterFlowTheme.of(context)
  171. .titleMedium
  172. .fontWeight,
  173. fontStyle: FlutterFlowTheme.of(context)
  174. .titleMedium
  175. .fontStyle,
  176. ),
  177. unselectedLabelStyle:
  178. FlutterFlowTheme.of(context).titleMedium.override(
  179. font: GoogleFonts.roboto(
  180. fontWeight: FlutterFlowTheme.of(context)
  181. .titleMedium
  182. .fontWeight,
  183. fontStyle: FlutterFlowTheme.of(context)
  184. .titleMedium
  185. .fontStyle,
  186. ),
  187. letterSpacing: 0.0,
  188. fontWeight: FlutterFlowTheme.of(context)
  189. .titleMedium
  190. .fontWeight,
  191. fontStyle: FlutterFlowTheme.of(context)
  192. .titleMedium
  193. .fontStyle,
  194. ),
  195. indicatorColor:
  196. FlutterFlowTheme.of(context).secondary,
  197. tabs: [
  198. Tab(
  199. text: FFLocalizations.of(context).getText(
  200. 'va061bjn' /* Mijn evenementen */,
  201. ),
  202. ),
  203. Tab(
  204. text: FFLocalizations.of(context).getText(
  205. 'r8f6ewm7' /* Stadseditor */,
  206. ),
  207. ),
  208. Tab(
  209. text: FFLocalizations.of(context).getText(
  210. 'i9pes7fo' /* Account */,
  211. ),
  212. ),
  213. ],
  214. controller: _model.tabBarmijnevenementenController,
  215. onTap: (i) async {
  216. [() async {}, () async {}, () async {}][i]();
  217. },
  218. ),
  219. ),
  220. Expanded(
  221. child: TabBarView(
  222. controller: _model.tabBarmijnevenementenController,
  223. children: [
  224. SingleChildScrollView(
  225. child: Column(
  226. mainAxisSize: MainAxisSize.max,
  227. children: [
  228. Row(
  229. mainAxisSize: MainAxisSize.max,
  230. mainAxisAlignment:
  231. MainAxisAlignment.spaceBetween,
  232. children: [
  233. Text(
  234. FFLocalizations.of(context).getText(
  235. 'zvapioy2' /* Komende evenementen */,
  236. ),
  237. style: FlutterFlowTheme.of(context)
  238. .titleMedium
  239. .override(
  240. font: GoogleFonts.roboto(
  241. fontWeight:
  242. FlutterFlowTheme.of(context)
  243. .titleMedium
  244. .fontWeight,
  245. fontStyle:
  246. FlutterFlowTheme.of(context)
  247. .titleMedium
  248. .fontStyle,
  249. ),
  250. letterSpacing: 0.0,
  251. fontWeight:
  252. FlutterFlowTheme.of(context)
  253. .titleMedium
  254. .fontWeight,
  255. fontStyle:
  256. FlutterFlowTheme.of(context)
  257. .titleMedium
  258. .fontStyle,
  259. ),
  260. ),
  261. FFButtonWidget(
  262. onPressed: () async {
  263. context.pushNamed(
  264. MijnAanmeldingenWidget.routeName,
  265. queryParameters: {
  266. 'type': serializeParam(
  267. 'go_out_event',
  268. ParamType.String,
  269. ),
  270. }.withoutNulls,
  271. );
  272. },
  273. text:
  274. FFLocalizations.of(context).getText(
  275. 'rodsyxvt' /* Bekijk alles */,
  276. ),
  277. options: FFButtonOptions(
  278. height: 40.0,
  279. padding:
  280. EdgeInsetsDirectional.fromSTEB(
  281. 16.0, 0.0, 16.0, 0.0),
  282. iconPadding:
  283. EdgeInsetsDirectional.fromSTEB(
  284. 0.0, 0.0, 0.0, 0.0),
  285. color: FlutterFlowTheme.of(context)
  286. .secondary,
  287. textStyle: FlutterFlowTheme.of(
  288. context)
  289. .titleSmall
  290. .override(
  291. font: GoogleFonts.roboto(
  292. fontWeight:
  293. FlutterFlowTheme.of(
  294. context)
  295. .titleSmall
  296. .fontWeight,
  297. fontStyle:
  298. FlutterFlowTheme.of(
  299. context)
  300. .titleSmall
  301. .fontStyle,
  302. ),
  303. color: Colors.white,
  304. letterSpacing: 0.0,
  305. fontWeight:
  306. FlutterFlowTheme.of(context)
  307. .titleSmall
  308. .fontWeight,
  309. fontStyle:
  310. FlutterFlowTheme.of(context)
  311. .titleSmall
  312. .fontStyle,
  313. ),
  314. elevation: 0.0,
  315. borderRadius:
  316. BorderRadius.circular(8.0),
  317. ),
  318. ),
  319. ],
  320. ),
  321. FutureBuilder<ApiCallResponse>(
  322. future: MijnAanmeldingenCall.call(
  323. sessionName: FFAppState().userSessionname,
  324. sessid: FFAppState().userSessionid,
  325. limit: 5,
  326. type: 'go_out_event',
  327. komend: '1',
  328. ),
  329. builder: (context, snapshot) {
  330. // Customize what your widget looks like when it's loading.
  331. if (!snapshot.hasData) {
  332. return Center(
  333. child: SizedBox(
  334. width: 80.0,
  335. height: 80.0,
  336. child: SpinKitFadingCircle(
  337. color:
  338. FlutterFlowTheme.of(context)
  339. .primary,
  340. size: 80.0,
  341. ),
  342. ),
  343. );
  344. }
  345. final listViewMijnAanmeldingenResponse =
  346. snapshot.data!;
  347. _model.debugBackendQueries[
  348. 'MijnAanmeldingenCall_statusCode_ListView_mn0mhel5'] =
  349. debugSerializeParam(
  350. listViewMijnAanmeldingenResponse
  351. .statusCode,
  352. ParamType.int,
  353. link:
  354. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  355. name: 'int',
  356. nullable: false,
  357. );
  358. _model.debugBackendQueries[
  359. 'MijnAanmeldingenCall_responseBody_ListView_mn0mhel5'] =
  360. debugSerializeParam(
  361. listViewMijnAanmeldingenResponse
  362. .bodyText,
  363. ParamType.String,
  364. link:
  365. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  366. name: 'String',
  367. nullable: false,
  368. );
  369. debugLogWidgetClass(_model);
  370. return Builder(
  371. builder: (context) {
  372. final aanmeldingItem =
  373. MijnAanmeldingenCall.items(
  374. listViewMijnAanmeldingenResponse
  375. .jsonBody,
  376. )?.toList() ??
  377. [];
  378. if (aanmeldingItem.isEmpty) {
  379. return Image.asset(
  380. '',
  381. );
  382. }
  383. _model.debugGeneratorVariables[
  384. 'aanmeldingItem${aanmeldingItem.length > 100 ? ' (first 100)' : ''}'] =
  385. debugSerializeParam(
  386. aanmeldingItem.take(100),
  387. ParamType.JSON,
  388. isList: true,
  389. link:
  390. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  391. name: 'dynamic',
  392. nullable: false,
  393. );
  394. debugLogWidgetClass(_model);
  395. return ListView.builder(
  396. padding: EdgeInsets.zero,
  397. shrinkWrap: true,
  398. scrollDirection: Axis.vertical,
  399. itemCount: aanmeldingItem.length,
  400. itemBuilder:
  401. (context, aanmeldingItemIndex) {
  402. final aanmeldingItemItem =
  403. aanmeldingItem[
  404. aanmeldingItemIndex];
  405. return InkWell(
  406. splashColor: Colors.transparent,
  407. focusColor: Colors.transparent,
  408. hoverColor: Colors.transparent,
  409. highlightColor:
  410. Colors.transparent,
  411. onTap: () async {
  412. context.pushNamed(
  413. EventCurrentWidget
  414. .routeName,
  415. queryParameters: {
  416. 'nid': serializeParam(
  417. getJsonField(
  418. aanmeldingItemItem,
  419. r'''$.nid''',
  420. ).toString(),
  421. ParamType.String,
  422. ),
  423. }.withoutNulls,
  424. );
  425. },
  426. child: Material(
  427. color: Colors.transparent,
  428. child: ListTile(
  429. title: Text(
  430. getJsonField(
  431. aanmeldingItemItem,
  432. r'''$.title''',
  433. ).toString(),
  434. style:
  435. FlutterFlowTheme.of(
  436. context)
  437. .titleLarge
  438. .override(
  439. font:
  440. GoogleFonts
  441. .roboto(
  442. fontWeight: FlutterFlowTheme.of(
  443. context)
  444. .titleLarge
  445. .fontWeight,
  446. fontStyle: FlutterFlowTheme.of(
  447. context)
  448. .titleLarge
  449. .fontStyle,
  450. ),
  451. letterSpacing:
  452. 0.0,
  453. fontWeight: FlutterFlowTheme.of(
  454. context)
  455. .titleLarge
  456. .fontWeight,
  457. fontStyle: FlutterFlowTheme.of(
  458. context)
  459. .titleLarge
  460. .fontStyle,
  461. ),
  462. ),
  463. subtitle: Text(
  464. getJsonField(
  465. aanmeldingItemItem,
  466. r'''$.datum_start''',
  467. ).toString(),
  468. style:
  469. FlutterFlowTheme.of(
  470. context)
  471. .labelMedium
  472. .override(
  473. font:
  474. GoogleFonts
  475. .roboto(
  476. fontWeight: FlutterFlowTheme.of(
  477. context)
  478. .labelMedium
  479. .fontWeight,
  480. fontStyle: FlutterFlowTheme.of(
  481. context)
  482. .labelMedium
  483. .fontStyle,
  484. ),
  485. letterSpacing:
  486. 0.0,
  487. fontWeight: FlutterFlowTheme.of(
  488. context)
  489. .labelMedium
  490. .fontWeight,
  491. fontStyle: FlutterFlowTheme.of(
  492. context)
  493. .labelMedium
  494. .fontStyle,
  495. ),
  496. ),
  497. trailing: Icon(
  498. Icons
  499. .arrow_forward_ios_rounded,
  500. color:
  501. FlutterFlowTheme.of(
  502. context)
  503. .secondaryText,
  504. size: 24.0,
  505. ),
  506. tileColor: FlutterFlowTheme
  507. .of(context)
  508. .secondaryBackground,
  509. dense: false,
  510. contentPadding:
  511. EdgeInsetsDirectional
  512. .fromSTEB(12.0, 0.0,
  513. 12.0, 0.0),
  514. shape:
  515. RoundedRectangleBorder(
  516. borderRadius:
  517. BorderRadius.circular(
  518. 8.0),
  519. ),
  520. ),
  521. ),
  522. );
  523. },
  524. );
  525. },
  526. );
  527. },
  528. ),
  529. Row(
  530. mainAxisSize: MainAxisSize.max,
  531. mainAxisAlignment:
  532. MainAxisAlignment.spaceBetween,
  533. children: [
  534. Text(
  535. FFLocalizations.of(context).getText(
  536. 'piqrgbaf' /* Mijn horecagelegenheden */,
  537. ),
  538. style: FlutterFlowTheme.of(context)
  539. .titleMedium
  540. .override(
  541. font: GoogleFonts.roboto(
  542. fontWeight:
  543. FlutterFlowTheme.of(context)
  544. .titleMedium
  545. .fontWeight,
  546. fontStyle:
  547. FlutterFlowTheme.of(context)
  548. .titleMedium
  549. .fontStyle,
  550. ),
  551. letterSpacing: 0.0,
  552. fontWeight:
  553. FlutterFlowTheme.of(context)
  554. .titleMedium
  555. .fontWeight,
  556. fontStyle:
  557. FlutterFlowTheme.of(context)
  558. .titleMedium
  559. .fontStyle,
  560. ),
  561. ),
  562. FFButtonWidget(
  563. onPressed: () async {
  564. await launchURL(
  565. 'https://uitgaanskrant.com/nl/support/mobieleapp');
  566. },
  567. text:
  568. FFLocalizations.of(context).getText(
  569. 'b3i6io1x' /* Zaak toevoegen */,
  570. ),
  571. options: FFButtonOptions(
  572. height: 40.0,
  573. padding:
  574. EdgeInsetsDirectional.fromSTEB(
  575. 16.0, 0.0, 16.0, 0.0),
  576. iconPadding:
  577. EdgeInsetsDirectional.fromSTEB(
  578. 0.0, 0.0, 0.0, 0.0),
  579. color: FlutterFlowTheme.of(context)
  580. .secondary,
  581. textStyle: FlutterFlowTheme.of(
  582. context)
  583. .titleSmall
  584. .override(
  585. font: GoogleFonts.roboto(
  586. fontWeight:
  587. FlutterFlowTheme.of(
  588. context)
  589. .titleSmall
  590. .fontWeight,
  591. fontStyle:
  592. FlutterFlowTheme.of(
  593. context)
  594. .titleSmall
  595. .fontStyle,
  596. ),
  597. color: Colors.white,
  598. letterSpacing: 0.0,
  599. fontWeight:
  600. FlutterFlowTheme.of(context)
  601. .titleSmall
  602. .fontWeight,
  603. fontStyle:
  604. FlutterFlowTheme.of(context)
  605. .titleSmall
  606. .fontStyle,
  607. ),
  608. elevation: 0.0,
  609. borderRadius:
  610. BorderRadius.circular(8.0),
  611. ),
  612. ),
  613. ],
  614. ),
  615. FutureBuilder<ApiCallResponse>(
  616. future: MijnHorecagelegenhedenCall.call(
  617. sessionName: FFAppState().userSessionname,
  618. sessid: FFAppState().userSessionid,
  619. ),
  620. builder: (context, snapshot) {
  621. // Customize what your widget looks like when it's loading.
  622. if (!snapshot.hasData) {
  623. return Center(
  624. child: SizedBox(
  625. width: 80.0,
  626. height: 80.0,
  627. child: SpinKitFadingCircle(
  628. color:
  629. FlutterFlowTheme.of(context)
  630. .primary,
  631. size: 80.0,
  632. ),
  633. ),
  634. );
  635. }
  636. final listViewMijnHorecagelegenhedenResponse =
  637. snapshot.data!;
  638. _model.debugBackendQueries[
  639. 'MijnHorecagelegenhedenCall_statusCode_ListView_mzw5w8em'] =
  640. debugSerializeParam(
  641. listViewMijnHorecagelegenhedenResponse
  642. .statusCode,
  643. ParamType.int,
  644. link:
  645. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  646. name: 'int',
  647. nullable: false,
  648. );
  649. _model.debugBackendQueries[
  650. 'MijnHorecagelegenhedenCall_responseBody_ListView_mzw5w8em'] =
  651. debugSerializeParam(
  652. listViewMijnHorecagelegenhedenResponse
  653. .bodyText,
  654. ParamType.String,
  655. link:
  656. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  657. name: 'String',
  658. nullable: false,
  659. );
  660. debugLogWidgetClass(_model);
  661. return Builder(
  662. builder: (context) {
  663. final horecaItem =
  664. listViewMijnHorecagelegenhedenResponse
  665. .jsonBody
  666. .toList();
  667. _model.debugGeneratorVariables[
  668. 'horecaItem${horecaItem.length > 100 ? ' (first 100)' : ''}'] =
  669. debugSerializeParam(
  670. horecaItem.take(100),
  671. ParamType.JSON,
  672. isList: true,
  673. link:
  674. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  675. name: 'dynamic',
  676. nullable: false,
  677. );
  678. debugLogWidgetClass(_model);
  679. return ListView.builder(
  680. padding: EdgeInsets.zero,
  681. shrinkWrap: true,
  682. scrollDirection: Axis.vertical,
  683. itemCount: horecaItem.length,
  684. itemBuilder:
  685. (context, horecaItemIndex) {
  686. final horecaItemItem =
  687. horecaItem[horecaItemIndex];
  688. return Column(
  689. mainAxisSize: MainAxisSize.max,
  690. children: [
  691. Builder(builder: (_) {
  692. return DebugFlutterFlowModelContext(
  693. rootModel:
  694. _model.rootModel,
  695. parentModelCallback: (m) {
  696. _model.horecagelegenheidoverzichtKaartModels[
  697. 'Keywzn_${horecaItemIndex}_of_${horecaItem.length}'] = m;
  698. },
  699. child:
  700. HorecagelegenheidoverzichtKaartWidget(
  701. key: Key(
  702. 'Keywzn_${horecaItemIndex}_of_${horecaItem.length}'),
  703. titel: getJsonField(
  704. horecaItemItem,
  705. r'''$.titel''',
  706. ).toString(),
  707. logo: getJsonField(
  708. horecaItemItem,
  709. r'''$.logo''',
  710. ).toString(),
  711. nid: getJsonField(
  712. horecaItemItem,
  713. r'''$.nid''',
  714. ).toString(),
  715. adres: getJsonField(
  716. horecaItemItem,
  717. r'''$.adres''',
  718. ).toString(),
  719. plaats: getJsonField(
  720. horecaItemItem,
  721. r'''$.plaats''',
  722. ).toString(),
  723. categorie:
  724. (getJsonField(
  725. horecaItemItem,
  726. r'''$.categorie''',
  727. true,
  728. ) as List?)
  729. ?.map<String>(
  730. (e) => e
  731. .toString())
  732. .toList()
  733. .cast<String>(),
  734. ),
  735. );
  736. }),
  737. FFButtonWidget(
  738. onPressed: () async {
  739. context.pushNamed(
  740. UitgaansevenementAanmakenWidget
  741. .routeName,
  742. queryParameters: {
  743. 'horecagelegenheidNid':
  744. serializeParam(
  745. getJsonField(
  746. horecaItemItem,
  747. r'''$.nid''',
  748. ).toString(),
  749. ParamType.String,
  750. ),
  751. }.withoutNulls,
  752. );
  753. },
  754. text: FFLocalizations.of(
  755. context)
  756. .getText(
  757. 'qgi089l9' /* + Evenement aanmaken */,
  758. ),
  759. options: FFButtonOptions(
  760. width: double.infinity,
  761. height: 40.0,
  762. padding:
  763. EdgeInsetsDirectional
  764. .fromSTEB(
  765. 16.0,
  766. 0.0,
  767. 16.0,
  768. 0.0),
  769. iconPadding:
  770. EdgeInsetsDirectional
  771. .fromSTEB(
  772. 0.0,
  773. 0.0,
  774. 0.0,
  775. 0.0),
  776. color:
  777. FlutterFlowTheme.of(
  778. context)
  779. .secondary,
  780. textStyle:
  781. FlutterFlowTheme.of(
  782. context)
  783. .titleSmall
  784. .override(
  785. font:
  786. GoogleFonts
  787. .roboto(
  788. fontWeight: FlutterFlowTheme.of(
  789. context)
  790. .titleSmall
  791. .fontWeight,
  792. fontStyle: FlutterFlowTheme.of(
  793. context)
  794. .titleSmall
  795. .fontStyle,
  796. ),
  797. color: Colors
  798. .white,
  799. letterSpacing:
  800. 0.0,
  801. fontWeight: FlutterFlowTheme.of(
  802. context)
  803. .titleSmall
  804. .fontWeight,
  805. fontStyle: FlutterFlowTheme.of(
  806. context)
  807. .titleSmall
  808. .fontStyle,
  809. ),
  810. elevation: 0.0,
  811. borderRadius:
  812. BorderRadius.circular(
  813. 8.0),
  814. ),
  815. ),
  816. ],
  817. );
  818. },
  819. );
  820. },
  821. );
  822. },
  823. ),
  824. Text(
  825. FFLocalizations.of(context).getText(
  826. 'id14znhf' /* Een horecagelegenheid toevoege... */,
  827. ),
  828. style: FlutterFlowTheme.of(context)
  829. .bodySmall
  830. .override(
  831. font: GoogleFonts.roboto(
  832. fontWeight:
  833. FlutterFlowTheme.of(context)
  834. .bodySmall
  835. .fontWeight,
  836. fontStyle:
  837. FlutterFlowTheme.of(context)
  838. .bodySmall
  839. .fontStyle,
  840. ),
  841. color: FlutterFlowTheme.of(context)
  842. .secondaryText,
  843. letterSpacing: 0.0,
  844. fontWeight:
  845. FlutterFlowTheme.of(context)
  846. .bodySmall
  847. .fontWeight,
  848. fontStyle:
  849. FlutterFlowTheme.of(context)
  850. .bodySmall
  851. .fontStyle,
  852. ),
  853. ),
  854. ],
  855. ),
  856. ),
  857. SingleChildScrollView(
  858. child: Column(
  859. mainAxisSize: MainAxisSize.max,
  860. children: [
  861. Row(
  862. mainAxisSize: MainAxisSize.max,
  863. mainAxisAlignment:
  864. MainAxisAlignment.spaceBetween,
  865. children: [
  866. Text(
  867. FFLocalizations.of(context).getText(
  868. 'h7a6ja8e' /* Komende activiteiten */,
  869. ),
  870. style: FlutterFlowTheme.of(context)
  871. .titleMedium
  872. .override(
  873. font: GoogleFonts.roboto(
  874. fontWeight:
  875. FlutterFlowTheme.of(context)
  876. .titleMedium
  877. .fontWeight,
  878. fontStyle:
  879. FlutterFlowTheme.of(context)
  880. .titleMedium
  881. .fontStyle,
  882. ),
  883. letterSpacing: 0.0,
  884. fontWeight:
  885. FlutterFlowTheme.of(context)
  886. .titleMedium
  887. .fontWeight,
  888. fontStyle:
  889. FlutterFlowTheme.of(context)
  890. .titleMedium
  891. .fontStyle,
  892. ),
  893. ),
  894. FFButtonWidget(
  895. onPressed: () async {
  896. context.pushNamed(
  897. MijnAanmeldingenWidget.routeName,
  898. queryParameters: {
  899. 'type': serializeParam(
  900. 'activity',
  901. ParamType.String,
  902. ),
  903. }.withoutNulls,
  904. );
  905. },
  906. text:
  907. FFLocalizations.of(context).getText(
  908. 'woqhogv4' /* Bekijk alles */,
  909. ),
  910. options: FFButtonOptions(
  911. height: 40.0,
  912. padding:
  913. EdgeInsetsDirectional.fromSTEB(
  914. 16.0, 0.0, 16.0, 0.0),
  915. iconPadding:
  916. EdgeInsetsDirectional.fromSTEB(
  917. 0.0, 0.0, 0.0, 0.0),
  918. color: FlutterFlowTheme.of(context)
  919. .secondary,
  920. textStyle: FlutterFlowTheme.of(
  921. context)
  922. .titleSmall
  923. .override(
  924. font: GoogleFonts.roboto(
  925. fontWeight:
  926. FlutterFlowTheme.of(
  927. context)
  928. .titleSmall
  929. .fontWeight,
  930. fontStyle:
  931. FlutterFlowTheme.of(
  932. context)
  933. .titleSmall
  934. .fontStyle,
  935. ),
  936. color: Colors.white,
  937. letterSpacing: 0.0,
  938. fontWeight:
  939. FlutterFlowTheme.of(context)
  940. .titleSmall
  941. .fontWeight,
  942. fontStyle:
  943. FlutterFlowTheme.of(context)
  944. .titleSmall
  945. .fontStyle,
  946. ),
  947. elevation: 0.0,
  948. borderRadius:
  949. BorderRadius.circular(8.0),
  950. ),
  951. ),
  952. ],
  953. ),
  954. FutureBuilder<ApiCallResponse>(
  955. future: MijnAanmeldingenCall.call(
  956. sessionName: FFAppState().userSessionname,
  957. sessid: FFAppState().userSessionid,
  958. limit: 5,
  959. type: 'activity',
  960. komend: '1',
  961. ),
  962. builder: (context, snapshot) {
  963. // Customize what your widget looks like when it's loading.
  964. if (!snapshot.hasData) {
  965. return Center(
  966. child: SizedBox(
  967. width: 80.0,
  968. height: 80.0,
  969. child: SpinKitFadingCircle(
  970. color:
  971. FlutterFlowTheme.of(context)
  972. .primary,
  973. size: 80.0,
  974. ),
  975. ),
  976. );
  977. }
  978. final listViewMijnAanmeldingenResponse =
  979. snapshot.data!;
  980. _model.debugBackendQueries[
  981. 'MijnAanmeldingenCall_statusCode_ListView_4i4k5su1'] =
  982. debugSerializeParam(
  983. listViewMijnAanmeldingenResponse
  984. .statusCode,
  985. ParamType.int,
  986. link:
  987. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  988. name: 'int',
  989. nullable: false,
  990. );
  991. _model.debugBackendQueries[
  992. 'MijnAanmeldingenCall_responseBody_ListView_4i4k5su1'] =
  993. debugSerializeParam(
  994. listViewMijnAanmeldingenResponse
  995. .bodyText,
  996. ParamType.String,
  997. link:
  998. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  999. name: 'String',
  1000. nullable: false,
  1001. );
  1002. debugLogWidgetClass(_model);
  1003. return Builder(
  1004. builder: (context) {
  1005. final aanmeldingItem =
  1006. MijnAanmeldingenCall.items(
  1007. listViewMijnAanmeldingenResponse
  1008. .jsonBody,
  1009. )?.toList() ??
  1010. [];
  1011. _model.debugGeneratorVariables[
  1012. 'aanmeldingItem${aanmeldingItem.length > 100 ? ' (first 100)' : ''}'] =
  1013. debugSerializeParam(
  1014. aanmeldingItem.take(100),
  1015. ParamType.JSON,
  1016. isList: true,
  1017. link:
  1018. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  1019. name: 'dynamic',
  1020. nullable: false,
  1021. );
  1022. debugLogWidgetClass(_model);
  1023. return ListView.builder(
  1024. padding: EdgeInsets.zero,
  1025. shrinkWrap: true,
  1026. scrollDirection: Axis.vertical,
  1027. itemCount: aanmeldingItem.length,
  1028. itemBuilder:
  1029. (context, aanmeldingItemIndex) {
  1030. final aanmeldingItemItem =
  1031. aanmeldingItem[
  1032. aanmeldingItemIndex];
  1033. return InkWell(
  1034. splashColor: Colors.transparent,
  1035. focusColor: Colors.transparent,
  1036. hoverColor: Colors.transparent,
  1037. highlightColor:
  1038. Colors.transparent,
  1039. onTap: () async {
  1040. context.pushNamed(
  1041. EventCurrentWidget
  1042. .routeName,
  1043. queryParameters: {
  1044. 'nid': serializeParam(
  1045. getJsonField(
  1046. aanmeldingItemItem,
  1047. r'''$.nid''',
  1048. ).toString(),
  1049. ParamType.String,
  1050. ),
  1051. }.withoutNulls,
  1052. );
  1053. },
  1054. child: Material(
  1055. color: Colors.transparent,
  1056. child: ListTile(
  1057. title: Text(
  1058. getJsonField(
  1059. aanmeldingItemItem,
  1060. r'''$.title''',
  1061. ).toString(),
  1062. style:
  1063. FlutterFlowTheme.of(
  1064. context)
  1065. .titleLarge
  1066. .override(
  1067. font:
  1068. GoogleFonts
  1069. .roboto(
  1070. fontWeight: FlutterFlowTheme.of(
  1071. context)
  1072. .titleLarge
  1073. .fontWeight,
  1074. fontStyle: FlutterFlowTheme.of(
  1075. context)
  1076. .titleLarge
  1077. .fontStyle,
  1078. ),
  1079. letterSpacing:
  1080. 0.0,
  1081. fontWeight: FlutterFlowTheme.of(
  1082. context)
  1083. .titleLarge
  1084. .fontWeight,
  1085. fontStyle: FlutterFlowTheme.of(
  1086. context)
  1087. .titleLarge
  1088. .fontStyle,
  1089. ),
  1090. ),
  1091. subtitle: Text(
  1092. getJsonField(
  1093. aanmeldingItemItem,
  1094. r'''$.datum_start''',
  1095. ).toString(),
  1096. style:
  1097. FlutterFlowTheme.of(
  1098. context)
  1099. .labelMedium
  1100. .override(
  1101. font:
  1102. GoogleFonts
  1103. .roboto(
  1104. fontWeight: FlutterFlowTheme.of(
  1105. context)
  1106. .labelMedium
  1107. .fontWeight,
  1108. fontStyle: FlutterFlowTheme.of(
  1109. context)
  1110. .labelMedium
  1111. .fontStyle,
  1112. ),
  1113. letterSpacing:
  1114. 0.0,
  1115. fontWeight: FlutterFlowTheme.of(
  1116. context)
  1117. .labelMedium
  1118. .fontWeight,
  1119. fontStyle: FlutterFlowTheme.of(
  1120. context)
  1121. .labelMedium
  1122. .fontStyle,
  1123. ),
  1124. ),
  1125. trailing: Icon(
  1126. Icons
  1127. .arrow_forward_ios_rounded,
  1128. color:
  1129. FlutterFlowTheme.of(
  1130. context)
  1131. .secondaryText,
  1132. size: 24.0,
  1133. ),
  1134. tileColor: FlutterFlowTheme
  1135. .of(context)
  1136. .secondaryBackground,
  1137. dense: false,
  1138. contentPadding:
  1139. EdgeInsetsDirectional
  1140. .fromSTEB(12.0, 0.0,
  1141. 12.0, 0.0),
  1142. shape:
  1143. RoundedRectangleBorder(
  1144. borderRadius:
  1145. BorderRadius.circular(
  1146. 8.0),
  1147. ),
  1148. ),
  1149. ),
  1150. );
  1151. },
  1152. );
  1153. },
  1154. );
  1155. },
  1156. ),
  1157. Row(
  1158. mainAxisSize: MainAxisSize.max,
  1159. mainAxisAlignment:
  1160. MainAxisAlignment.spaceBetween,
  1161. children: [
  1162. Text(
  1163. FFLocalizations.of(context).getText(
  1164. '9gsjp3be' /* Mijn gemeenten */,
  1165. ),
  1166. style: FlutterFlowTheme.of(context)
  1167. .titleMedium
  1168. .override(
  1169. font: GoogleFonts.roboto(
  1170. fontWeight:
  1171. FlutterFlowTheme.of(context)
  1172. .titleMedium
  1173. .fontWeight,
  1174. fontStyle:
  1175. FlutterFlowTheme.of(context)
  1176. .titleMedium
  1177. .fontStyle,
  1178. ),
  1179. letterSpacing: 0.0,
  1180. fontWeight:
  1181. FlutterFlowTheme.of(context)
  1182. .titleMedium
  1183. .fontWeight,
  1184. fontStyle:
  1185. FlutterFlowTheme.of(context)
  1186. .titleMedium
  1187. .fontStyle,
  1188. ),
  1189. ),
  1190. FFButtonWidget(
  1191. onPressed: () async {
  1192. context.pushNamed(
  1193. StadsactiviteitAanmakenWidget
  1194. .routeName);
  1195. },
  1196. text:
  1197. FFLocalizations.of(context).getText(
  1198. 'hck4736z' /* + Activiteit */,
  1199. ),
  1200. options: FFButtonOptions(
  1201. height: 40.0,
  1202. padding:
  1203. EdgeInsetsDirectional.fromSTEB(
  1204. 16.0, 0.0, 16.0, 0.0),
  1205. iconPadding:
  1206. EdgeInsetsDirectional.fromSTEB(
  1207. 0.0, 0.0, 0.0, 0.0),
  1208. color: FlutterFlowTheme.of(context)
  1209. .secondary,
  1210. textStyle: FlutterFlowTheme.of(
  1211. context)
  1212. .titleSmall
  1213. .override(
  1214. font: GoogleFonts.roboto(
  1215. fontWeight:
  1216. FlutterFlowTheme.of(
  1217. context)
  1218. .titleSmall
  1219. .fontWeight,
  1220. fontStyle:
  1221. FlutterFlowTheme.of(
  1222. context)
  1223. .titleSmall
  1224. .fontStyle,
  1225. ),
  1226. color: Colors.white,
  1227. letterSpacing: 0.0,
  1228. fontWeight:
  1229. FlutterFlowTheme.of(context)
  1230. .titleSmall
  1231. .fontWeight,
  1232. fontStyle:
  1233. FlutterFlowTheme.of(context)
  1234. .titleSmall
  1235. .fontStyle,
  1236. ),
  1237. elevation: 0.0,
  1238. borderRadius:
  1239. BorderRadius.circular(8.0),
  1240. ),
  1241. ),
  1242. ],
  1243. ),
  1244. FutureBuilder<ApiCallResponse>(
  1245. future: MijnStadsrechtenCall.call(
  1246. sessionName: FFAppState().userSessionname,
  1247. sessid: FFAppState().userSessionid,
  1248. ),
  1249. builder: (context, snapshot) {
  1250. // Customize what your widget looks like when it's loading.
  1251. if (!snapshot.hasData) {
  1252. return Center(
  1253. child: SizedBox(
  1254. width: 80.0,
  1255. height: 80.0,
  1256. child: SpinKitFadingCircle(
  1257. color:
  1258. FlutterFlowTheme.of(context)
  1259. .primary,
  1260. size: 80.0,
  1261. ),
  1262. ),
  1263. );
  1264. }
  1265. final listViewMijnStadsrechtenResponse =
  1266. snapshot.data!;
  1267. _model.debugBackendQueries[
  1268. 'MijnStadsrechtenCall_statusCode_ListView_5a8dmfte'] =
  1269. debugSerializeParam(
  1270. listViewMijnStadsrechtenResponse
  1271. .statusCode,
  1272. ParamType.int,
  1273. link:
  1274. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  1275. name: 'int',
  1276. nullable: false,
  1277. );
  1278. _model.debugBackendQueries[
  1279. 'MijnStadsrechtenCall_responseBody_ListView_5a8dmfte'] =
  1280. debugSerializeParam(
  1281. listViewMijnStadsrechtenResponse
  1282. .bodyText,
  1283. ParamType.String,
  1284. link:
  1285. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  1286. name: 'String',
  1287. nullable: false,
  1288. );
  1289. debugLogWidgetClass(_model);
  1290. return Builder(
  1291. builder: (context) {
  1292. final rechtItem =
  1293. listViewMijnStadsrechtenResponse
  1294. .jsonBody
  1295. .toList();
  1296. _model.debugGeneratorVariables[
  1297. 'rechtItem${rechtItem.length > 100 ? ' (first 100)' : ''}'] =
  1298. debugSerializeParam(
  1299. rechtItem.take(100),
  1300. ParamType.JSON,
  1301. isList: true,
  1302. link:
  1303. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy2',
  1304. name: 'dynamic',
  1305. nullable: false,
  1306. );
  1307. debugLogWidgetClass(_model);
  1308. return ListView.builder(
  1309. padding: EdgeInsets.zero,
  1310. shrinkWrap: true,
  1311. scrollDirection: Axis.vertical,
  1312. itemCount: rechtItem.length,
  1313. itemBuilder:
  1314. (context, rechtItemIndex) {
  1315. final rechtItemItem =
  1316. rechtItem[rechtItemIndex];
  1317. return Padding(
  1318. padding: EdgeInsets.all(12.0),
  1319. child: Container(
  1320. decoration: BoxDecoration(
  1321. color: FlutterFlowTheme.of(
  1322. context)
  1323. .secondaryBackground,
  1324. borderRadius:
  1325. BorderRadius.circular(
  1326. 8.0),
  1327. ),
  1328. child: Column(
  1329. mainAxisSize:
  1330. MainAxisSize.max,
  1331. crossAxisAlignment:
  1332. CrossAxisAlignment
  1333. .start,
  1334. children: [
  1335. Text(
  1336. '${getJsonField(
  1337. rechtItemItem,
  1338. r'''$.titel''',
  1339. ).toString()} — ${getJsonField(
  1340. rechtItemItem,
  1341. r'''$.parent_titel''',
  1342. ).toString()}',
  1343. style:
  1344. FlutterFlowTheme.of(
  1345. context)
  1346. .bodyMedium
  1347. .override(
  1348. font: GoogleFonts
  1349. .roboto(
  1350. fontWeight: FlutterFlowTheme.of(
  1351. context)
  1352. .bodyMedium
  1353. .fontWeight,
  1354. fontStyle: FlutterFlowTheme.of(
  1355. context)
  1356. .bodyMedium
  1357. .fontStyle,
  1358. ),
  1359. letterSpacing:
  1360. 0.0,
  1361. fontWeight: FlutterFlowTheme.of(
  1362. context)
  1363. .bodyMedium
  1364. .fontWeight,
  1365. fontStyle: FlutterFlowTheme.of(
  1366. context)
  1367. .bodyMedium
  1368. .fontStyle,
  1369. ),
  1370. ),
  1371. FFButtonWidget(
  1372. onPressed: () async {
  1373. context.pushNamed(
  1374. StadsactiviteitAanmakenWidget
  1375. .routeName,
  1376. queryParameters: {
  1377. 'gemeenteTid':
  1378. serializeParam(
  1379. getJsonField(
  1380. rechtItemItem,
  1381. r'''$.tid''',
  1382. ).toString(),
  1383. ParamType
  1384. .String,
  1385. ),
  1386. }.withoutNulls,
  1387. );
  1388. },
  1389. text:
  1390. FFLocalizations.of(
  1391. context)
  1392. .getText(
  1393. '6sxzz4nk' /* + Activiteit aanmaken */,
  1394. ),
  1395. options:
  1396. FFButtonOptions(
  1397. width:
  1398. double.infinity,
  1399. height: 40.0,
  1400. padding:
  1401. EdgeInsetsDirectional
  1402. .fromSTEB(
  1403. 16.0,
  1404. 0.0,
  1405. 16.0,
  1406. 0.0),
  1407. iconPadding:
  1408. EdgeInsetsDirectional
  1409. .fromSTEB(
  1410. 0.0,
  1411. 0.0,
  1412. 0.0,
  1413. 0.0),
  1414. color: FlutterFlowTheme
  1415. .of(context)
  1416. .secondary,
  1417. textStyle:
  1418. FlutterFlowTheme.of(
  1419. context)
  1420. .titleSmall
  1421. .override(
  1422. font: GoogleFonts
  1423. .roboto(
  1424. fontWeight: FlutterFlowTheme.of(
  1425. context)
  1426. .titleSmall
  1427. .fontWeight,
  1428. fontStyle: FlutterFlowTheme.of(
  1429. context)
  1430. .titleSmall
  1431. .fontStyle,
  1432. ),
  1433. color: Colors
  1434. .white,
  1435. letterSpacing:
  1436. 0.0,
  1437. fontWeight: FlutterFlowTheme.of(
  1438. context)
  1439. .titleSmall
  1440. .fontWeight,
  1441. fontStyle: FlutterFlowTheme.of(
  1442. context)
  1443. .titleSmall
  1444. .fontStyle,
  1445. ),
  1446. elevation: 0.0,
  1447. borderRadius:
  1448. BorderRadius
  1449. .circular(
  1450. 8.0),
  1451. ),
  1452. ),
  1453. ],
  1454. ),
  1455. ),
  1456. );
  1457. },
  1458. );
  1459. },
  1460. );
  1461. },
  1462. ),
  1463. ],
  1464. ),
  1465. ),
  1466. SingleChildScrollView(
  1467. child: Column(
  1468. mainAxisSize: MainAxisSize.max,
  1469. children: [
  1470. Padding(
  1471. padding: EdgeInsets.all(16.0),
  1472. child: Text(
  1473. FFAppState().userName,
  1474. style: FlutterFlowTheme.of(context)
  1475. .bodyMedium
  1476. .override(
  1477. font: GoogleFonts.roboto(
  1478. fontWeight:
  1479. FlutterFlowTheme.of(context)
  1480. .bodyMedium
  1481. .fontWeight,
  1482. fontStyle:
  1483. FlutterFlowTheme.of(context)
  1484. .bodyMedium
  1485. .fontStyle,
  1486. ),
  1487. letterSpacing: 0.0,
  1488. fontWeight:
  1489. FlutterFlowTheme.of(context)
  1490. .bodyMedium
  1491. .fontWeight,
  1492. fontStyle:
  1493. FlutterFlowTheme.of(context)
  1494. .bodyMedium
  1495. .fontStyle,
  1496. ),
  1497. ),
  1498. ),
  1499. InkWell(
  1500. splashColor: Colors.transparent,
  1501. focusColor: Colors.transparent,
  1502. hoverColor: Colors.transparent,
  1503. highlightColor: Colors.transparent,
  1504. onTap: () async {
  1505. context.pushNamed(
  1506. WachtwoordVergetenWidget.routeName);
  1507. },
  1508. child: Material(
  1509. color: Colors.transparent,
  1510. child: ListTile(
  1511. title: Text(
  1512. FFLocalizations.of(context).getText(
  1513. 'xirkit3t' /* Wachtwoord wijzigen */,
  1514. ),
  1515. style: FlutterFlowTheme.of(context)
  1516. .titleLarge
  1517. .override(
  1518. font: GoogleFonts.roboto(
  1519. fontWeight:
  1520. FlutterFlowTheme.of(
  1521. context)
  1522. .titleLarge
  1523. .fontWeight,
  1524. fontStyle:
  1525. FlutterFlowTheme.of(
  1526. context)
  1527. .titleLarge
  1528. .fontStyle,
  1529. ),
  1530. letterSpacing: 0.0,
  1531. fontWeight:
  1532. FlutterFlowTheme.of(context)
  1533. .titleLarge
  1534. .fontWeight,
  1535. fontStyle:
  1536. FlutterFlowTheme.of(context)
  1537. .titleLarge
  1538. .fontStyle,
  1539. ),
  1540. ),
  1541. trailing: Icon(
  1542. Icons.arrow_forward_ios_rounded,
  1543. color: FlutterFlowTheme.of(context)
  1544. .secondaryText,
  1545. size: 24.0,
  1546. ),
  1547. tileColor: FlutterFlowTheme.of(context)
  1548. .secondaryBackground,
  1549. dense: false,
  1550. contentPadding:
  1551. EdgeInsetsDirectional.fromSTEB(
  1552. 12.0, 0.0, 12.0, 0.0),
  1553. shape: RoundedRectangleBorder(
  1554. borderRadius:
  1555. BorderRadius.circular(8.0),
  1556. ),
  1557. ),
  1558. ),
  1559. ),
  1560. InkWell(
  1561. splashColor: Colors.transparent,
  1562. focusColor: Colors.transparent,
  1563. hoverColor: Colors.transparent,
  1564. highlightColor: Colors.transparent,
  1565. onTap: () async {
  1566. await launchURL(
  1567. 'https://uitgaanskrant.com/nl/support/mobieleapp');
  1568. },
  1569. child: Material(
  1570. color: Colors.transparent,
  1571. child: ListTile(
  1572. title: Text(
  1573. FFLocalizations.of(context).getText(
  1574. '2osaxr0d' /* Account verwijderen */,
  1575. ),
  1576. style: FlutterFlowTheme.of(context)
  1577. .titleLarge
  1578. .override(
  1579. font: GoogleFonts.roboto(
  1580. fontWeight:
  1581. FlutterFlowTheme.of(
  1582. context)
  1583. .titleLarge
  1584. .fontWeight,
  1585. fontStyle:
  1586. FlutterFlowTheme.of(
  1587. context)
  1588. .titleLarge
  1589. .fontStyle,
  1590. ),
  1591. letterSpacing: 0.0,
  1592. fontWeight:
  1593. FlutterFlowTheme.of(context)
  1594. .titleLarge
  1595. .fontWeight,
  1596. fontStyle:
  1597. FlutterFlowTheme.of(context)
  1598. .titleLarge
  1599. .fontStyle,
  1600. ),
  1601. ),
  1602. trailing: Icon(
  1603. Icons.arrow_forward_ios_rounded,
  1604. color: FlutterFlowTheme.of(context)
  1605. .secondaryText,
  1606. size: 24.0,
  1607. ),
  1608. tileColor: FlutterFlowTheme.of(context)
  1609. .secondaryBackground,
  1610. dense: false,
  1611. contentPadding:
  1612. EdgeInsetsDirectional.fromSTEB(
  1613. 12.0, 0.0, 12.0, 0.0),
  1614. shape: RoundedRectangleBorder(
  1615. borderRadius:
  1616. BorderRadius.circular(8.0),
  1617. ),
  1618. ),
  1619. ),
  1620. ),
  1621. InkWell(
  1622. splashColor: Colors.transparent,
  1623. focusColor: Colors.transparent,
  1624. hoverColor: Colors.transparent,
  1625. highlightColor: Colors.transparent,
  1626. onTap: () async {
  1627. FFAppState().deleteUserToken();
  1628. FFAppState().userToken = '';
  1629. FFAppState().deleteUserSessionid();
  1630. FFAppState().userSessionid = '';
  1631. FFAppState().deleteUserSessionname();
  1632. FFAppState().userSessionname = '';
  1633. FFAppState().deleteUserName();
  1634. FFAppState().userName = '';
  1635. FFAppState().deleteUserUid();
  1636. FFAppState().userUid = 0;
  1637. FFAppState().deleteUserMail();
  1638. FFAppState().userMail = '';
  1639. safeSetState(() {});
  1640. context.goNamed(LoginWidget.routeName);
  1641. },
  1642. child: Material(
  1643. color: Colors.transparent,
  1644. child: ListTile(
  1645. title: Text(
  1646. FFLocalizations.of(context).getText(
  1647. 'lbig1sux' /* Uitloggen */,
  1648. ),
  1649. style: FlutterFlowTheme.of(context)
  1650. .titleLarge
  1651. .override(
  1652. font: GoogleFonts.roboto(
  1653. fontWeight:
  1654. FlutterFlowTheme.of(
  1655. context)
  1656. .titleLarge
  1657. .fontWeight,
  1658. fontStyle:
  1659. FlutterFlowTheme.of(
  1660. context)
  1661. .titleLarge
  1662. .fontStyle,
  1663. ),
  1664. letterSpacing: 0.0,
  1665. fontWeight:
  1666. FlutterFlowTheme.of(context)
  1667. .titleLarge
  1668. .fontWeight,
  1669. fontStyle:
  1670. FlutterFlowTheme.of(context)
  1671. .titleLarge
  1672. .fontStyle,
  1673. ),
  1674. ),
  1675. trailing: Icon(
  1676. Icons.arrow_forward_ios_rounded,
  1677. color: FlutterFlowTheme.of(context)
  1678. .secondaryText,
  1679. size: 24.0,
  1680. ),
  1681. tileColor: FlutterFlowTheme.of(context)
  1682. .secondaryBackground,
  1683. dense: false,
  1684. contentPadding:
  1685. EdgeInsetsDirectional.fromSTEB(
  1686. 12.0, 0.0, 12.0, 0.0),
  1687. shape: RoundedRectangleBorder(
  1688. borderRadius:
  1689. BorderRadius.circular(8.0),
  1690. ),
  1691. ),
  1692. ),
  1693. ),
  1694. ],
  1695. ),
  1696. ),
  1697. ],
  1698. ),
  1699. ),
  1700. ],
  1701. ),
  1702. ),
  1703. ],
  1704. ),
  1705. ),
  1706. ),
  1707. ),
  1708. );
  1709. }
  1710. }