mijn_profiel_copy_widget.dart 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738
  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_copy_model.dart';
  15. export 'mijn_profiel_copy_model.dart';
  16. class MijnProfielCopyWidget extends StatefulWidget {
  17. const MijnProfielCopyWidget({super.key});
  18. static String routeName = 'mijnProfielCopy';
  19. static String routePath = '/mijnProfielCopy';
  20. @override
  21. State<MijnProfielCopyWidget> createState() => _MijnProfielCopyWidgetState();
  22. }
  23. class _MijnProfielCopyWidgetState extends State<MijnProfielCopyWidget>
  24. with TickerProviderStateMixin, RouteAware {
  25. late MijnProfielCopyModel _model;
  26. final scaffoldKey = GlobalKey<ScaffoldState>();
  27. @override
  28. void initState() {
  29. super.initState();
  30. _model = createModel(context, () => MijnProfielCopyModel());
  31. _model.tabBarController = 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(MijnProfielCopyWidget 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. 't5in39ep' /* Mijn evenementen */,
  201. ),
  202. ),
  203. Tab(
  204. text: FFLocalizations.of(context).getText(
  205. 'vkwmzlrz' /* Stadseditor */,
  206. ),
  207. ),
  208. Tab(
  209. text: FFLocalizations.of(context).getText(
  210. '15w5y1ft' /* Account */,
  211. ),
  212. ),
  213. ],
  214. controller: _model.tabBarController,
  215. onTap: (i) async {
  216. [() async {}, () async {}, () async {}][i]();
  217. },
  218. ),
  219. ),
  220. Expanded(
  221. child: TabBarView(
  222. controller: _model.tabBarController,
  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. 'z5raallt' /* 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. 'k5ygonp7' /* 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_vl2i8hpb'] =
  349. debugSerializeParam(
  350. listViewMijnAanmeldingenResponse
  351. .statusCode,
  352. ParamType.int,
  353. link:
  354. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  355. name: 'int',
  356. nullable: false,
  357. );
  358. _model.debugBackendQueries[
  359. 'MijnAanmeldingenCall_responseBody_ListView_vl2i8hpb'] =
  360. debugSerializeParam(
  361. listViewMijnAanmeldingenResponse
  362. .bodyText,
  363. ParamType.String,
  364. link:
  365. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  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. _model.debugGeneratorVariables[
  379. 'aanmeldingItem${aanmeldingItem.length > 100 ? ' (first 100)' : ''}'] =
  380. debugSerializeParam(
  381. aanmeldingItem.take(100),
  382. ParamType.JSON,
  383. isList: true,
  384. link:
  385. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  386. name: 'dynamic',
  387. nullable: false,
  388. );
  389. debugLogWidgetClass(_model);
  390. return ListView.builder(
  391. padding: EdgeInsets.zero,
  392. shrinkWrap: true,
  393. scrollDirection: Axis.vertical,
  394. itemCount: aanmeldingItem.length,
  395. itemBuilder:
  396. (context, aanmeldingItemIndex) {
  397. final aanmeldingItemItem =
  398. aanmeldingItem[
  399. aanmeldingItemIndex];
  400. return InkWell(
  401. splashColor: Colors.transparent,
  402. focusColor: Colors.transparent,
  403. hoverColor: Colors.transparent,
  404. highlightColor:
  405. Colors.transparent,
  406. onTap: () async {
  407. context.pushNamed(
  408. EventCurrentWidget
  409. .routeName,
  410. queryParameters: {
  411. 'nid': serializeParam(
  412. getJsonField(
  413. aanmeldingItemItem,
  414. r'''$.nid''',
  415. ).toString(),
  416. ParamType.String,
  417. ),
  418. }.withoutNulls,
  419. );
  420. },
  421. child: Material(
  422. color: Colors.transparent,
  423. child: ListTile(
  424. title: Text(
  425. getJsonField(
  426. aanmeldingItemItem,
  427. r'''$.title''',
  428. ).toString(),
  429. style:
  430. FlutterFlowTheme.of(
  431. context)
  432. .titleLarge
  433. .override(
  434. font:
  435. GoogleFonts
  436. .roboto(
  437. fontWeight: FlutterFlowTheme.of(
  438. context)
  439. .titleLarge
  440. .fontWeight,
  441. fontStyle: FlutterFlowTheme.of(
  442. context)
  443. .titleLarge
  444. .fontStyle,
  445. ),
  446. letterSpacing:
  447. 0.0,
  448. fontWeight: FlutterFlowTheme.of(
  449. context)
  450. .titleLarge
  451. .fontWeight,
  452. fontStyle: FlutterFlowTheme.of(
  453. context)
  454. .titleLarge
  455. .fontStyle,
  456. ),
  457. ),
  458. subtitle: Text(
  459. getJsonField(
  460. aanmeldingItemItem,
  461. r'''$.datum_start''',
  462. ).toString(),
  463. style:
  464. FlutterFlowTheme.of(
  465. context)
  466. .labelMedium
  467. .override(
  468. font:
  469. GoogleFonts
  470. .roboto(
  471. fontWeight: FlutterFlowTheme.of(
  472. context)
  473. .labelMedium
  474. .fontWeight,
  475. fontStyle: FlutterFlowTheme.of(
  476. context)
  477. .labelMedium
  478. .fontStyle,
  479. ),
  480. letterSpacing:
  481. 0.0,
  482. fontWeight: FlutterFlowTheme.of(
  483. context)
  484. .labelMedium
  485. .fontWeight,
  486. fontStyle: FlutterFlowTheme.of(
  487. context)
  488. .labelMedium
  489. .fontStyle,
  490. ),
  491. ),
  492. trailing: Icon(
  493. Icons
  494. .arrow_forward_ios_rounded,
  495. color:
  496. FlutterFlowTheme.of(
  497. context)
  498. .secondaryText,
  499. size: 24.0,
  500. ),
  501. tileColor: FlutterFlowTheme
  502. .of(context)
  503. .secondaryBackground,
  504. dense: false,
  505. contentPadding:
  506. EdgeInsetsDirectional
  507. .fromSTEB(12.0, 0.0,
  508. 12.0, 0.0),
  509. shape:
  510. RoundedRectangleBorder(
  511. borderRadius:
  512. BorderRadius.circular(
  513. 8.0),
  514. ),
  515. ),
  516. ),
  517. );
  518. },
  519. );
  520. },
  521. );
  522. },
  523. ),
  524. Row(
  525. mainAxisSize: MainAxisSize.max,
  526. mainAxisAlignment:
  527. MainAxisAlignment.spaceBetween,
  528. children: [
  529. Text(
  530. FFLocalizations.of(context).getText(
  531. 'axder404' /* Mijn horecagelegenheden */,
  532. ),
  533. style: FlutterFlowTheme.of(context)
  534. .titleMedium
  535. .override(
  536. font: GoogleFonts.roboto(
  537. fontWeight:
  538. FlutterFlowTheme.of(context)
  539. .titleMedium
  540. .fontWeight,
  541. fontStyle:
  542. FlutterFlowTheme.of(context)
  543. .titleMedium
  544. .fontStyle,
  545. ),
  546. letterSpacing: 0.0,
  547. fontWeight:
  548. FlutterFlowTheme.of(context)
  549. .titleMedium
  550. .fontWeight,
  551. fontStyle:
  552. FlutterFlowTheme.of(context)
  553. .titleMedium
  554. .fontStyle,
  555. ),
  556. ),
  557. FFButtonWidget(
  558. onPressed: () async {
  559. await launchURL(
  560. 'https://uitgaanskrant.com/nl/support/mobieleapp');
  561. },
  562. text:
  563. FFLocalizations.of(context).getText(
  564. '496wst30' /* Zaak toevoegen */,
  565. ),
  566. options: FFButtonOptions(
  567. height: 40.0,
  568. padding:
  569. EdgeInsetsDirectional.fromSTEB(
  570. 16.0, 0.0, 16.0, 0.0),
  571. iconPadding:
  572. EdgeInsetsDirectional.fromSTEB(
  573. 0.0, 0.0, 0.0, 0.0),
  574. color: FlutterFlowTheme.of(context)
  575. .secondary,
  576. textStyle: FlutterFlowTheme.of(
  577. context)
  578. .titleSmall
  579. .override(
  580. font: GoogleFonts.roboto(
  581. fontWeight:
  582. FlutterFlowTheme.of(
  583. context)
  584. .titleSmall
  585. .fontWeight,
  586. fontStyle:
  587. FlutterFlowTheme.of(
  588. context)
  589. .titleSmall
  590. .fontStyle,
  591. ),
  592. color: Colors.white,
  593. letterSpacing: 0.0,
  594. fontWeight:
  595. FlutterFlowTheme.of(context)
  596. .titleSmall
  597. .fontWeight,
  598. fontStyle:
  599. FlutterFlowTheme.of(context)
  600. .titleSmall
  601. .fontStyle,
  602. ),
  603. elevation: 0.0,
  604. borderRadius:
  605. BorderRadius.circular(8.0),
  606. ),
  607. ),
  608. ],
  609. ),
  610. FutureBuilder<ApiCallResponse>(
  611. future: MijnHorecagelegenhedenCall.call(
  612. sessionName: FFAppState().userSessionname,
  613. sessid: FFAppState().userSessionid,
  614. ),
  615. builder: (context, snapshot) {
  616. // Customize what your widget looks like when it's loading.
  617. if (!snapshot.hasData) {
  618. return Center(
  619. child: SizedBox(
  620. width: 80.0,
  621. height: 80.0,
  622. child: SpinKitFadingCircle(
  623. color:
  624. FlutterFlowTheme.of(context)
  625. .primary,
  626. size: 80.0,
  627. ),
  628. ),
  629. );
  630. }
  631. final listViewMijnHorecagelegenhedenResponse =
  632. snapshot.data!;
  633. _model.debugBackendQueries[
  634. 'MijnHorecagelegenhedenCall_statusCode_ListView_srjw77bo'] =
  635. debugSerializeParam(
  636. listViewMijnHorecagelegenhedenResponse
  637. .statusCode,
  638. ParamType.int,
  639. link:
  640. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  641. name: 'int',
  642. nullable: false,
  643. );
  644. _model.debugBackendQueries[
  645. 'MijnHorecagelegenhedenCall_responseBody_ListView_srjw77bo'] =
  646. debugSerializeParam(
  647. listViewMijnHorecagelegenhedenResponse
  648. .bodyText,
  649. ParamType.String,
  650. link:
  651. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  652. name: 'String',
  653. nullable: false,
  654. );
  655. debugLogWidgetClass(_model);
  656. return Builder(
  657. builder: (context) {
  658. final horecaItem =
  659. listViewMijnHorecagelegenhedenResponse
  660. .jsonBody
  661. .toList();
  662. _model.debugGeneratorVariables[
  663. 'horecaItem${horecaItem.length > 100 ? ' (first 100)' : ''}'] =
  664. debugSerializeParam(
  665. horecaItem.take(100),
  666. ParamType.JSON,
  667. isList: true,
  668. link:
  669. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  670. name: 'dynamic',
  671. nullable: false,
  672. );
  673. debugLogWidgetClass(_model);
  674. return ListView.builder(
  675. padding: EdgeInsets.zero,
  676. shrinkWrap: true,
  677. scrollDirection: Axis.vertical,
  678. itemCount: horecaItem.length,
  679. itemBuilder:
  680. (context, horecaItemIndex) {
  681. final horecaItemItem =
  682. horecaItem[horecaItemIndex];
  683. return Column(
  684. mainAxisSize: MainAxisSize.max,
  685. children: [
  686. Builder(builder: (_) {
  687. return DebugFlutterFlowModelContext(
  688. rootModel:
  689. _model.rootModel,
  690. parentModelCallback: (m) {
  691. _model.horecagelegenheidoverzichtKaartModels[
  692. 'Keyokg_${horecaItemIndex}_of_${horecaItem.length}'] = m;
  693. },
  694. child:
  695. HorecagelegenheidoverzichtKaartWidget(
  696. key: Key(
  697. 'Keyokg_${horecaItemIndex}_of_${horecaItem.length}'),
  698. titel: getJsonField(
  699. horecaItemItem,
  700. r'''$.titel''',
  701. ).toString(),
  702. logo: getJsonField(
  703. horecaItemItem,
  704. r'''$.logo''',
  705. ).toString(),
  706. nid: getJsonField(
  707. horecaItemItem,
  708. r'''$.nid''',
  709. ).toString(),
  710. adres: getJsonField(
  711. horecaItemItem,
  712. r'''$.adres''',
  713. ).toString(),
  714. plaats: getJsonField(
  715. horecaItemItem,
  716. r'''$.plaats''',
  717. ).toString(),
  718. categorie:
  719. (getJsonField(
  720. horecaItemItem,
  721. r'''$.categorie''',
  722. true,
  723. ) as List?)
  724. ?.map<String>(
  725. (e) => e
  726. .toString())
  727. .toList()
  728. .cast<String>(),
  729. ),
  730. );
  731. }),
  732. FFButtonWidget(
  733. onPressed: () async {
  734. context.pushNamed(
  735. UitgaansevenementAanmakenWidget
  736. .routeName,
  737. queryParameters: {
  738. 'horecagelegenheidNid':
  739. serializeParam(
  740. getJsonField(
  741. horecaItemItem,
  742. r'''$.nid''',
  743. ).toString(),
  744. ParamType.String,
  745. ),
  746. }.withoutNulls,
  747. );
  748. },
  749. text: FFLocalizations.of(
  750. context)
  751. .getText(
  752. 'balt74l1' /* + Evenement aanmaken */,
  753. ),
  754. options: FFButtonOptions(
  755. width: double.infinity,
  756. height: 40.0,
  757. padding:
  758. EdgeInsetsDirectional
  759. .fromSTEB(
  760. 16.0,
  761. 0.0,
  762. 16.0,
  763. 0.0),
  764. iconPadding:
  765. EdgeInsetsDirectional
  766. .fromSTEB(
  767. 0.0,
  768. 0.0,
  769. 0.0,
  770. 0.0),
  771. color:
  772. FlutterFlowTheme.of(
  773. context)
  774. .secondary,
  775. textStyle:
  776. FlutterFlowTheme.of(
  777. context)
  778. .titleSmall
  779. .override(
  780. font:
  781. GoogleFonts
  782. .roboto(
  783. fontWeight: FlutterFlowTheme.of(
  784. context)
  785. .titleSmall
  786. .fontWeight,
  787. fontStyle: FlutterFlowTheme.of(
  788. context)
  789. .titleSmall
  790. .fontStyle,
  791. ),
  792. color: Colors
  793. .white,
  794. letterSpacing:
  795. 0.0,
  796. fontWeight: FlutterFlowTheme.of(
  797. context)
  798. .titleSmall
  799. .fontWeight,
  800. fontStyle: FlutterFlowTheme.of(
  801. context)
  802. .titleSmall
  803. .fontStyle,
  804. ),
  805. elevation: 0.0,
  806. borderRadius:
  807. BorderRadius.circular(
  808. 8.0),
  809. ),
  810. ),
  811. ],
  812. );
  813. },
  814. );
  815. },
  816. );
  817. },
  818. ),
  819. Text(
  820. FFLocalizations.of(context).getText(
  821. 'i2y2tc9p' /* Een horecagelegenheid toevoege... */,
  822. ),
  823. style: FlutterFlowTheme.of(context)
  824. .bodySmall
  825. .override(
  826. font: GoogleFonts.roboto(
  827. fontWeight:
  828. FlutterFlowTheme.of(context)
  829. .bodySmall
  830. .fontWeight,
  831. fontStyle:
  832. FlutterFlowTheme.of(context)
  833. .bodySmall
  834. .fontStyle,
  835. ),
  836. color: FlutterFlowTheme.of(context)
  837. .secondaryText,
  838. letterSpacing: 0.0,
  839. fontWeight:
  840. FlutterFlowTheme.of(context)
  841. .bodySmall
  842. .fontWeight,
  843. fontStyle:
  844. FlutterFlowTheme.of(context)
  845. .bodySmall
  846. .fontStyle,
  847. ),
  848. ),
  849. ],
  850. ),
  851. ),
  852. SingleChildScrollView(
  853. child: Column(
  854. mainAxisSize: MainAxisSize.max,
  855. children: [
  856. Row(
  857. mainAxisSize: MainAxisSize.max,
  858. mainAxisAlignment:
  859. MainAxisAlignment.spaceBetween,
  860. children: [
  861. Text(
  862. FFLocalizations.of(context).getText(
  863. 'zz4kibls' /* Komende activiteiten */,
  864. ),
  865. style: FlutterFlowTheme.of(context)
  866. .titleMedium
  867. .override(
  868. font: GoogleFonts.roboto(
  869. fontWeight:
  870. FlutterFlowTheme.of(context)
  871. .titleMedium
  872. .fontWeight,
  873. fontStyle:
  874. FlutterFlowTheme.of(context)
  875. .titleMedium
  876. .fontStyle,
  877. ),
  878. letterSpacing: 0.0,
  879. fontWeight:
  880. FlutterFlowTheme.of(context)
  881. .titleMedium
  882. .fontWeight,
  883. fontStyle:
  884. FlutterFlowTheme.of(context)
  885. .titleMedium
  886. .fontStyle,
  887. ),
  888. ),
  889. FFButtonWidget(
  890. onPressed: () async {
  891. context.pushNamed(
  892. MijnAanmeldingenWidget.routeName,
  893. queryParameters: {
  894. 'type': serializeParam(
  895. 'activity',
  896. ParamType.String,
  897. ),
  898. }.withoutNulls,
  899. );
  900. },
  901. text:
  902. FFLocalizations.of(context).getText(
  903. '5kornrez' /* Bekijk alles */,
  904. ),
  905. options: FFButtonOptions(
  906. height: 40.0,
  907. padding:
  908. EdgeInsetsDirectional.fromSTEB(
  909. 16.0, 0.0, 16.0, 0.0),
  910. iconPadding:
  911. EdgeInsetsDirectional.fromSTEB(
  912. 0.0, 0.0, 0.0, 0.0),
  913. color: FlutterFlowTheme.of(context)
  914. .secondary,
  915. textStyle: FlutterFlowTheme.of(
  916. context)
  917. .titleSmall
  918. .override(
  919. font: GoogleFonts.roboto(
  920. fontWeight:
  921. FlutterFlowTheme.of(
  922. context)
  923. .titleSmall
  924. .fontWeight,
  925. fontStyle:
  926. FlutterFlowTheme.of(
  927. context)
  928. .titleSmall
  929. .fontStyle,
  930. ),
  931. color: Colors.white,
  932. letterSpacing: 0.0,
  933. fontWeight:
  934. FlutterFlowTheme.of(context)
  935. .titleSmall
  936. .fontWeight,
  937. fontStyle:
  938. FlutterFlowTheme.of(context)
  939. .titleSmall
  940. .fontStyle,
  941. ),
  942. elevation: 0.0,
  943. borderRadius:
  944. BorderRadius.circular(8.0),
  945. ),
  946. ),
  947. ],
  948. ),
  949. FutureBuilder<ApiCallResponse>(
  950. future: MijnAanmeldingenCall.call(
  951. sessionName: FFAppState().userSessionname,
  952. sessid: FFAppState().userSessionid,
  953. limit: 5,
  954. type: 'activity',
  955. komend: '1',
  956. ),
  957. builder: (context, snapshot) {
  958. // Customize what your widget looks like when it's loading.
  959. if (!snapshot.hasData) {
  960. return Center(
  961. child: SizedBox(
  962. width: 80.0,
  963. height: 80.0,
  964. child: SpinKitFadingCircle(
  965. color:
  966. FlutterFlowTheme.of(context)
  967. .primary,
  968. size: 80.0,
  969. ),
  970. ),
  971. );
  972. }
  973. final listViewMijnAanmeldingenResponse =
  974. snapshot.data!;
  975. _model.debugBackendQueries[
  976. 'MijnAanmeldingenCall_statusCode_ListView_83ps84jw'] =
  977. debugSerializeParam(
  978. listViewMijnAanmeldingenResponse
  979. .statusCode,
  980. ParamType.int,
  981. link:
  982. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  983. name: 'int',
  984. nullable: false,
  985. );
  986. _model.debugBackendQueries[
  987. 'MijnAanmeldingenCall_responseBody_ListView_83ps84jw'] =
  988. debugSerializeParam(
  989. listViewMijnAanmeldingenResponse
  990. .bodyText,
  991. ParamType.String,
  992. link:
  993. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  994. name: 'String',
  995. nullable: false,
  996. );
  997. debugLogWidgetClass(_model);
  998. return Builder(
  999. builder: (context) {
  1000. final aanmeldingItem =
  1001. MijnAanmeldingenCall.items(
  1002. listViewMijnAanmeldingenResponse
  1003. .jsonBody,
  1004. )?.toList() ??
  1005. [];
  1006. _model.debugGeneratorVariables[
  1007. 'aanmeldingItem${aanmeldingItem.length > 100 ? ' (first 100)' : ''}'] =
  1008. debugSerializeParam(
  1009. aanmeldingItem.take(100),
  1010. ParamType.JSON,
  1011. isList: true,
  1012. link:
  1013. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  1014. name: 'dynamic',
  1015. nullable: false,
  1016. );
  1017. debugLogWidgetClass(_model);
  1018. return ListView.builder(
  1019. padding: EdgeInsets.zero,
  1020. shrinkWrap: true,
  1021. scrollDirection: Axis.vertical,
  1022. itemCount: aanmeldingItem.length,
  1023. itemBuilder:
  1024. (context, aanmeldingItemIndex) {
  1025. final aanmeldingItemItem =
  1026. aanmeldingItem[
  1027. aanmeldingItemIndex];
  1028. return InkWell(
  1029. splashColor: Colors.transparent,
  1030. focusColor: Colors.transparent,
  1031. hoverColor: Colors.transparent,
  1032. highlightColor:
  1033. Colors.transparent,
  1034. onTap: () async {
  1035. context.pushNamed(
  1036. EventCurrentWidget
  1037. .routeName,
  1038. queryParameters: {
  1039. 'nid': serializeParam(
  1040. getJsonField(
  1041. aanmeldingItemItem,
  1042. r'''$.nid''',
  1043. ).toString(),
  1044. ParamType.String,
  1045. ),
  1046. }.withoutNulls,
  1047. );
  1048. },
  1049. child: Material(
  1050. color: Colors.transparent,
  1051. child: ListTile(
  1052. title: Text(
  1053. getJsonField(
  1054. aanmeldingItemItem,
  1055. r'''$.title''',
  1056. ).toString(),
  1057. style:
  1058. FlutterFlowTheme.of(
  1059. context)
  1060. .titleLarge
  1061. .override(
  1062. font:
  1063. GoogleFonts
  1064. .roboto(
  1065. fontWeight: FlutterFlowTheme.of(
  1066. context)
  1067. .titleLarge
  1068. .fontWeight,
  1069. fontStyle: FlutterFlowTheme.of(
  1070. context)
  1071. .titleLarge
  1072. .fontStyle,
  1073. ),
  1074. letterSpacing:
  1075. 0.0,
  1076. fontWeight: FlutterFlowTheme.of(
  1077. context)
  1078. .titleLarge
  1079. .fontWeight,
  1080. fontStyle: FlutterFlowTheme.of(
  1081. context)
  1082. .titleLarge
  1083. .fontStyle,
  1084. ),
  1085. ),
  1086. subtitle: Text(
  1087. getJsonField(
  1088. aanmeldingItemItem,
  1089. r'''$.datum_start''',
  1090. ).toString(),
  1091. style:
  1092. FlutterFlowTheme.of(
  1093. context)
  1094. .labelMedium
  1095. .override(
  1096. font:
  1097. GoogleFonts
  1098. .roboto(
  1099. fontWeight: FlutterFlowTheme.of(
  1100. context)
  1101. .labelMedium
  1102. .fontWeight,
  1103. fontStyle: FlutterFlowTheme.of(
  1104. context)
  1105. .labelMedium
  1106. .fontStyle,
  1107. ),
  1108. letterSpacing:
  1109. 0.0,
  1110. fontWeight: FlutterFlowTheme.of(
  1111. context)
  1112. .labelMedium
  1113. .fontWeight,
  1114. fontStyle: FlutterFlowTheme.of(
  1115. context)
  1116. .labelMedium
  1117. .fontStyle,
  1118. ),
  1119. ),
  1120. trailing: Icon(
  1121. Icons
  1122. .arrow_forward_ios_rounded,
  1123. color:
  1124. FlutterFlowTheme.of(
  1125. context)
  1126. .secondaryText,
  1127. size: 24.0,
  1128. ),
  1129. tileColor: FlutterFlowTheme
  1130. .of(context)
  1131. .secondaryBackground,
  1132. dense: false,
  1133. contentPadding:
  1134. EdgeInsetsDirectional
  1135. .fromSTEB(12.0, 0.0,
  1136. 12.0, 0.0),
  1137. shape:
  1138. RoundedRectangleBorder(
  1139. borderRadius:
  1140. BorderRadius.circular(
  1141. 8.0),
  1142. ),
  1143. ),
  1144. ),
  1145. );
  1146. },
  1147. );
  1148. },
  1149. );
  1150. },
  1151. ),
  1152. Row(
  1153. mainAxisSize: MainAxisSize.max,
  1154. mainAxisAlignment:
  1155. MainAxisAlignment.spaceBetween,
  1156. children: [
  1157. Text(
  1158. FFLocalizations.of(context).getText(
  1159. '91d2zqc5' /* Mijn gemeenten */,
  1160. ),
  1161. style: FlutterFlowTheme.of(context)
  1162. .titleMedium
  1163. .override(
  1164. font: GoogleFonts.roboto(
  1165. fontWeight:
  1166. FlutterFlowTheme.of(context)
  1167. .titleMedium
  1168. .fontWeight,
  1169. fontStyle:
  1170. FlutterFlowTheme.of(context)
  1171. .titleMedium
  1172. .fontStyle,
  1173. ),
  1174. letterSpacing: 0.0,
  1175. fontWeight:
  1176. FlutterFlowTheme.of(context)
  1177. .titleMedium
  1178. .fontWeight,
  1179. fontStyle:
  1180. FlutterFlowTheme.of(context)
  1181. .titleMedium
  1182. .fontStyle,
  1183. ),
  1184. ),
  1185. FFButtonWidget(
  1186. onPressed: () async {
  1187. context.pushNamed(
  1188. StadsactiviteitAanmakenWidget
  1189. .routeName);
  1190. },
  1191. text:
  1192. FFLocalizations.of(context).getText(
  1193. 'dhfkplqm' /* + Activiteit */,
  1194. ),
  1195. options: FFButtonOptions(
  1196. height: 40.0,
  1197. padding:
  1198. EdgeInsetsDirectional.fromSTEB(
  1199. 16.0, 0.0, 16.0, 0.0),
  1200. iconPadding:
  1201. EdgeInsetsDirectional.fromSTEB(
  1202. 0.0, 0.0, 0.0, 0.0),
  1203. color: FlutterFlowTheme.of(context)
  1204. .secondary,
  1205. textStyle: FlutterFlowTheme.of(
  1206. context)
  1207. .titleSmall
  1208. .override(
  1209. font: GoogleFonts.roboto(
  1210. fontWeight:
  1211. FlutterFlowTheme.of(
  1212. context)
  1213. .titleSmall
  1214. .fontWeight,
  1215. fontStyle:
  1216. FlutterFlowTheme.of(
  1217. context)
  1218. .titleSmall
  1219. .fontStyle,
  1220. ),
  1221. color: Colors.white,
  1222. letterSpacing: 0.0,
  1223. fontWeight:
  1224. FlutterFlowTheme.of(context)
  1225. .titleSmall
  1226. .fontWeight,
  1227. fontStyle:
  1228. FlutterFlowTheme.of(context)
  1229. .titleSmall
  1230. .fontStyle,
  1231. ),
  1232. elevation: 0.0,
  1233. borderRadius:
  1234. BorderRadius.circular(8.0),
  1235. ),
  1236. ),
  1237. ],
  1238. ),
  1239. FutureBuilder<ApiCallResponse>(
  1240. future: MijnStadsrechtenCall.call(
  1241. sessionName: FFAppState().userSessionname,
  1242. sessid: FFAppState().userSessionid,
  1243. ),
  1244. builder: (context, snapshot) {
  1245. // Customize what your widget looks like when it's loading.
  1246. if (!snapshot.hasData) {
  1247. return Center(
  1248. child: SizedBox(
  1249. width: 80.0,
  1250. height: 80.0,
  1251. child: SpinKitFadingCircle(
  1252. color:
  1253. FlutterFlowTheme.of(context)
  1254. .primary,
  1255. size: 80.0,
  1256. ),
  1257. ),
  1258. );
  1259. }
  1260. final listViewMijnStadsrechtenResponse =
  1261. snapshot.data!;
  1262. _model.debugBackendQueries[
  1263. 'MijnStadsrechtenCall_statusCode_ListView_wt0uoufo'] =
  1264. debugSerializeParam(
  1265. listViewMijnStadsrechtenResponse
  1266. .statusCode,
  1267. ParamType.int,
  1268. link:
  1269. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  1270. name: 'int',
  1271. nullable: false,
  1272. );
  1273. _model.debugBackendQueries[
  1274. 'MijnStadsrechtenCall_responseBody_ListView_wt0uoufo'] =
  1275. debugSerializeParam(
  1276. listViewMijnStadsrechtenResponse
  1277. .bodyText,
  1278. ParamType.String,
  1279. link:
  1280. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  1281. name: 'String',
  1282. nullable: false,
  1283. );
  1284. debugLogWidgetClass(_model);
  1285. return Builder(
  1286. builder: (context) {
  1287. final rechtItem =
  1288. listViewMijnStadsrechtenResponse
  1289. .jsonBody
  1290. .toList();
  1291. _model.debugGeneratorVariables[
  1292. 'rechtItem${rechtItem.length > 100 ? ' (first 100)' : ''}'] =
  1293. debugSerializeParam(
  1294. rechtItem.take(100),
  1295. ParamType.JSON,
  1296. isList: true,
  1297. link:
  1298. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=mijnProfielCopy',
  1299. name: 'dynamic',
  1300. nullable: false,
  1301. );
  1302. debugLogWidgetClass(_model);
  1303. return ListView.builder(
  1304. padding: EdgeInsets.zero,
  1305. shrinkWrap: true,
  1306. scrollDirection: Axis.vertical,
  1307. itemCount: rechtItem.length,
  1308. itemBuilder:
  1309. (context, rechtItemIndex) {
  1310. final rechtItemItem =
  1311. rechtItem[rechtItemIndex];
  1312. return Padding(
  1313. padding: EdgeInsets.all(12.0),
  1314. child: Container(
  1315. decoration: BoxDecoration(
  1316. color: FlutterFlowTheme.of(
  1317. context)
  1318. .secondaryBackground,
  1319. borderRadius:
  1320. BorderRadius.circular(
  1321. 8.0),
  1322. ),
  1323. child: Column(
  1324. mainAxisSize:
  1325. MainAxisSize.max,
  1326. crossAxisAlignment:
  1327. CrossAxisAlignment
  1328. .start,
  1329. children: [
  1330. Text(
  1331. '${getJsonField(
  1332. rechtItemItem,
  1333. r'''$.titel''',
  1334. ).toString()} — ${getJsonField(
  1335. rechtItemItem,
  1336. r'''$.parent_titel''',
  1337. ).toString()}',
  1338. style:
  1339. FlutterFlowTheme.of(
  1340. context)
  1341. .bodyMedium
  1342. .override(
  1343. font: GoogleFonts
  1344. .roboto(
  1345. fontWeight: FlutterFlowTheme.of(
  1346. context)
  1347. .bodyMedium
  1348. .fontWeight,
  1349. fontStyle: FlutterFlowTheme.of(
  1350. context)
  1351. .bodyMedium
  1352. .fontStyle,
  1353. ),
  1354. letterSpacing:
  1355. 0.0,
  1356. fontWeight: FlutterFlowTheme.of(
  1357. context)
  1358. .bodyMedium
  1359. .fontWeight,
  1360. fontStyle: FlutterFlowTheme.of(
  1361. context)
  1362. .bodyMedium
  1363. .fontStyle,
  1364. ),
  1365. ),
  1366. FFButtonWidget(
  1367. onPressed: () async {
  1368. context.pushNamed(
  1369. StadsactiviteitAanmakenWidget
  1370. .routeName,
  1371. queryParameters: {
  1372. 'gemeenteTid':
  1373. serializeParam(
  1374. getJsonField(
  1375. rechtItemItem,
  1376. r'''$.tid''',
  1377. ).toString(),
  1378. ParamType
  1379. .String,
  1380. ),
  1381. }.withoutNulls,
  1382. );
  1383. },
  1384. text:
  1385. FFLocalizations.of(
  1386. context)
  1387. .getText(
  1388. 'cgx5wrx2' /* + Activiteit aanmaken */,
  1389. ),
  1390. options:
  1391. FFButtonOptions(
  1392. width:
  1393. double.infinity,
  1394. height: 40.0,
  1395. padding:
  1396. EdgeInsetsDirectional
  1397. .fromSTEB(
  1398. 16.0,
  1399. 0.0,
  1400. 16.0,
  1401. 0.0),
  1402. iconPadding:
  1403. EdgeInsetsDirectional
  1404. .fromSTEB(
  1405. 0.0,
  1406. 0.0,
  1407. 0.0,
  1408. 0.0),
  1409. color: FlutterFlowTheme
  1410. .of(context)
  1411. .secondary,
  1412. textStyle:
  1413. FlutterFlowTheme.of(
  1414. context)
  1415. .titleSmall
  1416. .override(
  1417. font: GoogleFonts
  1418. .roboto(
  1419. fontWeight: FlutterFlowTheme.of(
  1420. context)
  1421. .titleSmall
  1422. .fontWeight,
  1423. fontStyle: FlutterFlowTheme.of(
  1424. context)
  1425. .titleSmall
  1426. .fontStyle,
  1427. ),
  1428. color: Colors
  1429. .white,
  1430. letterSpacing:
  1431. 0.0,
  1432. fontWeight: FlutterFlowTheme.of(
  1433. context)
  1434. .titleSmall
  1435. .fontWeight,
  1436. fontStyle: FlutterFlowTheme.of(
  1437. context)
  1438. .titleSmall
  1439. .fontStyle,
  1440. ),
  1441. elevation: 0.0,
  1442. borderRadius:
  1443. BorderRadius
  1444. .circular(
  1445. 8.0),
  1446. ),
  1447. ),
  1448. ],
  1449. ),
  1450. ),
  1451. );
  1452. },
  1453. );
  1454. },
  1455. );
  1456. },
  1457. ),
  1458. ],
  1459. ),
  1460. ),
  1461. SingleChildScrollView(
  1462. child: Column(
  1463. mainAxisSize: MainAxisSize.max,
  1464. children: [
  1465. Padding(
  1466. padding: EdgeInsets.all(16.0),
  1467. child: Text(
  1468. FFAppState().userName,
  1469. style: FlutterFlowTheme.of(context)
  1470. .bodyMedium
  1471. .override(
  1472. font: GoogleFonts.roboto(
  1473. fontWeight:
  1474. FlutterFlowTheme.of(context)
  1475. .bodyMedium
  1476. .fontWeight,
  1477. fontStyle:
  1478. FlutterFlowTheme.of(context)
  1479. .bodyMedium
  1480. .fontStyle,
  1481. ),
  1482. letterSpacing: 0.0,
  1483. fontWeight:
  1484. FlutterFlowTheme.of(context)
  1485. .bodyMedium
  1486. .fontWeight,
  1487. fontStyle:
  1488. FlutterFlowTheme.of(context)
  1489. .bodyMedium
  1490. .fontStyle,
  1491. ),
  1492. ),
  1493. ),
  1494. InkWell(
  1495. splashColor: Colors.transparent,
  1496. focusColor: Colors.transparent,
  1497. hoverColor: Colors.transparent,
  1498. highlightColor: Colors.transparent,
  1499. onTap: () async {
  1500. context.pushNamed(
  1501. WachtwoordVergetenWidget.routeName);
  1502. },
  1503. child: Material(
  1504. color: Colors.transparent,
  1505. child: ListTile(
  1506. title: Text(
  1507. FFLocalizations.of(context).getText(
  1508. '8q1jrs91' /* Wachtwoord wijzigen */,
  1509. ),
  1510. style: FlutterFlowTheme.of(context)
  1511. .titleLarge
  1512. .override(
  1513. font: GoogleFonts.roboto(
  1514. fontWeight:
  1515. FlutterFlowTheme.of(
  1516. context)
  1517. .titleLarge
  1518. .fontWeight,
  1519. fontStyle:
  1520. FlutterFlowTheme.of(
  1521. context)
  1522. .titleLarge
  1523. .fontStyle,
  1524. ),
  1525. letterSpacing: 0.0,
  1526. fontWeight:
  1527. FlutterFlowTheme.of(context)
  1528. .titleLarge
  1529. .fontWeight,
  1530. fontStyle:
  1531. FlutterFlowTheme.of(context)
  1532. .titleLarge
  1533. .fontStyle,
  1534. ),
  1535. ),
  1536. trailing: Icon(
  1537. Icons.arrow_forward_ios_rounded,
  1538. color: FlutterFlowTheme.of(context)
  1539. .secondaryText,
  1540. size: 24.0,
  1541. ),
  1542. tileColor: FlutterFlowTheme.of(context)
  1543. .secondaryBackground,
  1544. dense: false,
  1545. contentPadding:
  1546. EdgeInsetsDirectional.fromSTEB(
  1547. 12.0, 0.0, 12.0, 0.0),
  1548. shape: RoundedRectangleBorder(
  1549. borderRadius:
  1550. BorderRadius.circular(8.0),
  1551. ),
  1552. ),
  1553. ),
  1554. ),
  1555. InkWell(
  1556. splashColor: Colors.transparent,
  1557. focusColor: Colors.transparent,
  1558. hoverColor: Colors.transparent,
  1559. highlightColor: Colors.transparent,
  1560. onTap: () async {
  1561. await launchURL(
  1562. 'https://uitgaanskrant.com/nl/support/mobieleapp');
  1563. },
  1564. child: Material(
  1565. color: Colors.transparent,
  1566. child: ListTile(
  1567. title: Text(
  1568. FFLocalizations.of(context).getText(
  1569. '708qxgha' /* Account verwijderen */,
  1570. ),
  1571. style: FlutterFlowTheme.of(context)
  1572. .titleLarge
  1573. .override(
  1574. font: GoogleFonts.roboto(
  1575. fontWeight:
  1576. FlutterFlowTheme.of(
  1577. context)
  1578. .titleLarge
  1579. .fontWeight,
  1580. fontStyle:
  1581. FlutterFlowTheme.of(
  1582. context)
  1583. .titleLarge
  1584. .fontStyle,
  1585. ),
  1586. letterSpacing: 0.0,
  1587. fontWeight:
  1588. FlutterFlowTheme.of(context)
  1589. .titleLarge
  1590. .fontWeight,
  1591. fontStyle:
  1592. FlutterFlowTheme.of(context)
  1593. .titleLarge
  1594. .fontStyle,
  1595. ),
  1596. ),
  1597. trailing: Icon(
  1598. Icons.arrow_forward_ios_rounded,
  1599. color: FlutterFlowTheme.of(context)
  1600. .secondaryText,
  1601. size: 24.0,
  1602. ),
  1603. tileColor: FlutterFlowTheme.of(context)
  1604. .secondaryBackground,
  1605. dense: false,
  1606. contentPadding:
  1607. EdgeInsetsDirectional.fromSTEB(
  1608. 12.0, 0.0, 12.0, 0.0),
  1609. shape: RoundedRectangleBorder(
  1610. borderRadius:
  1611. BorderRadius.circular(8.0),
  1612. ),
  1613. ),
  1614. ),
  1615. ),
  1616. InkWell(
  1617. splashColor: Colors.transparent,
  1618. focusColor: Colors.transparent,
  1619. hoverColor: Colors.transparent,
  1620. highlightColor: Colors.transparent,
  1621. onTap: () async {
  1622. FFAppState().deleteUserToken();
  1623. FFAppState().userToken = '';
  1624. FFAppState().deleteUserSessionid();
  1625. FFAppState().userSessionid = '';
  1626. FFAppState().deleteUserSessionname();
  1627. FFAppState().userSessionname = '';
  1628. FFAppState().deleteUserName();
  1629. FFAppState().userName = '';
  1630. FFAppState().deleteUserUid();
  1631. FFAppState().userUid = 0;
  1632. FFAppState().deleteUserMail();
  1633. FFAppState().userMail = '';
  1634. safeSetState(() {});
  1635. context.goNamed(LoginWidget.routeName);
  1636. },
  1637. child: Material(
  1638. color: Colors.transparent,
  1639. child: ListTile(
  1640. title: Text(
  1641. FFLocalizations.of(context).getText(
  1642. 'ypv23f3y' /* Uitloggen */,
  1643. ),
  1644. style: FlutterFlowTheme.of(context)
  1645. .titleLarge
  1646. .override(
  1647. font: GoogleFonts.roboto(
  1648. fontWeight:
  1649. FlutterFlowTheme.of(
  1650. context)
  1651. .titleLarge
  1652. .fontWeight,
  1653. fontStyle:
  1654. FlutterFlowTheme.of(
  1655. context)
  1656. .titleLarge
  1657. .fontStyle,
  1658. ),
  1659. letterSpacing: 0.0,
  1660. fontWeight:
  1661. FlutterFlowTheme.of(context)
  1662. .titleLarge
  1663. .fontWeight,
  1664. fontStyle:
  1665. FlutterFlowTheme.of(context)
  1666. .titleLarge
  1667. .fontStyle,
  1668. ),
  1669. ),
  1670. trailing: Icon(
  1671. Icons.arrow_forward_ios_rounded,
  1672. color: FlutterFlowTheme.of(context)
  1673. .secondaryText,
  1674. size: 24.0,
  1675. ),
  1676. tileColor: FlutterFlowTheme.of(context)
  1677. .secondaryBackground,
  1678. dense: false,
  1679. contentPadding:
  1680. EdgeInsetsDirectional.fromSTEB(
  1681. 12.0, 0.0, 12.0, 0.0),
  1682. shape: RoundedRectangleBorder(
  1683. borderRadius:
  1684. BorderRadius.circular(8.0),
  1685. ),
  1686. ),
  1687. ),
  1688. ),
  1689. ],
  1690. ),
  1691. ),
  1692. ],
  1693. ),
  1694. ),
  1695. ],
  1696. ),
  1697. ),
  1698. ],
  1699. ),
  1700. ),
  1701. ),
  1702. ),
  1703. );
  1704. }
  1705. }