stadsactiviteit_aanmaken_widget.dart 136 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754
  1. import '/backend/api_requests/api_calls.dart';
  2. import '/flutter_flow/flutter_flow_drop_down.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 '/flutter_flow/form_field_controller.dart';
  7. import '/flutter_flow/upload_data.dart';
  8. import 'dart:ui';
  9. import '/backend/schema/structs/index.dart';
  10. import '/custom_code/actions/index.dart' as actions;
  11. import '/flutter_flow/custom_functions.dart' as functions;
  12. import 'package:flutter/foundation.dart';
  13. import 'package:flutter/material.dart';
  14. import 'package:flutter_spinkit/flutter_spinkit.dart';
  15. import 'package:google_fonts/google_fonts.dart';
  16. import 'package:provider/provider.dart';
  17. import 'stadsactiviteit_aanmaken_model.dart';
  18. export 'stadsactiviteit_aanmaken_model.dart';
  19. class StadsactiviteitAanmakenWidget extends StatefulWidget {
  20. const StadsactiviteitAanmakenWidget({super.key});
  21. static String routeName = 'stadsactiviteitAanmaken';
  22. static String routePath = '/stadsactiviteitAanmaken';
  23. @override
  24. State<StadsactiviteitAanmakenWidget> createState() =>
  25. _StadsactiviteitAanmakenWidgetState();
  26. }
  27. class _StadsactiviteitAanmakenWidgetState
  28. extends State<StadsactiviteitAanmakenWidget> with RouteAware {
  29. late StadsactiviteitAanmakenModel _model;
  30. final scaffoldKey = GlobalKey<ScaffoldState>();
  31. @override
  32. void initState() {
  33. super.initState();
  34. _model = createModel(context, () => StadsactiviteitAanmakenModel());
  35. _model.textFieldTitelTextController ??= TextEditingController()
  36. ..addListener(() {
  37. debugLogWidgetClass(_model);
  38. });
  39. _model.textFieldTitelFocusNode ??= FocusNode();
  40. _model.textFieldDatumStartTextController ??= TextEditingController()
  41. ..addListener(() {
  42. debugLogWidgetClass(_model);
  43. });
  44. _model.textFieldDatumStartFocusNode ??= FocusNode();
  45. _model.textFieldDatumEindTextController ??= TextEditingController()
  46. ..addListener(() {
  47. debugLogWidgetClass(_model);
  48. });
  49. _model.textFieldDatumEindFocusNode ??= FocusNode();
  50. _model.textFieldOmschrijvingTextController ??= TextEditingController()
  51. ..addListener(() {
  52. debugLogWidgetClass(_model);
  53. });
  54. _model.textFieldOmschrijvingFocusNode ??= FocusNode();
  55. _model.textFieldOrganisatorTextController ??= TextEditingController()
  56. ..addListener(() {
  57. debugLogWidgetClass(_model);
  58. });
  59. _model.textFieldOrganisatorFocusNode ??= FocusNode();
  60. _model.textFieldContactTextController ??= TextEditingController()
  61. ..addListener(() {
  62. debugLogWidgetClass(_model);
  63. });
  64. _model.textFieldContactFocusNode ??= FocusNode();
  65. _model.textFieldAdresTextController ??= TextEditingController()
  66. ..addListener(() {
  67. debugLogWidgetClass(_model);
  68. });
  69. _model.textFieldAdresFocusNode ??= FocusNode();
  70. _model.textFieldPostcodeTextController ??= TextEditingController()
  71. ..addListener(() {
  72. debugLogWidgetClass(_model);
  73. });
  74. _model.textFieldPostcodeFocusNode ??= FocusNode();
  75. _model.textFieldPlaatsTextController ??= TextEditingController()
  76. ..addListener(() {
  77. debugLogWidgetClass(_model);
  78. });
  79. _model.textFieldPlaatsFocusNode ??= FocusNode();
  80. _model.textFieldEntreeprijsTextController ??= TextEditingController()
  81. ..addListener(() {
  82. debugLogWidgetClass(_model);
  83. });
  84. _model.textFieldEntreeprijsFocusNode ??= FocusNode();
  85. _model.textFieldToelichtingEntreeTextController ??= TextEditingController()
  86. ..addListener(() {
  87. debugLogWidgetClass(_model);
  88. });
  89. _model.textFieldToelichtingEntreeFocusNode ??= FocusNode();
  90. _model.textFieldWebsiteURLTextController ??= TextEditingController()
  91. ..addListener(() {
  92. debugLogWidgetClass(_model);
  93. });
  94. _model.textFieldWebsiteURLFocusNode ??= FocusNode();
  95. }
  96. @override
  97. void dispose() {
  98. routeObserver.unsubscribe(this);
  99. _model.dispose();
  100. super.dispose();
  101. }
  102. @override
  103. void didUpdateWidget(StadsactiviteitAanmakenWidget oldWidget) {
  104. super.didUpdateWidget(oldWidget);
  105. _model.widget = widget;
  106. }
  107. @override
  108. void didChangeDependencies() {
  109. super.didChangeDependencies();
  110. final route = DebugModalRoute.of(context);
  111. if (route != null) {
  112. routeObserver.subscribe(this, route);
  113. }
  114. debugLogGlobalProperty(context);
  115. }
  116. @override
  117. void didPopNext() {
  118. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  119. setState(() => _model.isRouteVisible = true);
  120. debugLogWidgetClass(_model);
  121. }
  122. }
  123. @override
  124. void didPush() {
  125. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  126. setState(() => _model.isRouteVisible = true);
  127. debugLogWidgetClass(_model);
  128. }
  129. }
  130. @override
  131. void didPop() {
  132. _model.isRouteVisible = false;
  133. }
  134. @override
  135. void didPushNext() {
  136. _model.isRouteVisible = false;
  137. }
  138. @override
  139. Widget build(BuildContext context) {
  140. DebugFlutterFlowModelContext.maybeOf(context)
  141. ?.parentModelCallback
  142. ?.call(_model);
  143. context.watch<FFAppState>();
  144. return GestureDetector(
  145. onTap: () {
  146. FocusScope.of(context).unfocus();
  147. FocusManager.instance.primaryFocus?.unfocus();
  148. },
  149. child: Scaffold(
  150. key: scaffoldKey,
  151. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  152. appBar: AppBar(
  153. backgroundColor: FlutterFlowTheme.of(context).primary,
  154. automaticallyImplyLeading: true,
  155. actions: [],
  156. centerTitle: true,
  157. elevation: 0.0,
  158. ),
  159. body: SafeArea(
  160. top: true,
  161. child: Padding(
  162. padding: EdgeInsets.all(16.0),
  163. child: SingleChildScrollView(
  164. child: Column(
  165. mainAxisSize: MainAxisSize.max,
  166. children: [
  167. Container(
  168. width: 200.0,
  169. child: TextFormField(
  170. controller: _model.textFieldTitelTextController,
  171. focusNode: _model.textFieldTitelFocusNode,
  172. autofocus: false,
  173. enabled: true,
  174. obscureText: false,
  175. decoration: InputDecoration(
  176. isDense: true,
  177. labelText: FFLocalizations.of(context).getText(
  178. 'xorq08j5' /* Titel */,
  179. ),
  180. labelStyle:
  181. FlutterFlowTheme.of(context).labelMedium.override(
  182. font: GoogleFonts.roboto(
  183. fontWeight: FlutterFlowTheme.of(context)
  184. .labelMedium
  185. .fontWeight,
  186. fontStyle: FlutterFlowTheme.of(context)
  187. .labelMedium
  188. .fontStyle,
  189. ),
  190. letterSpacing: 0.0,
  191. fontWeight: FlutterFlowTheme.of(context)
  192. .labelMedium
  193. .fontWeight,
  194. fontStyle: FlutterFlowTheme.of(context)
  195. .labelMedium
  196. .fontStyle,
  197. ),
  198. hintText: FFLocalizations.of(context).getText(
  199. 'jwgx4el8' /* Titel activiteit */,
  200. ),
  201. hintStyle:
  202. FlutterFlowTheme.of(context).labelMedium.override(
  203. font: GoogleFonts.roboto(
  204. fontWeight: FlutterFlowTheme.of(context)
  205. .labelMedium
  206. .fontWeight,
  207. fontStyle: FlutterFlowTheme.of(context)
  208. .labelMedium
  209. .fontStyle,
  210. ),
  211. letterSpacing: 0.0,
  212. fontWeight: FlutterFlowTheme.of(context)
  213. .labelMedium
  214. .fontWeight,
  215. fontStyle: FlutterFlowTheme.of(context)
  216. .labelMedium
  217. .fontStyle,
  218. ),
  219. enabledBorder: OutlineInputBorder(
  220. borderSide: BorderSide(
  221. color: Color(0x00000000),
  222. width: 1.0,
  223. ),
  224. borderRadius: BorderRadius.circular(8.0),
  225. ),
  226. focusedBorder: OutlineInputBorder(
  227. borderSide: BorderSide(
  228. color: Color(0x00000000),
  229. width: 1.0,
  230. ),
  231. borderRadius: BorderRadius.circular(8.0),
  232. ),
  233. errorBorder: OutlineInputBorder(
  234. borderSide: BorderSide(
  235. color: FlutterFlowTheme.of(context).error,
  236. width: 1.0,
  237. ),
  238. borderRadius: BorderRadius.circular(8.0),
  239. ),
  240. focusedErrorBorder: OutlineInputBorder(
  241. borderSide: BorderSide(
  242. color: FlutterFlowTheme.of(context).error,
  243. width: 1.0,
  244. ),
  245. borderRadius: BorderRadius.circular(8.0),
  246. ),
  247. filled: true,
  248. fillColor:
  249. FlutterFlowTheme.of(context).secondaryBackground,
  250. ),
  251. style: FlutterFlowTheme.of(context).bodyMedium.override(
  252. font: GoogleFonts.roboto(
  253. fontWeight: FlutterFlowTheme.of(context)
  254. .bodyMedium
  255. .fontWeight,
  256. fontStyle: FlutterFlowTheme.of(context)
  257. .bodyMedium
  258. .fontStyle,
  259. ),
  260. letterSpacing: 0.0,
  261. fontWeight: FlutterFlowTheme.of(context)
  262. .bodyMedium
  263. .fontWeight,
  264. fontStyle: FlutterFlowTheme.of(context)
  265. .bodyMedium
  266. .fontStyle,
  267. ),
  268. cursorColor: FlutterFlowTheme.of(context).primaryText,
  269. enableInteractiveSelection: true,
  270. validator: _model.textFieldTitelTextControllerValidator
  271. .asValidator(context),
  272. ),
  273. ),
  274. InkWell(
  275. splashColor: Colors.transparent,
  276. focusColor: Colors.transparent,
  277. hoverColor: Colors.transparent,
  278. highlightColor: Colors.transparent,
  279. onTap: () async {
  280. final _datePicked1Date = await showDatePicker(
  281. context: context,
  282. initialDate: getCurrentTimestamp,
  283. firstDate: getCurrentTimestamp,
  284. lastDate: DateTime(2050),
  285. builder: (context, child) {
  286. return wrapInMaterialDatePickerTheme(
  287. context,
  288. child!,
  289. headerBackgroundColor:
  290. FlutterFlowTheme.of(context).primary,
  291. headerForegroundColor:
  292. FlutterFlowTheme.of(context).info,
  293. headerTextStyle: FlutterFlowTheme.of(context)
  294. .headlineLarge
  295. .override(
  296. font: GoogleFonts.roboto(
  297. fontWeight: FontWeight.w600,
  298. fontStyle: FlutterFlowTheme.of(context)
  299. .headlineLarge
  300. .fontStyle,
  301. ),
  302. fontSize: 32.0,
  303. letterSpacing: 0.0,
  304. fontWeight: FontWeight.w600,
  305. fontStyle: FlutterFlowTheme.of(context)
  306. .headlineLarge
  307. .fontStyle,
  308. ),
  309. pickerBackgroundColor: FlutterFlowTheme.of(context)
  310. .secondaryBackground,
  311. pickerForegroundColor:
  312. FlutterFlowTheme.of(context).primaryText,
  313. selectedDateTimeBackgroundColor:
  314. FlutterFlowTheme.of(context).primary,
  315. selectedDateTimeForegroundColor:
  316. FlutterFlowTheme.of(context).info,
  317. actionButtonForegroundColor:
  318. FlutterFlowTheme.of(context).primaryText,
  319. iconSize: 24.0,
  320. );
  321. },
  322. );
  323. TimeOfDay? _datePicked1Time;
  324. if (_datePicked1Date != null) {
  325. _datePicked1Time = await showTimePicker(
  326. context: context,
  327. initialTime:
  328. TimeOfDay.fromDateTime(getCurrentTimestamp),
  329. builder: (context, child) {
  330. return wrapInMaterialTimePickerTheme(
  331. context,
  332. child!,
  333. headerBackgroundColor:
  334. FlutterFlowTheme.of(context).primary,
  335. headerForegroundColor:
  336. FlutterFlowTheme.of(context).info,
  337. headerTextStyle: FlutterFlowTheme.of(context)
  338. .headlineLarge
  339. .override(
  340. font: GoogleFonts.roboto(
  341. fontWeight: FontWeight.w600,
  342. fontStyle: FlutterFlowTheme.of(context)
  343. .headlineLarge
  344. .fontStyle,
  345. ),
  346. fontSize: 32.0,
  347. letterSpacing: 0.0,
  348. fontWeight: FontWeight.w600,
  349. fontStyle: FlutterFlowTheme.of(context)
  350. .headlineLarge
  351. .fontStyle,
  352. ),
  353. pickerBackgroundColor:
  354. FlutterFlowTheme.of(context)
  355. .secondaryBackground,
  356. pickerForegroundColor:
  357. FlutterFlowTheme.of(context).primaryText,
  358. selectedDateTimeBackgroundColor:
  359. FlutterFlowTheme.of(context).primary,
  360. selectedDateTimeForegroundColor:
  361. FlutterFlowTheme.of(context).info,
  362. actionButtonForegroundColor:
  363. FlutterFlowTheme.of(context).primaryText,
  364. iconSize: 24.0,
  365. );
  366. },
  367. );
  368. }
  369. if (_datePicked1Date != null &&
  370. _datePicked1Time != null) {
  371. safeSetState(() {
  372. _model.datePicked1 = DateTime(
  373. _datePicked1Date.year,
  374. _datePicked1Date.month,
  375. _datePicked1Date.day,
  376. _datePicked1Time!.hour,
  377. _datePicked1Time.minute,
  378. );
  379. });
  380. } else if (_model.datePicked1 != null) {
  381. safeSetState(() {
  382. _model.datePicked1 = getCurrentTimestamp;
  383. });
  384. }
  385. safeSetState(() {
  386. _model.textFieldDatumStartTextController?.text =
  387. _model.datePicked1!.toString();
  388. });
  389. },
  390. child: Container(
  391. width: double.infinity,
  392. decoration: BoxDecoration(),
  393. child: Container(
  394. width: double.infinity,
  395. child: TextFormField(
  396. controller: _model.textFieldDatumStartTextController,
  397. focusNode: _model.textFieldDatumStartFocusNode,
  398. autofocus: false,
  399. enabled: false,
  400. readOnly: true,
  401. obscureText: false,
  402. decoration: InputDecoration(
  403. isDense: true,
  404. labelText: FFLocalizations.of(context).getText(
  405. 'dfa8vusy' /* Datum */,
  406. ),
  407. labelStyle: FlutterFlowTheme.of(context)
  408. .labelMedium
  409. .override(
  410. font: GoogleFonts.roboto(
  411. fontWeight: FlutterFlowTheme.of(context)
  412. .labelMedium
  413. .fontWeight,
  414. fontStyle: FlutterFlowTheme.of(context)
  415. .labelMedium
  416. .fontStyle,
  417. ),
  418. letterSpacing: 0.0,
  419. fontWeight: FlutterFlowTheme.of(context)
  420. .labelMedium
  421. .fontWeight,
  422. fontStyle: FlutterFlowTheme.of(context)
  423. .labelMedium
  424. .fontStyle,
  425. ),
  426. hintText: FFLocalizations.of(context).getText(
  427. '7vogkwoh' /* Datum */,
  428. ),
  429. hintStyle: FlutterFlowTheme.of(context)
  430. .labelMedium
  431. .override(
  432. font: GoogleFonts.roboto(
  433. fontWeight: FlutterFlowTheme.of(context)
  434. .labelMedium
  435. .fontWeight,
  436. fontStyle: FlutterFlowTheme.of(context)
  437. .labelMedium
  438. .fontStyle,
  439. ),
  440. letterSpacing: 0.0,
  441. fontWeight: FlutterFlowTheme.of(context)
  442. .labelMedium
  443. .fontWeight,
  444. fontStyle: FlutterFlowTheme.of(context)
  445. .labelMedium
  446. .fontStyle,
  447. ),
  448. enabledBorder: OutlineInputBorder(
  449. borderSide: BorderSide(
  450. color: Color(0x00000000),
  451. width: 1.0,
  452. ),
  453. borderRadius: BorderRadius.circular(8.0),
  454. ),
  455. focusedBorder: OutlineInputBorder(
  456. borderSide: BorderSide(
  457. color: Color(0x00000000),
  458. width: 1.0,
  459. ),
  460. borderRadius: BorderRadius.circular(8.0),
  461. ),
  462. errorBorder: OutlineInputBorder(
  463. borderSide: BorderSide(
  464. color: FlutterFlowTheme.of(context).error,
  465. width: 1.0,
  466. ),
  467. borderRadius: BorderRadius.circular(8.0),
  468. ),
  469. focusedErrorBorder: OutlineInputBorder(
  470. borderSide: BorderSide(
  471. color: FlutterFlowTheme.of(context).error,
  472. width: 1.0,
  473. ),
  474. borderRadius: BorderRadius.circular(8.0),
  475. ),
  476. filled: true,
  477. fillColor: FlutterFlowTheme.of(context)
  478. .secondaryBackground,
  479. ),
  480. style:
  481. FlutterFlowTheme.of(context).bodyMedium.override(
  482. font: GoogleFonts.roboto(
  483. fontWeight: FlutterFlowTheme.of(context)
  484. .bodyMedium
  485. .fontWeight,
  486. fontStyle: FlutterFlowTheme.of(context)
  487. .bodyMedium
  488. .fontStyle,
  489. ),
  490. letterSpacing: 0.0,
  491. fontWeight: FlutterFlowTheme.of(context)
  492. .bodyMedium
  493. .fontWeight,
  494. fontStyle: FlutterFlowTheme.of(context)
  495. .bodyMedium
  496. .fontStyle,
  497. ),
  498. cursorColor: FlutterFlowTheme.of(context).primaryText,
  499. enableInteractiveSelection: true,
  500. validator: _model
  501. .textFieldDatumStartTextControllerValidator
  502. .asValidator(context),
  503. ),
  504. ),
  505. ),
  506. ),
  507. InkWell(
  508. splashColor: Colors.transparent,
  509. focusColor: Colors.transparent,
  510. hoverColor: Colors.transparent,
  511. highlightColor: Colors.transparent,
  512. onTap: () async {
  513. final _datePicked2Date = await showDatePicker(
  514. context: context,
  515. initialDate: getCurrentTimestamp,
  516. firstDate: getCurrentTimestamp,
  517. lastDate: DateTime(2050),
  518. builder: (context, child) {
  519. return wrapInMaterialDatePickerTheme(
  520. context,
  521. child!,
  522. headerBackgroundColor:
  523. FlutterFlowTheme.of(context).primary,
  524. headerForegroundColor:
  525. FlutterFlowTheme.of(context).info,
  526. headerTextStyle: FlutterFlowTheme.of(context)
  527. .headlineLarge
  528. .override(
  529. font: GoogleFonts.roboto(
  530. fontWeight: FontWeight.w600,
  531. fontStyle: FlutterFlowTheme.of(context)
  532. .headlineLarge
  533. .fontStyle,
  534. ),
  535. fontSize: 32.0,
  536. letterSpacing: 0.0,
  537. fontWeight: FontWeight.w600,
  538. fontStyle: FlutterFlowTheme.of(context)
  539. .headlineLarge
  540. .fontStyle,
  541. ),
  542. pickerBackgroundColor: FlutterFlowTheme.of(context)
  543. .secondaryBackground,
  544. pickerForegroundColor:
  545. FlutterFlowTheme.of(context).primaryText,
  546. selectedDateTimeBackgroundColor:
  547. FlutterFlowTheme.of(context).primary,
  548. selectedDateTimeForegroundColor:
  549. FlutterFlowTheme.of(context).info,
  550. actionButtonForegroundColor:
  551. FlutterFlowTheme.of(context).primaryText,
  552. iconSize: 24.0,
  553. );
  554. },
  555. );
  556. TimeOfDay? _datePicked2Time;
  557. if (_datePicked2Date != null) {
  558. _datePicked2Time = await showTimePicker(
  559. context: context,
  560. initialTime:
  561. TimeOfDay.fromDateTime(getCurrentTimestamp),
  562. builder: (context, child) {
  563. return wrapInMaterialTimePickerTheme(
  564. context,
  565. child!,
  566. headerBackgroundColor:
  567. FlutterFlowTheme.of(context).primary,
  568. headerForegroundColor:
  569. FlutterFlowTheme.of(context).info,
  570. headerTextStyle: FlutterFlowTheme.of(context)
  571. .headlineLarge
  572. .override(
  573. font: GoogleFonts.roboto(
  574. fontWeight: FontWeight.w600,
  575. fontStyle: FlutterFlowTheme.of(context)
  576. .headlineLarge
  577. .fontStyle,
  578. ),
  579. fontSize: 32.0,
  580. letterSpacing: 0.0,
  581. fontWeight: FontWeight.w600,
  582. fontStyle: FlutterFlowTheme.of(context)
  583. .headlineLarge
  584. .fontStyle,
  585. ),
  586. pickerBackgroundColor:
  587. FlutterFlowTheme.of(context)
  588. .secondaryBackground,
  589. pickerForegroundColor:
  590. FlutterFlowTheme.of(context).primaryText,
  591. selectedDateTimeBackgroundColor:
  592. FlutterFlowTheme.of(context).primary,
  593. selectedDateTimeForegroundColor:
  594. FlutterFlowTheme.of(context).info,
  595. actionButtonForegroundColor:
  596. FlutterFlowTheme.of(context).primaryText,
  597. iconSize: 24.0,
  598. );
  599. },
  600. );
  601. }
  602. if (_datePicked2Date != null &&
  603. _datePicked2Time != null) {
  604. safeSetState(() {
  605. _model.datePicked2 = DateTime(
  606. _datePicked2Date.year,
  607. _datePicked2Date.month,
  608. _datePicked2Date.day,
  609. _datePicked2Time!.hour,
  610. _datePicked2Time.minute,
  611. );
  612. });
  613. } else if (_model.datePicked2 != null) {
  614. safeSetState(() {
  615. _model.datePicked2 = getCurrentTimestamp;
  616. });
  617. }
  618. safeSetState(() {
  619. _model.textFieldDatumEindTextController?.text =
  620. _model.datePicked2!.toString();
  621. });
  622. },
  623. child: Container(
  624. width: double.infinity,
  625. decoration: BoxDecoration(),
  626. child: Container(
  627. width: double.infinity,
  628. child: TextFormField(
  629. controller: _model.textFieldDatumEindTextController,
  630. focusNode: _model.textFieldDatumEindFocusNode,
  631. autofocus: false,
  632. enabled: false,
  633. readOnly: true,
  634. obscureText: false,
  635. decoration: InputDecoration(
  636. isDense: true,
  637. labelText: FFLocalizations.of(context).getText(
  638. '71z3uvd8' /* Datum eind */,
  639. ),
  640. labelStyle: FlutterFlowTheme.of(context)
  641. .labelMedium
  642. .override(
  643. font: GoogleFonts.roboto(
  644. fontWeight: FlutterFlowTheme.of(context)
  645. .labelMedium
  646. .fontWeight,
  647. fontStyle: FlutterFlowTheme.of(context)
  648. .labelMedium
  649. .fontStyle,
  650. ),
  651. letterSpacing: 0.0,
  652. fontWeight: FlutterFlowTheme.of(context)
  653. .labelMedium
  654. .fontWeight,
  655. fontStyle: FlutterFlowTheme.of(context)
  656. .labelMedium
  657. .fontStyle,
  658. ),
  659. hintText: FFLocalizations.of(context).getText(
  660. '1k52hayg' /* Datum eind */,
  661. ),
  662. hintStyle: FlutterFlowTheme.of(context)
  663. .labelMedium
  664. .override(
  665. font: GoogleFonts.roboto(
  666. fontWeight: FlutterFlowTheme.of(context)
  667. .labelMedium
  668. .fontWeight,
  669. fontStyle: FlutterFlowTheme.of(context)
  670. .labelMedium
  671. .fontStyle,
  672. ),
  673. letterSpacing: 0.0,
  674. fontWeight: FlutterFlowTheme.of(context)
  675. .labelMedium
  676. .fontWeight,
  677. fontStyle: FlutterFlowTheme.of(context)
  678. .labelMedium
  679. .fontStyle,
  680. ),
  681. enabledBorder: OutlineInputBorder(
  682. borderSide: BorderSide(
  683. color: Color(0x00000000),
  684. width: 1.0,
  685. ),
  686. borderRadius: BorderRadius.circular(8.0),
  687. ),
  688. focusedBorder: OutlineInputBorder(
  689. borderSide: BorderSide(
  690. color: Color(0x00000000),
  691. width: 1.0,
  692. ),
  693. borderRadius: BorderRadius.circular(8.0),
  694. ),
  695. errorBorder: OutlineInputBorder(
  696. borderSide: BorderSide(
  697. color: FlutterFlowTheme.of(context).error,
  698. width: 1.0,
  699. ),
  700. borderRadius: BorderRadius.circular(8.0),
  701. ),
  702. focusedErrorBorder: OutlineInputBorder(
  703. borderSide: BorderSide(
  704. color: FlutterFlowTheme.of(context).error,
  705. width: 1.0,
  706. ),
  707. borderRadius: BorderRadius.circular(8.0),
  708. ),
  709. filled: true,
  710. fillColor: FlutterFlowTheme.of(context)
  711. .secondaryBackground,
  712. ),
  713. style:
  714. FlutterFlowTheme.of(context).bodyMedium.override(
  715. font: GoogleFonts.roboto(
  716. fontWeight: FlutterFlowTheme.of(context)
  717. .bodyMedium
  718. .fontWeight,
  719. fontStyle: FlutterFlowTheme.of(context)
  720. .bodyMedium
  721. .fontStyle,
  722. ),
  723. letterSpacing: 0.0,
  724. fontWeight: FlutterFlowTheme.of(context)
  725. .bodyMedium
  726. .fontWeight,
  727. fontStyle: FlutterFlowTheme.of(context)
  728. .bodyMedium
  729. .fontStyle,
  730. ),
  731. cursorColor: FlutterFlowTheme.of(context).primaryText,
  732. enableInteractiveSelection: true,
  733. validator: _model
  734. .textFieldDatumEindTextControllerValidator
  735. .asValidator(context),
  736. ),
  737. ),
  738. ),
  739. ),
  740. Container(
  741. width: double.infinity,
  742. child: TextFormField(
  743. controller: _model.textFieldOmschrijvingTextController,
  744. focusNode: _model.textFieldOmschrijvingFocusNode,
  745. autofocus: false,
  746. enabled: true,
  747. obscureText: false,
  748. decoration: InputDecoration(
  749. isDense: true,
  750. labelText: FFLocalizations.of(context).getText(
  751. 'vc73ugaq' /* Omschrijving */,
  752. ),
  753. labelStyle:
  754. FlutterFlowTheme.of(context).labelMedium.override(
  755. font: GoogleFonts.roboto(
  756. fontWeight: FlutterFlowTheme.of(context)
  757. .labelMedium
  758. .fontWeight,
  759. fontStyle: FlutterFlowTheme.of(context)
  760. .labelMedium
  761. .fontStyle,
  762. ),
  763. letterSpacing: 0.0,
  764. fontWeight: FlutterFlowTheme.of(context)
  765. .labelMedium
  766. .fontWeight,
  767. fontStyle: FlutterFlowTheme.of(context)
  768. .labelMedium
  769. .fontStyle,
  770. ),
  771. hintText: FFLocalizations.of(context).getText(
  772. 'k4jw1fl6' /* Omschrijving activiteit */,
  773. ),
  774. hintStyle:
  775. FlutterFlowTheme.of(context).labelMedium.override(
  776. font: GoogleFonts.roboto(
  777. fontWeight: FlutterFlowTheme.of(context)
  778. .labelMedium
  779. .fontWeight,
  780. fontStyle: FlutterFlowTheme.of(context)
  781. .labelMedium
  782. .fontStyle,
  783. ),
  784. letterSpacing: 0.0,
  785. fontWeight: FlutterFlowTheme.of(context)
  786. .labelMedium
  787. .fontWeight,
  788. fontStyle: FlutterFlowTheme.of(context)
  789. .labelMedium
  790. .fontStyle,
  791. ),
  792. enabledBorder: OutlineInputBorder(
  793. borderSide: BorderSide(
  794. color: Color(0x00000000),
  795. width: 1.0,
  796. ),
  797. borderRadius: BorderRadius.circular(8.0),
  798. ),
  799. focusedBorder: OutlineInputBorder(
  800. borderSide: BorderSide(
  801. color: Color(0x00000000),
  802. width: 1.0,
  803. ),
  804. borderRadius: BorderRadius.circular(8.0),
  805. ),
  806. errorBorder: OutlineInputBorder(
  807. borderSide: BorderSide(
  808. color: FlutterFlowTheme.of(context).error,
  809. width: 1.0,
  810. ),
  811. borderRadius: BorderRadius.circular(8.0),
  812. ),
  813. focusedErrorBorder: OutlineInputBorder(
  814. borderSide: BorderSide(
  815. color: FlutterFlowTheme.of(context).error,
  816. width: 1.0,
  817. ),
  818. borderRadius: BorderRadius.circular(8.0),
  819. ),
  820. filled: true,
  821. fillColor:
  822. FlutterFlowTheme.of(context).secondaryBackground,
  823. ),
  824. style: FlutterFlowTheme.of(context).bodyMedium.override(
  825. font: GoogleFonts.roboto(
  826. fontWeight: FlutterFlowTheme.of(context)
  827. .bodyMedium
  828. .fontWeight,
  829. fontStyle: FlutterFlowTheme.of(context)
  830. .bodyMedium
  831. .fontStyle,
  832. ),
  833. letterSpacing: 0.0,
  834. fontWeight: FlutterFlowTheme.of(context)
  835. .bodyMedium
  836. .fontWeight,
  837. fontStyle: FlutterFlowTheme.of(context)
  838. .bodyMedium
  839. .fontStyle,
  840. ),
  841. maxLines: 5,
  842. cursorColor: FlutterFlowTheme.of(context).primaryText,
  843. enableInteractiveSelection: true,
  844. validator: _model
  845. .textFieldOmschrijvingTextControllerValidator
  846. .asValidator(context),
  847. ),
  848. ),
  849. Container(
  850. width: double.infinity,
  851. child: TextFormField(
  852. controller: _model.textFieldOrganisatorTextController,
  853. focusNode: _model.textFieldOrganisatorFocusNode,
  854. autofocus: false,
  855. enabled: true,
  856. obscureText: false,
  857. decoration: InputDecoration(
  858. isDense: true,
  859. labelText: FFLocalizations.of(context).getText(
  860. '7dy1oyjr' /* Organisator */,
  861. ),
  862. labelStyle:
  863. FlutterFlowTheme.of(context).labelMedium.override(
  864. font: GoogleFonts.roboto(
  865. fontWeight: FlutterFlowTheme.of(context)
  866. .labelMedium
  867. .fontWeight,
  868. fontStyle: FlutterFlowTheme.of(context)
  869. .labelMedium
  870. .fontStyle,
  871. ),
  872. letterSpacing: 0.0,
  873. fontWeight: FlutterFlowTheme.of(context)
  874. .labelMedium
  875. .fontWeight,
  876. fontStyle: FlutterFlowTheme.of(context)
  877. .labelMedium
  878. .fontStyle,
  879. ),
  880. hintText: FFLocalizations.of(context).getText(
  881. 'nxfif83l' /* Organisator van de activiteit */,
  882. ),
  883. hintStyle:
  884. FlutterFlowTheme.of(context).labelMedium.override(
  885. font: GoogleFonts.roboto(
  886. fontWeight: FlutterFlowTheme.of(context)
  887. .labelMedium
  888. .fontWeight,
  889. fontStyle: FlutterFlowTheme.of(context)
  890. .labelMedium
  891. .fontStyle,
  892. ),
  893. letterSpacing: 0.0,
  894. fontWeight: FlutterFlowTheme.of(context)
  895. .labelMedium
  896. .fontWeight,
  897. fontStyle: FlutterFlowTheme.of(context)
  898. .labelMedium
  899. .fontStyle,
  900. ),
  901. enabledBorder: OutlineInputBorder(
  902. borderSide: BorderSide(
  903. color: Color(0x00000000),
  904. width: 1.0,
  905. ),
  906. borderRadius: BorderRadius.circular(8.0),
  907. ),
  908. focusedBorder: OutlineInputBorder(
  909. borderSide: BorderSide(
  910. color: Color(0x00000000),
  911. width: 1.0,
  912. ),
  913. borderRadius: BorderRadius.circular(8.0),
  914. ),
  915. errorBorder: OutlineInputBorder(
  916. borderSide: BorderSide(
  917. color: FlutterFlowTheme.of(context).error,
  918. width: 1.0,
  919. ),
  920. borderRadius: BorderRadius.circular(8.0),
  921. ),
  922. focusedErrorBorder: OutlineInputBorder(
  923. borderSide: BorderSide(
  924. color: FlutterFlowTheme.of(context).error,
  925. width: 1.0,
  926. ),
  927. borderRadius: BorderRadius.circular(8.0),
  928. ),
  929. filled: true,
  930. fillColor:
  931. FlutterFlowTheme.of(context).secondaryBackground,
  932. ),
  933. style: FlutterFlowTheme.of(context).bodyMedium.override(
  934. font: GoogleFonts.roboto(
  935. fontWeight: FlutterFlowTheme.of(context)
  936. .bodyMedium
  937. .fontWeight,
  938. fontStyle: FlutterFlowTheme.of(context)
  939. .bodyMedium
  940. .fontStyle,
  941. ),
  942. letterSpacing: 0.0,
  943. fontWeight: FlutterFlowTheme.of(context)
  944. .bodyMedium
  945. .fontWeight,
  946. fontStyle: FlutterFlowTheme.of(context)
  947. .bodyMedium
  948. .fontStyle,
  949. ),
  950. cursorColor: FlutterFlowTheme.of(context).primaryText,
  951. enableInteractiveSelection: true,
  952. validator: _model
  953. .textFieldOrganisatorTextControllerValidator
  954. .asValidator(context),
  955. ),
  956. ),
  957. Container(
  958. width: double.infinity,
  959. child: TextFormField(
  960. controller: _model.textFieldContactTextController,
  961. focusNode: _model.textFieldContactFocusNode,
  962. autofocus: false,
  963. enabled: true,
  964. obscureText: false,
  965. decoration: InputDecoration(
  966. isDense: true,
  967. labelText: FFLocalizations.of(context).getText(
  968. '06lh8r3a' /* Contact */,
  969. ),
  970. labelStyle:
  971. FlutterFlowTheme.of(context).labelMedium.override(
  972. font: GoogleFonts.roboto(
  973. fontWeight: FlutterFlowTheme.of(context)
  974. .labelMedium
  975. .fontWeight,
  976. fontStyle: FlutterFlowTheme.of(context)
  977. .labelMedium
  978. .fontStyle,
  979. ),
  980. letterSpacing: 0.0,
  981. fontWeight: FlutterFlowTheme.of(context)
  982. .labelMedium
  983. .fontWeight,
  984. fontStyle: FlutterFlowTheme.of(context)
  985. .labelMedium
  986. .fontStyle,
  987. ),
  988. hintText: FFLocalizations.of(context).getText(
  989. 'p3rwq60m' /* Contact email/telefoon */,
  990. ),
  991. hintStyle:
  992. FlutterFlowTheme.of(context).labelMedium.override(
  993. font: GoogleFonts.roboto(
  994. fontWeight: FlutterFlowTheme.of(context)
  995. .labelMedium
  996. .fontWeight,
  997. fontStyle: FlutterFlowTheme.of(context)
  998. .labelMedium
  999. .fontStyle,
  1000. ),
  1001. letterSpacing: 0.0,
  1002. fontWeight: FlutterFlowTheme.of(context)
  1003. .labelMedium
  1004. .fontWeight,
  1005. fontStyle: FlutterFlowTheme.of(context)
  1006. .labelMedium
  1007. .fontStyle,
  1008. ),
  1009. enabledBorder: OutlineInputBorder(
  1010. borderSide: BorderSide(
  1011. color: Color(0x00000000),
  1012. width: 1.0,
  1013. ),
  1014. borderRadius: BorderRadius.circular(8.0),
  1015. ),
  1016. focusedBorder: OutlineInputBorder(
  1017. borderSide: BorderSide(
  1018. color: Color(0x00000000),
  1019. width: 1.0,
  1020. ),
  1021. borderRadius: BorderRadius.circular(8.0),
  1022. ),
  1023. errorBorder: OutlineInputBorder(
  1024. borderSide: BorderSide(
  1025. color: FlutterFlowTheme.of(context).error,
  1026. width: 1.0,
  1027. ),
  1028. borderRadius: BorderRadius.circular(8.0),
  1029. ),
  1030. focusedErrorBorder: OutlineInputBorder(
  1031. borderSide: BorderSide(
  1032. color: FlutterFlowTheme.of(context).error,
  1033. width: 1.0,
  1034. ),
  1035. borderRadius: BorderRadius.circular(8.0),
  1036. ),
  1037. filled: true,
  1038. fillColor:
  1039. FlutterFlowTheme.of(context).secondaryBackground,
  1040. ),
  1041. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1042. font: GoogleFonts.roboto(
  1043. fontWeight: FlutterFlowTheme.of(context)
  1044. .bodyMedium
  1045. .fontWeight,
  1046. fontStyle: FlutterFlowTheme.of(context)
  1047. .bodyMedium
  1048. .fontStyle,
  1049. ),
  1050. letterSpacing: 0.0,
  1051. fontWeight: FlutterFlowTheme.of(context)
  1052. .bodyMedium
  1053. .fontWeight,
  1054. fontStyle: FlutterFlowTheme.of(context)
  1055. .bodyMedium
  1056. .fontStyle,
  1057. ),
  1058. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1059. enableInteractiveSelection: true,
  1060. validator: _model.textFieldContactTextControllerValidator
  1061. .asValidator(context),
  1062. ),
  1063. ),
  1064. Container(
  1065. width: double.infinity,
  1066. child: TextFormField(
  1067. controller: _model.textFieldAdresTextController,
  1068. focusNode: _model.textFieldAdresFocusNode,
  1069. autofocus: false,
  1070. enabled: true,
  1071. obscureText: false,
  1072. decoration: InputDecoration(
  1073. isDense: true,
  1074. labelText: FFLocalizations.of(context).getText(
  1075. '5ehouxlk' /* Adres */,
  1076. ),
  1077. labelStyle:
  1078. FlutterFlowTheme.of(context).labelMedium.override(
  1079. font: GoogleFonts.roboto(
  1080. fontWeight: FlutterFlowTheme.of(context)
  1081. .labelMedium
  1082. .fontWeight,
  1083. fontStyle: FlutterFlowTheme.of(context)
  1084. .labelMedium
  1085. .fontStyle,
  1086. ),
  1087. letterSpacing: 0.0,
  1088. fontWeight: FlutterFlowTheme.of(context)
  1089. .labelMedium
  1090. .fontWeight,
  1091. fontStyle: FlutterFlowTheme.of(context)
  1092. .labelMedium
  1093. .fontStyle,
  1094. ),
  1095. hintText: FFLocalizations.of(context).getText(
  1096. '4czd99zl' /* Adres */,
  1097. ),
  1098. hintStyle:
  1099. FlutterFlowTheme.of(context).labelMedium.override(
  1100. font: GoogleFonts.roboto(
  1101. fontWeight: FlutterFlowTheme.of(context)
  1102. .labelMedium
  1103. .fontWeight,
  1104. fontStyle: FlutterFlowTheme.of(context)
  1105. .labelMedium
  1106. .fontStyle,
  1107. ),
  1108. letterSpacing: 0.0,
  1109. fontWeight: FlutterFlowTheme.of(context)
  1110. .labelMedium
  1111. .fontWeight,
  1112. fontStyle: FlutterFlowTheme.of(context)
  1113. .labelMedium
  1114. .fontStyle,
  1115. ),
  1116. enabledBorder: OutlineInputBorder(
  1117. borderSide: BorderSide(
  1118. color: Color(0x00000000),
  1119. width: 1.0,
  1120. ),
  1121. borderRadius: BorderRadius.circular(8.0),
  1122. ),
  1123. focusedBorder: OutlineInputBorder(
  1124. borderSide: BorderSide(
  1125. color: Color(0x00000000),
  1126. width: 1.0,
  1127. ),
  1128. borderRadius: BorderRadius.circular(8.0),
  1129. ),
  1130. errorBorder: OutlineInputBorder(
  1131. borderSide: BorderSide(
  1132. color: FlutterFlowTheme.of(context).error,
  1133. width: 1.0,
  1134. ),
  1135. borderRadius: BorderRadius.circular(8.0),
  1136. ),
  1137. focusedErrorBorder: OutlineInputBorder(
  1138. borderSide: BorderSide(
  1139. color: FlutterFlowTheme.of(context).error,
  1140. width: 1.0,
  1141. ),
  1142. borderRadius: BorderRadius.circular(8.0),
  1143. ),
  1144. filled: true,
  1145. fillColor:
  1146. FlutterFlowTheme.of(context).secondaryBackground,
  1147. ),
  1148. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1149. font: GoogleFonts.roboto(
  1150. fontWeight: FlutterFlowTheme.of(context)
  1151. .bodyMedium
  1152. .fontWeight,
  1153. fontStyle: FlutterFlowTheme.of(context)
  1154. .bodyMedium
  1155. .fontStyle,
  1156. ),
  1157. letterSpacing: 0.0,
  1158. fontWeight: FlutterFlowTheme.of(context)
  1159. .bodyMedium
  1160. .fontWeight,
  1161. fontStyle: FlutterFlowTheme.of(context)
  1162. .bodyMedium
  1163. .fontStyle,
  1164. ),
  1165. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1166. enableInteractiveSelection: true,
  1167. validator: _model.textFieldAdresTextControllerValidator
  1168. .asValidator(context),
  1169. ),
  1170. ),
  1171. Container(
  1172. width: double.infinity,
  1173. child: TextFormField(
  1174. controller: _model.textFieldPostcodeTextController,
  1175. focusNode: _model.textFieldPostcodeFocusNode,
  1176. autofocus: false,
  1177. enabled: true,
  1178. obscureText: false,
  1179. decoration: InputDecoration(
  1180. isDense: true,
  1181. labelText: FFLocalizations.of(context).getText(
  1182. 'oo7z1mp8' /* Postcode */,
  1183. ),
  1184. labelStyle:
  1185. FlutterFlowTheme.of(context).labelMedium.override(
  1186. font: GoogleFonts.roboto(
  1187. fontWeight: FlutterFlowTheme.of(context)
  1188. .labelMedium
  1189. .fontWeight,
  1190. fontStyle: FlutterFlowTheme.of(context)
  1191. .labelMedium
  1192. .fontStyle,
  1193. ),
  1194. letterSpacing: 0.0,
  1195. fontWeight: FlutterFlowTheme.of(context)
  1196. .labelMedium
  1197. .fontWeight,
  1198. fontStyle: FlutterFlowTheme.of(context)
  1199. .labelMedium
  1200. .fontStyle,
  1201. ),
  1202. hintText: FFLocalizations.of(context).getText(
  1203. 'j9h65a88' /* Postcode */,
  1204. ),
  1205. hintStyle:
  1206. FlutterFlowTheme.of(context).labelMedium.override(
  1207. font: GoogleFonts.roboto(
  1208. fontWeight: FlutterFlowTheme.of(context)
  1209. .labelMedium
  1210. .fontWeight,
  1211. fontStyle: FlutterFlowTheme.of(context)
  1212. .labelMedium
  1213. .fontStyle,
  1214. ),
  1215. letterSpacing: 0.0,
  1216. fontWeight: FlutterFlowTheme.of(context)
  1217. .labelMedium
  1218. .fontWeight,
  1219. fontStyle: FlutterFlowTheme.of(context)
  1220. .labelMedium
  1221. .fontStyle,
  1222. ),
  1223. enabledBorder: OutlineInputBorder(
  1224. borderSide: BorderSide(
  1225. color: Color(0x00000000),
  1226. width: 1.0,
  1227. ),
  1228. borderRadius: BorderRadius.circular(8.0),
  1229. ),
  1230. focusedBorder: OutlineInputBorder(
  1231. borderSide: BorderSide(
  1232. color: Color(0x00000000),
  1233. width: 1.0,
  1234. ),
  1235. borderRadius: BorderRadius.circular(8.0),
  1236. ),
  1237. errorBorder: OutlineInputBorder(
  1238. borderSide: BorderSide(
  1239. color: FlutterFlowTheme.of(context).error,
  1240. width: 1.0,
  1241. ),
  1242. borderRadius: BorderRadius.circular(8.0),
  1243. ),
  1244. focusedErrorBorder: OutlineInputBorder(
  1245. borderSide: BorderSide(
  1246. color: FlutterFlowTheme.of(context).error,
  1247. width: 1.0,
  1248. ),
  1249. borderRadius: BorderRadius.circular(8.0),
  1250. ),
  1251. filled: true,
  1252. fillColor:
  1253. FlutterFlowTheme.of(context).secondaryBackground,
  1254. ),
  1255. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1256. font: GoogleFonts.roboto(
  1257. fontWeight: FlutterFlowTheme.of(context)
  1258. .bodyMedium
  1259. .fontWeight,
  1260. fontStyle: FlutterFlowTheme.of(context)
  1261. .bodyMedium
  1262. .fontStyle,
  1263. ),
  1264. letterSpacing: 0.0,
  1265. fontWeight: FlutterFlowTheme.of(context)
  1266. .bodyMedium
  1267. .fontWeight,
  1268. fontStyle: FlutterFlowTheme.of(context)
  1269. .bodyMedium
  1270. .fontStyle,
  1271. ),
  1272. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1273. enableInteractiveSelection: true,
  1274. validator: _model.textFieldPostcodeTextControllerValidator
  1275. .asValidator(context),
  1276. ),
  1277. ),
  1278. Container(
  1279. width: double.infinity,
  1280. child: TextFormField(
  1281. controller: _model.textFieldPlaatsTextController,
  1282. focusNode: _model.textFieldPlaatsFocusNode,
  1283. autofocus: false,
  1284. enabled: true,
  1285. obscureText: false,
  1286. decoration: InputDecoration(
  1287. isDense: true,
  1288. labelText: FFLocalizations.of(context).getText(
  1289. '825wzmk4' /* Plaats */,
  1290. ),
  1291. labelStyle:
  1292. FlutterFlowTheme.of(context).labelMedium.override(
  1293. font: GoogleFonts.roboto(
  1294. fontWeight: FlutterFlowTheme.of(context)
  1295. .labelMedium
  1296. .fontWeight,
  1297. fontStyle: FlutterFlowTheme.of(context)
  1298. .labelMedium
  1299. .fontStyle,
  1300. ),
  1301. letterSpacing: 0.0,
  1302. fontWeight: FlutterFlowTheme.of(context)
  1303. .labelMedium
  1304. .fontWeight,
  1305. fontStyle: FlutterFlowTheme.of(context)
  1306. .labelMedium
  1307. .fontStyle,
  1308. ),
  1309. hintText: FFLocalizations.of(context).getText(
  1310. 'np527mil' /* Plaats activiteit */,
  1311. ),
  1312. hintStyle:
  1313. FlutterFlowTheme.of(context).labelMedium.override(
  1314. font: GoogleFonts.roboto(
  1315. fontWeight: FlutterFlowTheme.of(context)
  1316. .labelMedium
  1317. .fontWeight,
  1318. fontStyle: FlutterFlowTheme.of(context)
  1319. .labelMedium
  1320. .fontStyle,
  1321. ),
  1322. letterSpacing: 0.0,
  1323. fontWeight: FlutterFlowTheme.of(context)
  1324. .labelMedium
  1325. .fontWeight,
  1326. fontStyle: FlutterFlowTheme.of(context)
  1327. .labelMedium
  1328. .fontStyle,
  1329. ),
  1330. enabledBorder: OutlineInputBorder(
  1331. borderSide: BorderSide(
  1332. color: Color(0x00000000),
  1333. width: 1.0,
  1334. ),
  1335. borderRadius: BorderRadius.circular(8.0),
  1336. ),
  1337. focusedBorder: OutlineInputBorder(
  1338. borderSide: BorderSide(
  1339. color: Color(0x00000000),
  1340. width: 1.0,
  1341. ),
  1342. borderRadius: BorderRadius.circular(8.0),
  1343. ),
  1344. errorBorder: OutlineInputBorder(
  1345. borderSide: BorderSide(
  1346. color: FlutterFlowTheme.of(context).error,
  1347. width: 1.0,
  1348. ),
  1349. borderRadius: BorderRadius.circular(8.0),
  1350. ),
  1351. focusedErrorBorder: OutlineInputBorder(
  1352. borderSide: BorderSide(
  1353. color: FlutterFlowTheme.of(context).error,
  1354. width: 1.0,
  1355. ),
  1356. borderRadius: BorderRadius.circular(8.0),
  1357. ),
  1358. filled: true,
  1359. fillColor:
  1360. FlutterFlowTheme.of(context).secondaryBackground,
  1361. ),
  1362. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1363. font: GoogleFonts.roboto(
  1364. fontWeight: FlutterFlowTheme.of(context)
  1365. .bodyMedium
  1366. .fontWeight,
  1367. fontStyle: FlutterFlowTheme.of(context)
  1368. .bodyMedium
  1369. .fontStyle,
  1370. ),
  1371. letterSpacing: 0.0,
  1372. fontWeight: FlutterFlowTheme.of(context)
  1373. .bodyMedium
  1374. .fontWeight,
  1375. fontStyle: FlutterFlowTheme.of(context)
  1376. .bodyMedium
  1377. .fontStyle,
  1378. ),
  1379. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1380. enableInteractiveSelection: true,
  1381. validator: _model.textFieldPlaatsTextControllerValidator
  1382. .asValidator(context),
  1383. ),
  1384. ),
  1385. Container(
  1386. width: double.infinity,
  1387. child: TextFormField(
  1388. controller: _model.textFieldEntreeprijsTextController,
  1389. focusNode: _model.textFieldEntreeprijsFocusNode,
  1390. autofocus: false,
  1391. enabled: true,
  1392. obscureText: false,
  1393. decoration: InputDecoration(
  1394. isDense: true,
  1395. labelText: FFLocalizations.of(context).getText(
  1396. 'pftju36e' /* Entreeprijs */,
  1397. ),
  1398. labelStyle:
  1399. FlutterFlowTheme.of(context).labelMedium.override(
  1400. font: GoogleFonts.roboto(
  1401. fontWeight: FlutterFlowTheme.of(context)
  1402. .labelMedium
  1403. .fontWeight,
  1404. fontStyle: FlutterFlowTheme.of(context)
  1405. .labelMedium
  1406. .fontStyle,
  1407. ),
  1408. letterSpacing: 0.0,
  1409. fontWeight: FlutterFlowTheme.of(context)
  1410. .labelMedium
  1411. .fontWeight,
  1412. fontStyle: FlutterFlowTheme.of(context)
  1413. .labelMedium
  1414. .fontStyle,
  1415. ),
  1416. hintText: FFLocalizations.of(context).getText(
  1417. 'fyltb801' /* Entreeprijs */,
  1418. ),
  1419. hintStyle:
  1420. FlutterFlowTheme.of(context).labelMedium.override(
  1421. font: GoogleFonts.roboto(
  1422. fontWeight: FlutterFlowTheme.of(context)
  1423. .labelMedium
  1424. .fontWeight,
  1425. fontStyle: FlutterFlowTheme.of(context)
  1426. .labelMedium
  1427. .fontStyle,
  1428. ),
  1429. letterSpacing: 0.0,
  1430. fontWeight: FlutterFlowTheme.of(context)
  1431. .labelMedium
  1432. .fontWeight,
  1433. fontStyle: FlutterFlowTheme.of(context)
  1434. .labelMedium
  1435. .fontStyle,
  1436. ),
  1437. enabledBorder: OutlineInputBorder(
  1438. borderSide: BorderSide(
  1439. color: Color(0x00000000),
  1440. width: 1.0,
  1441. ),
  1442. borderRadius: BorderRadius.circular(8.0),
  1443. ),
  1444. focusedBorder: OutlineInputBorder(
  1445. borderSide: BorderSide(
  1446. color: Color(0x00000000),
  1447. width: 1.0,
  1448. ),
  1449. borderRadius: BorderRadius.circular(8.0),
  1450. ),
  1451. errorBorder: OutlineInputBorder(
  1452. borderSide: BorderSide(
  1453. color: FlutterFlowTheme.of(context).error,
  1454. width: 1.0,
  1455. ),
  1456. borderRadius: BorderRadius.circular(8.0),
  1457. ),
  1458. focusedErrorBorder: OutlineInputBorder(
  1459. borderSide: BorderSide(
  1460. color: FlutterFlowTheme.of(context).error,
  1461. width: 1.0,
  1462. ),
  1463. borderRadius: BorderRadius.circular(8.0),
  1464. ),
  1465. filled: true,
  1466. fillColor:
  1467. FlutterFlowTheme.of(context).secondaryBackground,
  1468. ),
  1469. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1470. font: GoogleFonts.roboto(
  1471. fontWeight: FlutterFlowTheme.of(context)
  1472. .bodyMedium
  1473. .fontWeight,
  1474. fontStyle: FlutterFlowTheme.of(context)
  1475. .bodyMedium
  1476. .fontStyle,
  1477. ),
  1478. letterSpacing: 0.0,
  1479. fontWeight: FlutterFlowTheme.of(context)
  1480. .bodyMedium
  1481. .fontWeight,
  1482. fontStyle: FlutterFlowTheme.of(context)
  1483. .bodyMedium
  1484. .fontStyle,
  1485. ),
  1486. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1487. enableInteractiveSelection: true,
  1488. validator: _model
  1489. .textFieldEntreeprijsTextControllerValidator
  1490. .asValidator(context),
  1491. ),
  1492. ),
  1493. Container(
  1494. width: double.infinity,
  1495. child: TextFormField(
  1496. controller:
  1497. _model.textFieldToelichtingEntreeTextController,
  1498. focusNode: _model.textFieldToelichtingEntreeFocusNode,
  1499. autofocus: false,
  1500. enabled: true,
  1501. obscureText: false,
  1502. decoration: InputDecoration(
  1503. isDense: true,
  1504. labelText: FFLocalizations.of(context).getText(
  1505. '0brx7n79' /* Toelichting Entree */,
  1506. ),
  1507. labelStyle:
  1508. FlutterFlowTheme.of(context).labelMedium.override(
  1509. font: GoogleFonts.roboto(
  1510. fontWeight: FlutterFlowTheme.of(context)
  1511. .labelMedium
  1512. .fontWeight,
  1513. fontStyle: FlutterFlowTheme.of(context)
  1514. .labelMedium
  1515. .fontStyle,
  1516. ),
  1517. letterSpacing: 0.0,
  1518. fontWeight: FlutterFlowTheme.of(context)
  1519. .labelMedium
  1520. .fontWeight,
  1521. fontStyle: FlutterFlowTheme.of(context)
  1522. .labelMedium
  1523. .fontStyle,
  1524. ),
  1525. hintStyle:
  1526. FlutterFlowTheme.of(context).labelMedium.override(
  1527. font: GoogleFonts.roboto(
  1528. fontWeight: FlutterFlowTheme.of(context)
  1529. .labelMedium
  1530. .fontWeight,
  1531. fontStyle: FlutterFlowTheme.of(context)
  1532. .labelMedium
  1533. .fontStyle,
  1534. ),
  1535. letterSpacing: 0.0,
  1536. fontWeight: FlutterFlowTheme.of(context)
  1537. .labelMedium
  1538. .fontWeight,
  1539. fontStyle: FlutterFlowTheme.of(context)
  1540. .labelMedium
  1541. .fontStyle,
  1542. ),
  1543. enabledBorder: OutlineInputBorder(
  1544. borderSide: BorderSide(
  1545. color: Color(0x00000000),
  1546. width: 1.0,
  1547. ),
  1548. borderRadius: BorderRadius.circular(8.0),
  1549. ),
  1550. focusedBorder: OutlineInputBorder(
  1551. borderSide: BorderSide(
  1552. color: Color(0x00000000),
  1553. width: 1.0,
  1554. ),
  1555. borderRadius: BorderRadius.circular(8.0),
  1556. ),
  1557. errorBorder: OutlineInputBorder(
  1558. borderSide: BorderSide(
  1559. color: FlutterFlowTheme.of(context).error,
  1560. width: 1.0,
  1561. ),
  1562. borderRadius: BorderRadius.circular(8.0),
  1563. ),
  1564. focusedErrorBorder: OutlineInputBorder(
  1565. borderSide: BorderSide(
  1566. color: FlutterFlowTheme.of(context).error,
  1567. width: 1.0,
  1568. ),
  1569. borderRadius: BorderRadius.circular(8.0),
  1570. ),
  1571. filled: true,
  1572. fillColor:
  1573. FlutterFlowTheme.of(context).secondaryBackground,
  1574. ),
  1575. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1576. font: GoogleFonts.roboto(
  1577. fontWeight: FlutterFlowTheme.of(context)
  1578. .bodyMedium
  1579. .fontWeight,
  1580. fontStyle: FlutterFlowTheme.of(context)
  1581. .bodyMedium
  1582. .fontStyle,
  1583. ),
  1584. letterSpacing: 0.0,
  1585. fontWeight: FlutterFlowTheme.of(context)
  1586. .bodyMedium
  1587. .fontWeight,
  1588. fontStyle: FlutterFlowTheme.of(context)
  1589. .bodyMedium
  1590. .fontStyle,
  1591. ),
  1592. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1593. enableInteractiveSelection: true,
  1594. validator: _model
  1595. .textFieldToelichtingEntreeTextControllerValidator
  1596. .asValidator(context),
  1597. ),
  1598. ),
  1599. Align(
  1600. alignment: AlignmentDirectional(-1.0, 0.0),
  1601. child: Container(
  1602. width: 200.0,
  1603. child: TextFormField(
  1604. controller: _model.textFieldWebsiteURLTextController,
  1605. focusNode: _model.textFieldWebsiteURLFocusNode,
  1606. autofocus: false,
  1607. enabled: true,
  1608. obscureText: false,
  1609. decoration: InputDecoration(
  1610. isDense: true,
  1611. labelText: FFLocalizations.of(context).getText(
  1612. 'i66ori1d' /* WebsiteURL */,
  1613. ),
  1614. labelStyle:
  1615. FlutterFlowTheme.of(context).labelMedium.override(
  1616. font: GoogleFonts.roboto(
  1617. fontWeight: FlutterFlowTheme.of(context)
  1618. .labelMedium
  1619. .fontWeight,
  1620. fontStyle: FlutterFlowTheme.of(context)
  1621. .labelMedium
  1622. .fontStyle,
  1623. ),
  1624. letterSpacing: 0.0,
  1625. fontWeight: FlutterFlowTheme.of(context)
  1626. .labelMedium
  1627. .fontWeight,
  1628. fontStyle: FlutterFlowTheme.of(context)
  1629. .labelMedium
  1630. .fontStyle,
  1631. ),
  1632. hintText: FFLocalizations.of(context).getText(
  1633. 'bhydpd6h' /* Website van de activiteit */,
  1634. ),
  1635. hintStyle:
  1636. FlutterFlowTheme.of(context).labelMedium.override(
  1637. font: GoogleFonts.roboto(
  1638. fontWeight: FlutterFlowTheme.of(context)
  1639. .labelMedium
  1640. .fontWeight,
  1641. fontStyle: FlutterFlowTheme.of(context)
  1642. .labelMedium
  1643. .fontStyle,
  1644. ),
  1645. letterSpacing: 0.0,
  1646. fontWeight: FlutterFlowTheme.of(context)
  1647. .labelMedium
  1648. .fontWeight,
  1649. fontStyle: FlutterFlowTheme.of(context)
  1650. .labelMedium
  1651. .fontStyle,
  1652. ),
  1653. enabledBorder: OutlineInputBorder(
  1654. borderSide: BorderSide(
  1655. color: Color(0x00000000),
  1656. width: 1.0,
  1657. ),
  1658. borderRadius: BorderRadius.circular(8.0),
  1659. ),
  1660. focusedBorder: OutlineInputBorder(
  1661. borderSide: BorderSide(
  1662. color: Color(0x00000000),
  1663. width: 1.0,
  1664. ),
  1665. borderRadius: BorderRadius.circular(8.0),
  1666. ),
  1667. errorBorder: OutlineInputBorder(
  1668. borderSide: BorderSide(
  1669. color: FlutterFlowTheme.of(context).error,
  1670. width: 1.0,
  1671. ),
  1672. borderRadius: BorderRadius.circular(8.0),
  1673. ),
  1674. focusedErrorBorder: OutlineInputBorder(
  1675. borderSide: BorderSide(
  1676. color: FlutterFlowTheme.of(context).error,
  1677. width: 1.0,
  1678. ),
  1679. borderRadius: BorderRadius.circular(8.0),
  1680. ),
  1681. filled: true,
  1682. fillColor:
  1683. FlutterFlowTheme.of(context).secondaryBackground,
  1684. ),
  1685. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1686. font: GoogleFonts.roboto(
  1687. fontWeight: FlutterFlowTheme.of(context)
  1688. .bodyMedium
  1689. .fontWeight,
  1690. fontStyle: FlutterFlowTheme.of(context)
  1691. .bodyMedium
  1692. .fontStyle,
  1693. ),
  1694. letterSpacing: 0.0,
  1695. fontWeight: FlutterFlowTheme.of(context)
  1696. .bodyMedium
  1697. .fontWeight,
  1698. fontStyle: FlutterFlowTheme.of(context)
  1699. .bodyMedium
  1700. .fontStyle,
  1701. ),
  1702. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1703. enableInteractiveSelection: true,
  1704. validator: _model
  1705. .textFieldWebsiteURLTextControllerValidator
  1706. .asValidator(context),
  1707. ),
  1708. ),
  1709. ),
  1710. Align(
  1711. alignment: AlignmentDirectional(-1.0, 0.0),
  1712. child: FutureBuilder<ApiCallResponse>(
  1713. future: MijnStadsrechtenCall.call(
  1714. sessionName: FFAppState().userSessionname,
  1715. sessid: FFAppState().userSessionid,
  1716. ),
  1717. builder: (context, snapshot) {
  1718. // Customize what your widget looks like when it's loading.
  1719. if (!snapshot.hasData) {
  1720. return Center(
  1721. child: SizedBox(
  1722. width: 80.0,
  1723. height: 80.0,
  1724. child: SpinKitFadingCircle(
  1725. color: FlutterFlowTheme.of(context).primary,
  1726. size: 80.0,
  1727. ),
  1728. ),
  1729. );
  1730. }
  1731. final columnMijnStadsrechtenResponse = snapshot.data!;
  1732. _model.debugBackendQueries[
  1733. 'MijnStadsrechtenCall_statusCode_Column_bh9n1ich'] =
  1734. debugSerializeParam(
  1735. columnMijnStadsrechtenResponse.statusCode,
  1736. ParamType.int,
  1737. link:
  1738. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  1739. name: 'int',
  1740. nullable: false,
  1741. );
  1742. _model.debugBackendQueries[
  1743. 'MijnStadsrechtenCall_responseBody_Column_bh9n1ich'] =
  1744. debugSerializeParam(
  1745. columnMijnStadsrechtenResponse.bodyText,
  1746. ParamType.String,
  1747. link:
  1748. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  1749. name: 'String',
  1750. nullable: false,
  1751. );
  1752. debugLogWidgetClass(_model);
  1753. return Column(
  1754. mainAxisSize: MainAxisSize.max,
  1755. children: [
  1756. if (getJsonField(
  1757. columnMijnStadsrechtenResponse.jsonBody,
  1758. r'''$[0].titel''',
  1759. ) !=
  1760. null)
  1761. FlutterFlowDropDown<String>(
  1762. controller: _model
  1763. .dropDownGemeentenMijngemeentenValueController ??=
  1764. FormFieldController<String>(null),
  1765. options: List<String>.from((getJsonField(
  1766. columnMijnStadsrechtenResponse.jsonBody,
  1767. r'''$[:].tid''',
  1768. true,
  1769. ) as List?)!
  1770. .map<String>((e) => e.toString())
  1771. .toList()
  1772. .cast<String>()),
  1773. optionLabels: (getJsonField(
  1774. columnMijnStadsrechtenResponse.jsonBody,
  1775. r'''$[:].titel''',
  1776. true,
  1777. ) as List?)!
  1778. .map<String>((e) => e.toString())
  1779. .toList()
  1780. .cast<String>(),
  1781. onChanged: (val) async {
  1782. safeSetState(() => _model
  1783. .dropDownGemeentenMijngemeentenValue =
  1784. val);
  1785. _model.createGemeenteID = _model
  1786. .dropDownGemeentenMijngemeentenValue;
  1787. safeSetState(() {});
  1788. },
  1789. width: 200.0,
  1790. height: 40.0,
  1791. textStyle: FlutterFlowTheme.of(context)
  1792. .bodyMedium
  1793. .override(
  1794. font: GoogleFonts.roboto(
  1795. fontWeight: FlutterFlowTheme.of(context)
  1796. .bodyMedium
  1797. .fontWeight,
  1798. fontStyle: FlutterFlowTheme.of(context)
  1799. .bodyMedium
  1800. .fontStyle,
  1801. ),
  1802. letterSpacing: 0.0,
  1803. fontWeight: FlutterFlowTheme.of(context)
  1804. .bodyMedium
  1805. .fontWeight,
  1806. fontStyle: FlutterFlowTheme.of(context)
  1807. .bodyMedium
  1808. .fontStyle,
  1809. ),
  1810. hintText: FFLocalizations.of(context).getText(
  1811. 'ls6do5d5' /* Mijn gemeenten */,
  1812. ),
  1813. icon: Icon(
  1814. Icons.keyboard_arrow_down_rounded,
  1815. color: FlutterFlowTheme.of(context)
  1816. .secondaryText,
  1817. size: 24.0,
  1818. ),
  1819. fillColor: FlutterFlowTheme.of(context)
  1820. .secondaryBackground,
  1821. elevation: 2.0,
  1822. borderColor: Colors.transparent,
  1823. borderWidth: 0.0,
  1824. borderRadius: 8.0,
  1825. margin: EdgeInsetsDirectional.fromSTEB(
  1826. 12.0, 0.0, 12.0, 0.0),
  1827. hidesUnderline: true,
  1828. isOverButton: false,
  1829. isSearchable: false,
  1830. isMultiSelect: false,
  1831. ),
  1832. ],
  1833. );
  1834. },
  1835. ),
  1836. ),
  1837. Align(
  1838. alignment: AlignmentDirectional(-1.0, 0.0),
  1839. child: FutureBuilder<ApiCallResponse>(
  1840. future: ProvinciesCall.call(),
  1841. builder: (context, snapshot) {
  1842. // Customize what your widget looks like when it's loading.
  1843. if (!snapshot.hasData) {
  1844. return Center(
  1845. child: SizedBox(
  1846. width: 80.0,
  1847. height: 80.0,
  1848. child: SpinKitFadingCircle(
  1849. color: FlutterFlowTheme.of(context).primary,
  1850. size: 80.0,
  1851. ),
  1852. ),
  1853. );
  1854. }
  1855. final dropDownProvincieProvinciesResponse =
  1856. snapshot.data!;
  1857. _model.debugBackendQueries[
  1858. 'ProvinciesCall_statusCode_DropDown_55mxhb3i'] =
  1859. debugSerializeParam(
  1860. dropDownProvincieProvinciesResponse.statusCode,
  1861. ParamType.int,
  1862. link:
  1863. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  1864. name: 'int',
  1865. nullable: false,
  1866. );
  1867. _model.debugBackendQueries[
  1868. 'ProvinciesCall_responseBody_DropDown_55mxhb3i'] =
  1869. debugSerializeParam(
  1870. dropDownProvincieProvinciesResponse.bodyText,
  1871. ParamType.String,
  1872. link:
  1873. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  1874. name: 'String',
  1875. nullable: false,
  1876. );
  1877. debugLogWidgetClass(_model);
  1878. return FlutterFlowDropDown<String>(
  1879. controller:
  1880. _model.dropDownProvincieValueController ??=
  1881. FormFieldController<String>(null),
  1882. options: List<String>.from((getJsonField(
  1883. dropDownProvincieProvinciesResponse.jsonBody,
  1884. r'''$[:].provincieid''',
  1885. true,
  1886. ) as List?)!
  1887. .map<String>((e) => e.toString())
  1888. .toList()
  1889. .cast<String>()),
  1890. optionLabels: (getJsonField(
  1891. dropDownProvincieProvinciesResponse.jsonBody,
  1892. r'''$[:].provinciename''',
  1893. true,
  1894. ) as List?)!
  1895. .map<String>((e) => e.toString())
  1896. .toList()
  1897. .cast<String>(),
  1898. onChanged: (val) async {
  1899. safeSetState(
  1900. () => _model.dropDownProvincieValue = val);
  1901. _model.createProvincieID =
  1902. _model.dropDownProvincieValue;
  1903. safeSetState(() {});
  1904. },
  1905. width: 200.0,
  1906. height: 40.0,
  1907. textStyle:
  1908. FlutterFlowTheme.of(context).bodyMedium.override(
  1909. font: GoogleFonts.roboto(
  1910. fontWeight: FlutterFlowTheme.of(context)
  1911. .bodyMedium
  1912. .fontWeight,
  1913. fontStyle: FlutterFlowTheme.of(context)
  1914. .bodyMedium
  1915. .fontStyle,
  1916. ),
  1917. letterSpacing: 0.0,
  1918. fontWeight: FlutterFlowTheme.of(context)
  1919. .bodyMedium
  1920. .fontWeight,
  1921. fontStyle: FlutterFlowTheme.of(context)
  1922. .bodyMedium
  1923. .fontStyle,
  1924. ),
  1925. hintText: FFLocalizations.of(context).getText(
  1926. 'dqeuq7t8' /* Select... */,
  1927. ),
  1928. icon: Icon(
  1929. Icons.keyboard_arrow_down_rounded,
  1930. color: FlutterFlowTheme.of(context).secondaryText,
  1931. size: 24.0,
  1932. ),
  1933. fillColor:
  1934. FlutterFlowTheme.of(context).secondaryBackground,
  1935. elevation: 2.0,
  1936. borderColor: Colors.transparent,
  1937. borderWidth: 0.0,
  1938. borderRadius: 8.0,
  1939. margin: EdgeInsetsDirectional.fromSTEB(
  1940. 12.0, 0.0, 12.0, 0.0),
  1941. hidesUnderline: true,
  1942. isOverButton: false,
  1943. isSearchable: false,
  1944. isMultiSelect: false,
  1945. );
  1946. },
  1947. ),
  1948. ),
  1949. if (_model.createProvincieID != null &&
  1950. _model.createProvincieID != '')
  1951. Align(
  1952. alignment: AlignmentDirectional(-1.0, 0.0),
  1953. child: FutureBuilder<ApiCallResponse>(
  1954. future: GemeentenCall.call(
  1955. provincieid: _model.createProvincieID,
  1956. ),
  1957. builder: (context, snapshot) {
  1958. // Customize what your widget looks like when it's loading.
  1959. if (!snapshot.hasData) {
  1960. return Center(
  1961. child: SizedBox(
  1962. width: 80.0,
  1963. height: 80.0,
  1964. child: SpinKitFadingCircle(
  1965. color: FlutterFlowTheme.of(context).primary,
  1966. size: 80.0,
  1967. ),
  1968. ),
  1969. );
  1970. }
  1971. final dropDownGemeenteGemeentenResponse =
  1972. snapshot.data!;
  1973. _model.debugBackendQueries[
  1974. 'GemeentenCall_statusCode_DropDown_1w5av1oi'] =
  1975. debugSerializeParam(
  1976. dropDownGemeenteGemeentenResponse.statusCode,
  1977. ParamType.int,
  1978. link:
  1979. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  1980. name: 'int',
  1981. nullable: false,
  1982. );
  1983. _model.debugBackendQueries[
  1984. 'GemeentenCall_responseBody_DropDown_1w5av1oi'] =
  1985. debugSerializeParam(
  1986. dropDownGemeenteGemeentenResponse.bodyText,
  1987. ParamType.String,
  1988. link:
  1989. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  1990. name: 'String',
  1991. nullable: false,
  1992. );
  1993. debugLogWidgetClass(_model);
  1994. return FlutterFlowDropDown<String>(
  1995. controller:
  1996. _model.dropDownGemeenteValueController ??=
  1997. FormFieldController<String>(
  1998. _model.dropDownGemeenteValue ??= '',
  1999. ),
  2000. options: List<String>.from((getJsonField(
  2001. dropDownGemeenteGemeentenResponse.jsonBody,
  2002. r'''$[:].gemeenteid''',
  2003. true,
  2004. ) as List?)!
  2005. .map<String>((e) => e.toString())
  2006. .toList()
  2007. .cast<String>()),
  2008. optionLabels: (getJsonField(
  2009. dropDownGemeenteGemeentenResponse.jsonBody,
  2010. r'''$[:].gemeentename''',
  2011. true,
  2012. ) as List?)!
  2013. .map<String>((e) => e.toString())
  2014. .toList()
  2015. .cast<String>(),
  2016. onChanged: (val) async {
  2017. safeSetState(
  2018. () => _model.dropDownGemeenteValue = val);
  2019. _model.createGemeenteID =
  2020. _model.dropDownGemeenteValue;
  2021. safeSetState(() {});
  2022. },
  2023. width: 200.0,
  2024. height: 40.0,
  2025. textStyle: FlutterFlowTheme.of(context)
  2026. .bodyMedium
  2027. .override(
  2028. font: GoogleFonts.roboto(
  2029. fontWeight: FlutterFlowTheme.of(context)
  2030. .bodyMedium
  2031. .fontWeight,
  2032. fontStyle: FlutterFlowTheme.of(context)
  2033. .bodyMedium
  2034. .fontStyle,
  2035. ),
  2036. letterSpacing: 0.0,
  2037. fontWeight: FlutterFlowTheme.of(context)
  2038. .bodyMedium
  2039. .fontWeight,
  2040. fontStyle: FlutterFlowTheme.of(context)
  2041. .bodyMedium
  2042. .fontStyle,
  2043. ),
  2044. hintText: FFLocalizations.of(context).getText(
  2045. 'xiba4gka' /* Select... */,
  2046. ),
  2047. icon: Icon(
  2048. Icons.keyboard_arrow_down_rounded,
  2049. color: FlutterFlowTheme.of(context).secondaryText,
  2050. size: 24.0,
  2051. ),
  2052. fillColor: FlutterFlowTheme.of(context)
  2053. .secondaryBackground,
  2054. elevation: 2.0,
  2055. borderColor: Colors.transparent,
  2056. borderWidth: 0.0,
  2057. borderRadius: 8.0,
  2058. margin: EdgeInsetsDirectional.fromSTEB(
  2059. 12.0, 0.0, 12.0, 0.0),
  2060. hidesUnderline: true,
  2061. isOverButton: false,
  2062. isSearchable: false,
  2063. isMultiSelect: false,
  2064. );
  2065. },
  2066. ),
  2067. ),
  2068. if (_model.createGemeenteID != null &&
  2069. _model.createGemeenteID != '')
  2070. Align(
  2071. alignment: AlignmentDirectional(-1.0, 0.0),
  2072. child: FutureBuilder<ApiCallResponse>(
  2073. future: ProductieGroup.plaatsenBijGemeenteCall.call(
  2074. gemeenteid: _model.createGemeenteID,
  2075. ),
  2076. builder: (context, snapshot) {
  2077. // Customize what your widget looks like when it's loading.
  2078. if (!snapshot.hasData) {
  2079. return Center(
  2080. child: SizedBox(
  2081. width: 80.0,
  2082. height: 80.0,
  2083. child: SpinKitFadingCircle(
  2084. color: FlutterFlowTheme.of(context).primary,
  2085. size: 80.0,
  2086. ),
  2087. ),
  2088. );
  2089. }
  2090. final dropDownPlaatsPlaatsenBijGemeenteResponse =
  2091. snapshot.data!;
  2092. _model.debugBackendQueries[
  2093. 'ProductieGroup.plaatsenBijGemeenteCall_statusCode_DropDown_h64h4x5r'] =
  2094. debugSerializeParam(
  2095. dropDownPlaatsPlaatsenBijGemeenteResponse
  2096. .statusCode,
  2097. ParamType.int,
  2098. link:
  2099. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  2100. name: 'int',
  2101. nullable: false,
  2102. );
  2103. _model.debugBackendQueries[
  2104. 'ProductieGroup.plaatsenBijGemeenteCall_responseBody_DropDown_h64h4x5r'] =
  2105. debugSerializeParam(
  2106. dropDownPlaatsPlaatsenBijGemeenteResponse.bodyText,
  2107. ParamType.String,
  2108. link:
  2109. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  2110. name: 'String',
  2111. nullable: false,
  2112. );
  2113. debugLogWidgetClass(_model);
  2114. return FlutterFlowDropDown<String>(
  2115. controller: _model.dropDownPlaatsValueController ??=
  2116. FormFieldController<String>(
  2117. _model.dropDownPlaatsValue ??= '',
  2118. ),
  2119. options: List<String>.from((getJsonField(
  2120. dropDownPlaatsPlaatsenBijGemeenteResponse
  2121. .jsonBody,
  2122. r'''$[:].plaatsid''',
  2123. true,
  2124. ) as List?)!
  2125. .map<String>((e) => e.toString())
  2126. .toList()
  2127. .cast<String>()),
  2128. optionLabels: (getJsonField(
  2129. dropDownPlaatsPlaatsenBijGemeenteResponse
  2130. .jsonBody,
  2131. r'''$[:].plaatsname''',
  2132. true,
  2133. ) as List?)!
  2134. .map<String>((e) => e.toString())
  2135. .toList()
  2136. .cast<String>(),
  2137. onChanged: (val) async {
  2138. safeSetState(
  2139. () => _model.dropDownPlaatsValue = val);
  2140. _model.createPlaatsID =
  2141. _model.dropDownPlaatsValue;
  2142. safeSetState(() {});
  2143. },
  2144. width: 200.0,
  2145. height: 40.0,
  2146. textStyle: FlutterFlowTheme.of(context)
  2147. .bodyMedium
  2148. .override(
  2149. font: GoogleFonts.roboto(
  2150. fontWeight: FlutterFlowTheme.of(context)
  2151. .bodyMedium
  2152. .fontWeight,
  2153. fontStyle: FlutterFlowTheme.of(context)
  2154. .bodyMedium
  2155. .fontStyle,
  2156. ),
  2157. letterSpacing: 0.0,
  2158. fontWeight: FlutterFlowTheme.of(context)
  2159. .bodyMedium
  2160. .fontWeight,
  2161. fontStyle: FlutterFlowTheme.of(context)
  2162. .bodyMedium
  2163. .fontStyle,
  2164. ),
  2165. hintText: FFLocalizations.of(context).getText(
  2166. 'l9f37oxb' /* Select... */,
  2167. ),
  2168. icon: Icon(
  2169. Icons.keyboard_arrow_down_rounded,
  2170. color: FlutterFlowTheme.of(context).secondaryText,
  2171. size: 24.0,
  2172. ),
  2173. fillColor: FlutterFlowTheme.of(context)
  2174. .secondaryBackground,
  2175. elevation: 2.0,
  2176. borderColor: Colors.transparent,
  2177. borderWidth: 0.0,
  2178. borderRadius: 8.0,
  2179. margin: EdgeInsetsDirectional.fromSTEB(
  2180. 12.0, 0.0, 12.0, 0.0),
  2181. hidesUnderline: true,
  2182. isOverButton: false,
  2183. isSearchable: false,
  2184. isMultiSelect: false,
  2185. );
  2186. },
  2187. ),
  2188. ),
  2189. Align(
  2190. alignment: AlignmentDirectional(-1.0, 0.0),
  2191. child: FutureBuilder<ApiCallResponse>(
  2192. future: ProductieGroup.categorieenCall.call(
  2193. sessionName: FFAppState().userSessionname,
  2194. sessid: FFAppState().userSessionid,
  2195. ),
  2196. builder: (context, snapshot) {
  2197. // Customize what your widget looks like when it's loading.
  2198. if (!snapshot.hasData) {
  2199. return Center(
  2200. child: SizedBox(
  2201. width: 80.0,
  2202. height: 80.0,
  2203. child: SpinKitFadingCircle(
  2204. color: FlutterFlowTheme.of(context).primary,
  2205. size: 80.0,
  2206. ),
  2207. ),
  2208. );
  2209. }
  2210. final dropDownCategorieenCategorieenResponse =
  2211. snapshot.data!;
  2212. _model.debugBackendQueries[
  2213. 'ProductieGroup.categorieenCall_statusCode_DropDown_13mj4bt4'] =
  2214. debugSerializeParam(
  2215. dropDownCategorieenCategorieenResponse.statusCode,
  2216. ParamType.int,
  2217. link:
  2218. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  2219. name: 'int',
  2220. nullable: false,
  2221. );
  2222. _model.debugBackendQueries[
  2223. 'ProductieGroup.categorieenCall_responseBody_DropDown_13mj4bt4'] =
  2224. debugSerializeParam(
  2225. dropDownCategorieenCategorieenResponse.bodyText,
  2226. ParamType.String,
  2227. link:
  2228. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  2229. name: 'String',
  2230. nullable: false,
  2231. );
  2232. debugLogWidgetClass(_model);
  2233. return FlutterFlowDropDown<String>(
  2234. multiSelectController:
  2235. _model.dropDownCategorieenValueController ??=
  2236. FormListFieldController<String>(null),
  2237. options: List<String>.from((getJsonField(
  2238. dropDownCategorieenCategorieenResponse.jsonBody,
  2239. r'''$[?(@.diepte == 1)].tid''',
  2240. true,
  2241. ) as List?)!
  2242. .map<String>((e) => e.toString())
  2243. .toList()
  2244. .cast<String>()),
  2245. optionLabels: (getJsonField(
  2246. dropDownCategorieenCategorieenResponse.jsonBody,
  2247. r'''$[?(@.diepte == 1)].naam''',
  2248. true,
  2249. ) as List?)!
  2250. .map<String>((e) => e.toString())
  2251. .toList()
  2252. .cast<String>(),
  2253. width: 200.0,
  2254. height: 40.0,
  2255. textStyle:
  2256. FlutterFlowTheme.of(context).bodyMedium.override(
  2257. font: GoogleFonts.roboto(
  2258. fontWeight: FlutterFlowTheme.of(context)
  2259. .bodyMedium
  2260. .fontWeight,
  2261. fontStyle: FlutterFlowTheme.of(context)
  2262. .bodyMedium
  2263. .fontStyle,
  2264. ),
  2265. letterSpacing: 0.0,
  2266. fontWeight: FlutterFlowTheme.of(context)
  2267. .bodyMedium
  2268. .fontWeight,
  2269. fontStyle: FlutterFlowTheme.of(context)
  2270. .bodyMedium
  2271. .fontStyle,
  2272. ),
  2273. hintText: FFLocalizations.of(context).getText(
  2274. 'or5fd9n1' /* Select... */,
  2275. ),
  2276. icon: Icon(
  2277. Icons.keyboard_arrow_down_rounded,
  2278. color: FlutterFlowTheme.of(context).secondaryText,
  2279. size: 24.0,
  2280. ),
  2281. fillColor:
  2282. FlutterFlowTheme.of(context).secondaryBackground,
  2283. elevation: 2.0,
  2284. borderColor: Colors.transparent,
  2285. borderWidth: 0.0,
  2286. borderRadius: 8.0,
  2287. margin: EdgeInsetsDirectional.fromSTEB(
  2288. 12.0, 0.0, 12.0, 0.0),
  2289. hidesUnderline: true,
  2290. isOverButton: false,
  2291. isSearchable: false,
  2292. isMultiSelect: true,
  2293. onMultiSelectChanged: (val) async {
  2294. safeSetState(
  2295. () => _model.dropDownCategorieenValue = val);
  2296. _model.createCategorieTids = _model
  2297. .dropDownCategorieenValue!
  2298. .toList()
  2299. .cast<String>();
  2300. safeSetState(() {});
  2301. },
  2302. );
  2303. },
  2304. ),
  2305. ),
  2306. Align(
  2307. alignment: AlignmentDirectional(-1.0, 0.0),
  2308. child: FutureBuilder<ApiCallResponse>(
  2309. future: ProductieGroup.entreeoptiesCall.call(
  2310. sessionName: FFAppState().userSessionname,
  2311. sessid: FFAppState().userSessionid,
  2312. ),
  2313. builder: (context, snapshot) {
  2314. // Customize what your widget looks like when it's loading.
  2315. if (!snapshot.hasData) {
  2316. return Center(
  2317. child: SizedBox(
  2318. width: 80.0,
  2319. height: 80.0,
  2320. child: SpinKitFadingCircle(
  2321. color: FlutterFlowTheme.of(context).primary,
  2322. size: 80.0,
  2323. ),
  2324. ),
  2325. );
  2326. }
  2327. final dropDownEntreeEntreeoptiesResponse =
  2328. snapshot.data!;
  2329. _model.debugBackendQueries[
  2330. 'ProductieGroup.entreeoptiesCall_statusCode_DropDown_gk9hx54z'] =
  2331. debugSerializeParam(
  2332. dropDownEntreeEntreeoptiesResponse.statusCode,
  2333. ParamType.int,
  2334. link:
  2335. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  2336. name: 'int',
  2337. nullable: false,
  2338. );
  2339. _model.debugBackendQueries[
  2340. 'ProductieGroup.entreeoptiesCall_responseBody_DropDown_gk9hx54z'] =
  2341. debugSerializeParam(
  2342. dropDownEntreeEntreeoptiesResponse.bodyText,
  2343. ParamType.String,
  2344. link:
  2345. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmaken',
  2346. name: 'String',
  2347. nullable: false,
  2348. );
  2349. debugLogWidgetClass(_model);
  2350. return FlutterFlowDropDown<String>(
  2351. controller: _model.dropDownEntreeValueController ??=
  2352. FormFieldController<String>(
  2353. _model.dropDownEntreeValue ??= '',
  2354. ),
  2355. options: List<String>.from((getJsonField(
  2356. dropDownEntreeEntreeoptiesResponse.jsonBody,
  2357. r'''$[:].tid''',
  2358. true,
  2359. ) as List?)!
  2360. .map<String>((e) => e.toString())
  2361. .toList()
  2362. .cast<String>()),
  2363. optionLabels: (getJsonField(
  2364. dropDownEntreeEntreeoptiesResponse.jsonBody,
  2365. r'''$[:].naam''',
  2366. true,
  2367. ) as List?)!
  2368. .map<String>((e) => e.toString())
  2369. .toList()
  2370. .cast<String>(),
  2371. onChanged: (val) async {
  2372. safeSetState(
  2373. () => _model.dropDownEntreeValue = val);
  2374. _model.createEntreeTid = _model.dropDownEntreeValue;
  2375. safeSetState(() {});
  2376. },
  2377. width: 200.0,
  2378. height: 40.0,
  2379. textStyle:
  2380. FlutterFlowTheme.of(context).bodyMedium.override(
  2381. font: GoogleFonts.roboto(
  2382. fontWeight: FlutterFlowTheme.of(context)
  2383. .bodyMedium
  2384. .fontWeight,
  2385. fontStyle: FlutterFlowTheme.of(context)
  2386. .bodyMedium
  2387. .fontStyle,
  2388. ),
  2389. letterSpacing: 0.0,
  2390. fontWeight: FlutterFlowTheme.of(context)
  2391. .bodyMedium
  2392. .fontWeight,
  2393. fontStyle: FlutterFlowTheme.of(context)
  2394. .bodyMedium
  2395. .fontStyle,
  2396. ),
  2397. hintText: FFLocalizations.of(context).getText(
  2398. 'ajotnz1f' /* Select... */,
  2399. ),
  2400. icon: Icon(
  2401. Icons.keyboard_arrow_down_rounded,
  2402. color: FlutterFlowTheme.of(context).secondaryText,
  2403. size: 24.0,
  2404. ),
  2405. fillColor:
  2406. FlutterFlowTheme.of(context).secondaryBackground,
  2407. elevation: 2.0,
  2408. borderColor: Colors.transparent,
  2409. borderWidth: 0.0,
  2410. borderRadius: 8.0,
  2411. margin: EdgeInsetsDirectional.fromSTEB(
  2412. 12.0, 0.0, 12.0, 0.0),
  2413. hidesUnderline: true,
  2414. isOverButton: false,
  2415. isSearchable: false,
  2416. isMultiSelect: false,
  2417. );
  2418. },
  2419. ),
  2420. ),
  2421. Align(
  2422. alignment: AlignmentDirectional(-1.0, 0.0),
  2423. child: FFButtonWidget(
  2424. onPressed: () async {
  2425. final selectedMedia =
  2426. await selectMediaWithSourceBottomSheet(
  2427. context: context,
  2428. allowPhoto: true,
  2429. );
  2430. if (selectedMedia != null &&
  2431. selectedMedia.every((m) =>
  2432. validateFileFormat(m.storagePath, context))) {
  2433. safeSetState(() => _model
  2434. .isDataUploading_uploadDatalogoUpload = true);
  2435. var selectedUploadedFiles = <FFUploadedFile>[];
  2436. try {
  2437. selectedUploadedFiles = selectedMedia
  2438. .map((m) => FFUploadedFile(
  2439. name: m.storagePath.split('/').last,
  2440. bytes: m.bytes,
  2441. height: m.dimensions?.height,
  2442. width: m.dimensions?.width,
  2443. blurHash: m.blurHash,
  2444. originalFilename: m.originalFilename,
  2445. ))
  2446. .toList();
  2447. } finally {
  2448. _model.isDataUploading_uploadDatalogoUpload = false;
  2449. }
  2450. if (selectedUploadedFiles.length ==
  2451. selectedMedia.length) {
  2452. safeSetState(() {
  2453. _model.uploadedLocalFile_uploadDatalogoUpload =
  2454. selectedUploadedFiles.first;
  2455. });
  2456. } else {
  2457. safeSetState(() {});
  2458. return;
  2459. }
  2460. }
  2461. _model.logouploadResult = await actions.bestandUpload(
  2462. _model.uploadedLocalFile_uploadDatalogoUpload,
  2463. 'https://uitgaanskrant.com/en/flutterdrup/bestand_upload/upload.json',
  2464. FFAppState().userSessionname,
  2465. FFAppState().userSessionid,
  2466. FFAppState().userToken,
  2467. );
  2468. _model.createLogoFid = getJsonField(
  2469. _model.logouploadResult,
  2470. r'''$.fid''',
  2471. ).toString();
  2472. safeSetState(() {});
  2473. safeSetState(() {});
  2474. },
  2475. text: FFLocalizations.of(context).getText(
  2476. 'r6ckp0e0' /* Logo kiezen */,
  2477. ),
  2478. options: FFButtonOptions(
  2479. height: 40.0,
  2480. padding: EdgeInsetsDirectional.fromSTEB(
  2481. 16.0, 0.0, 16.0, 0.0),
  2482. iconPadding:
  2483. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  2484. color: FlutterFlowTheme.of(context).secondary,
  2485. textStyle:
  2486. FlutterFlowTheme.of(context).titleSmall.override(
  2487. font: GoogleFonts.roboto(
  2488. fontWeight: FlutterFlowTheme.of(context)
  2489. .titleSmall
  2490. .fontWeight,
  2491. fontStyle: FlutterFlowTheme.of(context)
  2492. .titleSmall
  2493. .fontStyle,
  2494. ),
  2495. color: Colors.white,
  2496. letterSpacing: 0.0,
  2497. fontWeight: FlutterFlowTheme.of(context)
  2498. .titleSmall
  2499. .fontWeight,
  2500. fontStyle: FlutterFlowTheme.of(context)
  2501. .titleSmall
  2502. .fontStyle,
  2503. ),
  2504. elevation: 0.0,
  2505. borderRadius: BorderRadius.circular(8.0),
  2506. ),
  2507. ),
  2508. ),
  2509. if (_model.createFotosFids.length < 5)
  2510. Align(
  2511. alignment: AlignmentDirectional(-1.0, 0.0),
  2512. child: FFButtonWidget(
  2513. onPressed: () async {
  2514. final selectedMedia =
  2515. await selectMediaWithSourceBottomSheet(
  2516. context: context,
  2517. allowPhoto: true,
  2518. );
  2519. if (selectedMedia != null &&
  2520. selectedMedia.every((m) =>
  2521. validateFileFormat(m.storagePath, context))) {
  2522. safeSetState(() => _model
  2523. .isDataUploading_uploadDataFotoos2 = true);
  2524. var selectedUploadedFiles = <FFUploadedFile>[];
  2525. try {
  2526. selectedUploadedFiles = selectedMedia
  2527. .map((m) => FFUploadedFile(
  2528. name: m.storagePath.split('/').last,
  2529. bytes: m.bytes,
  2530. height: m.dimensions?.height,
  2531. width: m.dimensions?.width,
  2532. blurHash: m.blurHash,
  2533. originalFilename: m.originalFilename,
  2534. ))
  2535. .toList();
  2536. } finally {
  2537. _model.isDataUploading_uploadDataFotoos2 = false;
  2538. }
  2539. if (selectedUploadedFiles.length ==
  2540. selectedMedia.length) {
  2541. safeSetState(() {
  2542. _model.uploadedLocalFile_uploadDataFotoos2 =
  2543. selectedUploadedFiles.first;
  2544. });
  2545. } else {
  2546. safeSetState(() {});
  2547. return;
  2548. }
  2549. }
  2550. _model.fotouploadResult = await actions.bestandUpload(
  2551. _model.uploadedLocalFile_uploadDataFotoos2,
  2552. 'https://uitgaanskrant.com/en/flutterdrup/bestand_upload/upload.json',
  2553. FFAppState().userSessionname,
  2554. FFAppState().userSessionid,
  2555. FFAppState().userToken,
  2556. );
  2557. _model.addToCreateFotosFids(getJsonField(
  2558. _model.fotouploadResult,
  2559. r'''$.fid''',
  2560. ).toString());
  2561. safeSetState(() {});
  2562. safeSetState(() {});
  2563. },
  2564. text: FFLocalizations.of(context).getText(
  2565. '41moeajb' /* Foto's kiezen */,
  2566. ),
  2567. options: FFButtonOptions(
  2568. height: 40.0,
  2569. padding: EdgeInsetsDirectional.fromSTEB(
  2570. 16.0, 0.0, 16.0, 0.0),
  2571. iconPadding: EdgeInsetsDirectional.fromSTEB(
  2572. 0.0, 0.0, 0.0, 0.0),
  2573. color: FlutterFlowTheme.of(context).secondary,
  2574. textStyle:
  2575. FlutterFlowTheme.of(context).titleSmall.override(
  2576. font: GoogleFonts.roboto(
  2577. fontWeight: FlutterFlowTheme.of(context)
  2578. .titleSmall
  2579. .fontWeight,
  2580. fontStyle: FlutterFlowTheme.of(context)
  2581. .titleSmall
  2582. .fontStyle,
  2583. ),
  2584. color: Colors.white,
  2585. letterSpacing: 0.0,
  2586. fontWeight: FlutterFlowTheme.of(context)
  2587. .titleSmall
  2588. .fontWeight,
  2589. fontStyle: FlutterFlowTheme.of(context)
  2590. .titleSmall
  2591. .fontStyle,
  2592. ),
  2593. elevation: 0.0,
  2594. borderRadius: BorderRadius.circular(8.0),
  2595. ),
  2596. ),
  2597. ),
  2598. if (_model.createPlaatsID != null &&
  2599. _model.createPlaatsID != '')
  2600. FFButtonWidget(
  2601. onPressed: () async {
  2602. _model.createResult =
  2603. await actions.stadsactiviteitCreate(
  2604. FFAppState().userSessionname,
  2605. FFAppState().userSessionid,
  2606. FFAppState().userToken,
  2607. _model.textFieldTitelTextController.text,
  2608. _model.createPlaatsID!,
  2609. functions.datumVoorApi(
  2610. _model.textFieldDatumStartTextController.text)!,
  2611. functions.datumVoorApi(
  2612. _model.textFieldDatumEindTextController.text),
  2613. _model.textFieldOmschrijvingTextController.text,
  2614. _model.textFieldOrganisatorTextController.text,
  2615. _model.textFieldContactTextController.text,
  2616. _model.textFieldAdresTextController.text,
  2617. _model.textFieldPlaatsTextController.text,
  2618. _model.textFieldPostcodeTextController.text,
  2619. _model.textFieldEntreeprijsTextController.text,
  2620. _model.textFieldToelichtingEntreeTextController.text,
  2621. _model.createCategorieTids.toList(),
  2622. _model.textFieldWebsiteURLTextController.text,
  2623. _model.createLogoFid,
  2624. _model.createFotosFids.toList(),
  2625. _model.createEntreeTid,
  2626. );
  2627. if (getJsonField(
  2628. _model.createResult,
  2629. r'''$.success''',
  2630. )) {
  2631. ScaffoldMessenger.of(context).showSnackBar(
  2632. SnackBar(
  2633. content: Text(
  2634. 'Je activiteit is ingediend en wordt beoordeeld door de redactie.',
  2635. style: TextStyle(
  2636. color:
  2637. FlutterFlowTheme.of(context).primaryText,
  2638. ),
  2639. ),
  2640. duration: Duration(milliseconds: 5000),
  2641. backgroundColor:
  2642. FlutterFlowTheme.of(context).secondary,
  2643. ),
  2644. );
  2645. context.safePop();
  2646. } else {
  2647. ScaffoldMessenger.of(context).showSnackBar(
  2648. SnackBar(
  2649. content: Text(
  2650. getJsonField(
  2651. _model.createResult,
  2652. r'''$.error''',
  2653. ).toString(),
  2654. style: TextStyle(
  2655. color:
  2656. FlutterFlowTheme.of(context).primaryText,
  2657. ),
  2658. ),
  2659. duration: Duration(milliseconds: 4000),
  2660. backgroundColor:
  2661. FlutterFlowTheme.of(context).secondary,
  2662. ),
  2663. );
  2664. }
  2665. safeSetState(() {});
  2666. },
  2667. text: FFLocalizations.of(context).getText(
  2668. 'g6cr9u4n' /* Activiteit indienen */,
  2669. ),
  2670. options: FFButtonOptions(
  2671. height: 40.0,
  2672. padding: EdgeInsetsDirectional.fromSTEB(
  2673. 16.0, 0.0, 16.0, 0.0),
  2674. iconPadding:
  2675. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  2676. color: FlutterFlowTheme.of(context).secondary,
  2677. textStyle:
  2678. FlutterFlowTheme.of(context).titleSmall.override(
  2679. font: GoogleFonts.roboto(
  2680. fontWeight: FlutterFlowTheme.of(context)
  2681. .titleSmall
  2682. .fontWeight,
  2683. fontStyle: FlutterFlowTheme.of(context)
  2684. .titleSmall
  2685. .fontStyle,
  2686. ),
  2687. color: Colors.white,
  2688. letterSpacing: 0.0,
  2689. fontWeight: FlutterFlowTheme.of(context)
  2690. .titleSmall
  2691. .fontWeight,
  2692. fontStyle: FlutterFlowTheme.of(context)
  2693. .titleSmall
  2694. .fontStyle,
  2695. ),
  2696. elevation: 0.0,
  2697. borderRadius: BorderRadius.circular(8.0),
  2698. ),
  2699. ),
  2700. ],
  2701. ),
  2702. ),
  2703. ),
  2704. ),
  2705. ),
  2706. );
  2707. }
  2708. }