favorieten_widget.dart 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. import '/flutter_flow/flutter_flow_theme.dart';
  2. import '/flutter_flow/flutter_flow_util.dart';
  3. import '/flutter_flow/flutter_flow_widgets.dart';
  4. import 'dart:ui';
  5. import 'package:flutter/material.dart';
  6. import 'package:flutter_spinkit/flutter_spinkit.dart';
  7. import 'package:google_fonts/google_fonts.dart';
  8. import 'package:provider/provider.dart';
  9. import 'favorieten_model.dart';
  10. export 'favorieten_model.dart';
  11. class FavorietenWidget extends StatefulWidget {
  12. const FavorietenWidget({super.key});
  13. static String routeName = 'favorieten';
  14. static String routePath = '/favorieten';
  15. @override
  16. State<FavorietenWidget> createState() => _FavorietenWidgetState();
  17. }
  18. class _FavorietenWidgetState extends State<FavorietenWidget>
  19. with TickerProviderStateMixin, RouteAware {
  20. late FavorietenModel _model;
  21. final scaffoldKey = GlobalKey<ScaffoldState>();
  22. @override
  23. void initState() {
  24. super.initState();
  25. _model = createModel(context, () => FavorietenModel());
  26. _model.tabBarController = TabController(
  27. vsync: this,
  28. length: 3,
  29. initialIndex: 0,
  30. )
  31. ..addListener(() => safeSetState(() {}))
  32. ..addListener(() {
  33. debugLogWidgetClass(_model);
  34. });
  35. }
  36. @override
  37. void dispose() {
  38. routeObserver.unsubscribe(this);
  39. _model.dispose();
  40. super.dispose();
  41. }
  42. @override
  43. void didUpdateWidget(FavorietenWidget oldWidget) {
  44. super.didUpdateWidget(oldWidget);
  45. _model.widget = widget;
  46. }
  47. @override
  48. void didChangeDependencies() {
  49. super.didChangeDependencies();
  50. final route = DebugModalRoute.of(context);
  51. if (route != null) {
  52. routeObserver.subscribe(this, route);
  53. }
  54. debugLogGlobalProperty(context);
  55. }
  56. @override
  57. void didPopNext() {
  58. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  59. setState(() => _model.isRouteVisible = true);
  60. debugLogWidgetClass(_model);
  61. }
  62. }
  63. @override
  64. void didPush() {
  65. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  66. setState(() => _model.isRouteVisible = true);
  67. debugLogWidgetClass(_model);
  68. }
  69. }
  70. @override
  71. void didPop() {
  72. _model.isRouteVisible = false;
  73. }
  74. @override
  75. void didPushNext() {
  76. _model.isRouteVisible = false;
  77. }
  78. @override
  79. Widget build(BuildContext context) {
  80. DebugFlutterFlowModelContext.maybeOf(context)
  81. ?.parentModelCallback
  82. ?.call(_model);
  83. return GestureDetector(
  84. onTap: () {
  85. FocusScope.of(context).unfocus();
  86. FocusManager.instance.primaryFocus?.unfocus();
  87. },
  88. child: Scaffold(
  89. key: scaffoldKey,
  90. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  91. body: SafeArea(
  92. top: true,
  93. child: Column(
  94. mainAxisSize: MainAxisSize.max,
  95. children: [
  96. Expanded(
  97. child: Column(
  98. children: [
  99. Align(
  100. alignment: Alignment(0.0, 0),
  101. child: TabBar(
  102. labelColor: FlutterFlowTheme.of(context).primaryText,
  103. unselectedLabelColor:
  104. FlutterFlowTheme.of(context).secondaryText,
  105. labelStyle:
  106. FlutterFlowTheme.of(context).titleMedium.override(
  107. font: GoogleFonts.interTight(
  108. fontWeight: FlutterFlowTheme.of(context)
  109. .titleMedium
  110. .fontWeight,
  111. fontStyle: FlutterFlowTheme.of(context)
  112. .titleMedium
  113. .fontStyle,
  114. ),
  115. letterSpacing: 0.0,
  116. fontWeight: FlutterFlowTheme.of(context)
  117. .titleMedium
  118. .fontWeight,
  119. fontStyle: FlutterFlowTheme.of(context)
  120. .titleMedium
  121. .fontStyle,
  122. ),
  123. unselectedLabelStyle:
  124. FlutterFlowTheme.of(context).titleMedium.override(
  125. font: GoogleFonts.interTight(
  126. fontWeight: FlutterFlowTheme.of(context)
  127. .titleMedium
  128. .fontWeight,
  129. fontStyle: FlutterFlowTheme.of(context)
  130. .titleMedium
  131. .fontStyle,
  132. ),
  133. letterSpacing: 0.0,
  134. fontWeight: FlutterFlowTheme.of(context)
  135. .titleMedium
  136. .fontWeight,
  137. fontStyle: FlutterFlowTheme.of(context)
  138. .titleMedium
  139. .fontStyle,
  140. ),
  141. indicatorColor: FlutterFlowTheme.of(context).primary,
  142. tabs: [
  143. Tab(
  144. text: FFLocalizations.of(context).getText(
  145. 'txq7zl0f' /* Persoonlijke agenda */,
  146. ),
  147. ),
  148. Tab(
  149. text: FFLocalizations.of(context).getText(
  150. '9wq117bv' /* Favoriete gemeenten */,
  151. ),
  152. ),
  153. Tab(
  154. text: FFLocalizations.of(context).getText(
  155. 'ygk8aifq' /* Favoriete Gelegenheden */,
  156. ),
  157. ),
  158. ],
  159. controller: _model.tabBarController,
  160. onTap: (i) async {
  161. [() async {}, () async {}, () async {}][i]();
  162. },
  163. ),
  164. ),
  165. Expanded(
  166. child: TabBarView(
  167. controller: _model.tabBarController,
  168. children: [
  169. Column(
  170. mainAxisSize: MainAxisSize.max,
  171. children: [
  172. Text(
  173. FFLocalizations.of(context).getText(
  174. '1y5w12fr' /* Je persoonlijke agenda met eve... */,
  175. ),
  176. style: FlutterFlowTheme.of(context)
  177. .bodyMedium
  178. .override(
  179. font: GoogleFonts.inter(
  180. fontWeight: FlutterFlowTheme.of(context)
  181. .bodyMedium
  182. .fontWeight,
  183. fontStyle: FlutterFlowTheme.of(context)
  184. .bodyMedium
  185. .fontStyle,
  186. ),
  187. letterSpacing: 0.0,
  188. fontWeight: FlutterFlowTheme.of(context)
  189. .bodyMedium
  190. .fontWeight,
  191. fontStyle: FlutterFlowTheme.of(context)
  192. .bodyMedium
  193. .fontStyle,
  194. ),
  195. ),
  196. ],
  197. ),
  198. Column(
  199. mainAxisSize: MainAxisSize.max,
  200. children: [
  201. Text(
  202. FFLocalizations.of(context).getText(
  203. 'o7pt2vls' /* De gemeentes die je hebt gemar... */,
  204. ),
  205. style: FlutterFlowTheme.of(context)
  206. .bodyMedium
  207. .override(
  208. font: GoogleFonts.inter(
  209. fontWeight: FlutterFlowTheme.of(context)
  210. .bodyMedium
  211. .fontWeight,
  212. fontStyle: FlutterFlowTheme.of(context)
  213. .bodyMedium
  214. .fontStyle,
  215. ),
  216. letterSpacing: 0.0,
  217. fontWeight: FlutterFlowTheme.of(context)
  218. .bodyMedium
  219. .fontWeight,
  220. fontStyle: FlutterFlowTheme.of(context)
  221. .bodyMedium
  222. .fontStyle,
  223. ),
  224. ),
  225. ],
  226. ),
  227. Column(
  228. mainAxisSize: MainAxisSize.max,
  229. children: [
  230. Text(
  231. FFLocalizations.of(context).getText(
  232. 'gyuds6ee' /* Hello World */,
  233. ),
  234. style: FlutterFlowTheme.of(context)
  235. .bodyMedium
  236. .override(
  237. font: GoogleFonts.inter(
  238. fontWeight: FlutterFlowTheme.of(context)
  239. .bodyMedium
  240. .fontWeight,
  241. fontStyle: FlutterFlowTheme.of(context)
  242. .bodyMedium
  243. .fontStyle,
  244. ),
  245. letterSpacing: 0.0,
  246. fontWeight: FlutterFlowTheme.of(context)
  247. .bodyMedium
  248. .fontWeight,
  249. fontStyle: FlutterFlowTheme.of(context)
  250. .bodyMedium
  251. .fontStyle,
  252. ),
  253. ),
  254. ],
  255. ),
  256. ],
  257. ),
  258. ),
  259. ],
  260. ),
  261. ),
  262. ],
  263. ),
  264. ),
  265. ),
  266. );
  267. }
  268. }