stadsactiviteit_aanmaken_copy2_widget.dart 193 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536
  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_copy2_model.dart';
  18. export 'stadsactiviteit_aanmaken_copy2_model.dart';
  19. class StadsactiviteitAanmakenCopy2Widget extends StatefulWidget {
  20. const StadsactiviteitAanmakenCopy2Widget({super.key});
  21. static String routeName = 'stadsactiviteitAanmakenCopy2';
  22. static String routePath = '/stadsactiviteitAanmakenCopy2';
  23. @override
  24. State<StadsactiviteitAanmakenCopy2Widget> createState() =>
  25. _StadsactiviteitAanmakenCopy2WidgetState();
  26. }
  27. class _StadsactiviteitAanmakenCopy2WidgetState
  28. extends State<StadsactiviteitAanmakenCopy2Widget> with RouteAware {
  29. late StadsactiviteitAanmakenCopy2Model _model;
  30. final scaffoldKey = GlobalKey<ScaffoldState>();
  31. @override
  32. void initState() {
  33. super.initState();
  34. _model = createModel(context, () => StadsactiviteitAanmakenCopy2Model());
  35. _model.textFieldTitelTextController ??= TextEditingController()
  36. ..addListener(() {
  37. debugLogWidgetClass(_model);
  38. });
  39. _model.textFieldTitelFocusNode ??= FocusNode();
  40. _model.textFieldOmschrijvingTextController ??= TextEditingController()
  41. ..addListener(() {
  42. debugLogWidgetClass(_model);
  43. });
  44. _model.textFieldOmschrijvingFocusNode ??= FocusNode();
  45. _model.textFieldDatumStartTextController ??= TextEditingController()
  46. ..addListener(() {
  47. debugLogWidgetClass(_model);
  48. });
  49. _model.textFieldDatumStartFocusNode ??= FocusNode();
  50. _model.textFieldDatumEindTextController ??= TextEditingController()
  51. ..addListener(() {
  52. debugLogWidgetClass(_model);
  53. });
  54. _model.textFieldDatumEindFocusNode ??= 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.textFieldWebsiteURLTextController ??= TextEditingController()
  81. ..addListener(() {
  82. debugLogWidgetClass(_model);
  83. });
  84. _model.textFieldWebsiteURLFocusNode ??= FocusNode();
  85. _model.textFieldToelichtingEntreeTextController ??= TextEditingController()
  86. ..addListener(() {
  87. debugLogWidgetClass(_model);
  88. });
  89. _model.textFieldToelichtingEntreeFocusNode ??= FocusNode();
  90. _model.textFieldEntreeprijsTextController ??= TextEditingController()
  91. ..addListener(() {
  92. debugLogWidgetClass(_model);
  93. });
  94. _model.textFieldEntreeprijsFocusNode ??= FocusNode();
  95. }
  96. @override
  97. void dispose() {
  98. routeObserver.unsubscribe(this);
  99. _model.dispose();
  100. super.dispose();
  101. }
  102. @override
  103. void didUpdateWidget(StadsactiviteitAanmakenCopy2Widget 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. Align(
  168. alignment: AlignmentDirectional(-1.0, 0.0),
  169. child: Padding(
  170. padding: EdgeInsets.all(16.0),
  171. child: Container(
  172. decoration: BoxDecoration(
  173. color:
  174. FlutterFlowTheme.of(context).secondaryBackground,
  175. borderRadius: BorderRadius.only(),
  176. border: Border.all(
  177. color: Color(0xFFEEEEEE),
  178. width: 3.0,
  179. ),
  180. ),
  181. child: Column(
  182. mainAxisSize: MainAxisSize.max,
  183. children: [
  184. Align(
  185. alignment: AlignmentDirectional(-1.0, 0.0),
  186. child: FutureBuilder<ApiCallResponse>(
  187. future: ProductieGroup.categorieenCall.call(
  188. sessionName: FFAppState().userSessionname,
  189. sessid: FFAppState().userSessionid,
  190. ),
  191. builder: (context, snapshot) {
  192. // Customize what your widget looks like when it's loading.
  193. if (!snapshot.hasData) {
  194. return Center(
  195. child: SizedBox(
  196. width: 80.0,
  197. height: 80.0,
  198. child: SpinKitFadingCircle(
  199. color: FlutterFlowTheme.of(context)
  200. .primary,
  201. size: 80.0,
  202. ),
  203. ),
  204. );
  205. }
  206. final dropDownCategorieenCategorieenResponse =
  207. snapshot.data!;
  208. _model.debugBackendQueries[
  209. 'ProductieGroup.categorieenCall_statusCode_DropDown_hent1o3e'] =
  210. debugSerializeParam(
  211. dropDownCategorieenCategorieenResponse
  212. .statusCode,
  213. ParamType.int,
  214. link:
  215. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  216. name: 'int',
  217. nullable: false,
  218. );
  219. _model.debugBackendQueries[
  220. 'ProductieGroup.categorieenCall_responseBody_DropDown_hent1o3e'] =
  221. debugSerializeParam(
  222. dropDownCategorieenCategorieenResponse
  223. .bodyText,
  224. ParamType.String,
  225. link:
  226. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  227. name: 'String',
  228. nullable: false,
  229. );
  230. debugLogWidgetClass(_model);
  231. return FlutterFlowDropDown<String>(
  232. multiSelectController: _model
  233. .dropDownCategorieenValueController ??=
  234. FormListFieldController<String>(null),
  235. options: List<String>.from(
  236. functions.categorieSubTids(
  237. dropDownCategorieenCategorieenResponse
  238. .jsonBody)!),
  239. optionLabels: functions.categorieSubLabels(
  240. dropDownCategorieenCategorieenResponse
  241. .jsonBody)!,
  242. width: 200.0,
  243. height: 40.0,
  244. searchHintTextStyle:
  245. FlutterFlowTheme.of(context)
  246. .labelMedium
  247. .override(
  248. font: GoogleFonts.roboto(
  249. fontWeight:
  250. FlutterFlowTheme.of(context)
  251. .labelMedium
  252. .fontWeight,
  253. fontStyle:
  254. FlutterFlowTheme.of(context)
  255. .labelMedium
  256. .fontStyle,
  257. ),
  258. letterSpacing: 0.0,
  259. fontWeight:
  260. FlutterFlowTheme.of(context)
  261. .labelMedium
  262. .fontWeight,
  263. fontStyle:
  264. FlutterFlowTheme.of(context)
  265. .labelMedium
  266. .fontStyle,
  267. ),
  268. searchTextStyle:
  269. FlutterFlowTheme.of(context)
  270. .bodyMedium
  271. .override(
  272. font: GoogleFonts.roboto(
  273. fontWeight:
  274. FlutterFlowTheme.of(context)
  275. .bodyMedium
  276. .fontWeight,
  277. fontStyle:
  278. FlutterFlowTheme.of(context)
  279. .bodyMedium
  280. .fontStyle,
  281. ),
  282. letterSpacing: 0.0,
  283. fontWeight:
  284. FlutterFlowTheme.of(context)
  285. .bodyMedium
  286. .fontWeight,
  287. fontStyle:
  288. FlutterFlowTheme.of(context)
  289. .bodyMedium
  290. .fontStyle,
  291. ),
  292. textStyle: FlutterFlowTheme.of(context)
  293. .bodyMedium
  294. .override(
  295. font: GoogleFonts.roboto(
  296. fontWeight:
  297. FlutterFlowTheme.of(context)
  298. .bodyMedium
  299. .fontWeight,
  300. fontStyle:
  301. FlutterFlowTheme.of(context)
  302. .bodyMedium
  303. .fontStyle,
  304. ),
  305. letterSpacing: 0.0,
  306. fontWeight:
  307. FlutterFlowTheme.of(context)
  308. .bodyMedium
  309. .fontWeight,
  310. fontStyle:
  311. FlutterFlowTheme.of(context)
  312. .bodyMedium
  313. .fontStyle,
  314. ),
  315. hintText:
  316. FFLocalizations.of(context).getText(
  317. '2kz7knny' /* Select... */,
  318. ),
  319. searchHintText:
  320. FFLocalizations.of(context).getText(
  321. 'n3og1oyf' /* Search... */,
  322. ),
  323. icon: Icon(
  324. Icons.keyboard_arrow_down_rounded,
  325. color: FlutterFlowTheme.of(context)
  326. .secondaryText,
  327. size: 24.0,
  328. ),
  329. fillColor: FlutterFlowTheme.of(context)
  330. .secondaryBackground,
  331. elevation: 2.0,
  332. borderColor: Colors.transparent,
  333. borderWidth: 0.0,
  334. borderRadius: 8.0,
  335. margin: EdgeInsetsDirectional.fromSTEB(
  336. 12.0, 0.0, 12.0, 0.0),
  337. hidesUnderline: true,
  338. isOverButton: false,
  339. isSearchable: true,
  340. isMultiSelect: true,
  341. onMultiSelectChanged: (val) async {
  342. safeSetState(() => _model
  343. .dropDownCategorieenValue = val);
  344. _model.createCategorieTids = _model
  345. .dropDownCategorieenValue!
  346. .toList()
  347. .cast<String>();
  348. safeSetState(() {});
  349. },
  350. );
  351. },
  352. ),
  353. ),
  354. Container(
  355. width: 200.0,
  356. child: TextFormField(
  357. controller: _model.textFieldTitelTextController,
  358. focusNode: _model.textFieldTitelFocusNode,
  359. autofocus: false,
  360. enabled: true,
  361. obscureText: false,
  362. decoration: InputDecoration(
  363. isDense: true,
  364. labelText:
  365. FFLocalizations.of(context).getText(
  366. 'nqtd9jna' /* Titel */,
  367. ),
  368. labelStyle: FlutterFlowTheme.of(context)
  369. .labelMedium
  370. .override(
  371. font: GoogleFonts.roboto(
  372. fontWeight:
  373. FlutterFlowTheme.of(context)
  374. .labelMedium
  375. .fontWeight,
  376. fontStyle:
  377. FlutterFlowTheme.of(context)
  378. .labelMedium
  379. .fontStyle,
  380. ),
  381. letterSpacing: 0.0,
  382. fontWeight: FlutterFlowTheme.of(context)
  383. .labelMedium
  384. .fontWeight,
  385. fontStyle: FlutterFlowTheme.of(context)
  386. .labelMedium
  387. .fontStyle,
  388. ),
  389. hintText: FFLocalizations.of(context).getText(
  390. 'ryvdazza' /* Titel activiteit */,
  391. ),
  392. hintStyle: FlutterFlowTheme.of(context)
  393. .labelMedium
  394. .override(
  395. font: GoogleFonts.roboto(
  396. fontWeight:
  397. FlutterFlowTheme.of(context)
  398. .labelMedium
  399. .fontWeight,
  400. fontStyle:
  401. FlutterFlowTheme.of(context)
  402. .labelMedium
  403. .fontStyle,
  404. ),
  405. letterSpacing: 0.0,
  406. fontWeight: FlutterFlowTheme.of(context)
  407. .labelMedium
  408. .fontWeight,
  409. fontStyle: FlutterFlowTheme.of(context)
  410. .labelMedium
  411. .fontStyle,
  412. ),
  413. enabledBorder: OutlineInputBorder(
  414. borderSide: BorderSide(
  415. color: Color(0x00000000),
  416. width: 1.0,
  417. ),
  418. borderRadius: BorderRadius.circular(8.0),
  419. ),
  420. focusedBorder: OutlineInputBorder(
  421. borderSide: BorderSide(
  422. color: Color(0x00000000),
  423. width: 1.0,
  424. ),
  425. borderRadius: BorderRadius.circular(8.0),
  426. ),
  427. errorBorder: OutlineInputBorder(
  428. borderSide: BorderSide(
  429. color: FlutterFlowTheme.of(context).error,
  430. width: 1.0,
  431. ),
  432. borderRadius: BorderRadius.circular(8.0),
  433. ),
  434. focusedErrorBorder: OutlineInputBorder(
  435. borderSide: BorderSide(
  436. color: FlutterFlowTheme.of(context).error,
  437. width: 1.0,
  438. ),
  439. borderRadius: BorderRadius.circular(8.0),
  440. ),
  441. filled: true,
  442. fillColor: FlutterFlowTheme.of(context)
  443. .secondaryBackground,
  444. ),
  445. style: FlutterFlowTheme.of(context)
  446. .bodyMedium
  447. .override(
  448. font: GoogleFonts.roboto(
  449. fontWeight: FlutterFlowTheme.of(context)
  450. .bodyMedium
  451. .fontWeight,
  452. fontStyle: FlutterFlowTheme.of(context)
  453. .bodyMedium
  454. .fontStyle,
  455. ),
  456. letterSpacing: 0.0,
  457. fontWeight: FlutterFlowTheme.of(context)
  458. .bodyMedium
  459. .fontWeight,
  460. fontStyle: FlutterFlowTheme.of(context)
  461. .bodyMedium
  462. .fontStyle,
  463. ),
  464. cursorColor:
  465. FlutterFlowTheme.of(context).primaryText,
  466. enableInteractiveSelection: true,
  467. validator: _model
  468. .textFieldTitelTextControllerValidator
  469. .asValidator(context),
  470. ),
  471. ),
  472. Container(
  473. width: double.infinity,
  474. child: TextFormField(
  475. controller:
  476. _model.textFieldOmschrijvingTextController,
  477. focusNode:
  478. _model.textFieldOmschrijvingFocusNode,
  479. autofocus: false,
  480. enabled: true,
  481. obscureText: false,
  482. decoration: InputDecoration(
  483. isDense: true,
  484. labelText:
  485. FFLocalizations.of(context).getText(
  486. 'ampk5opv' /* Omschrijving */,
  487. ),
  488. labelStyle: FlutterFlowTheme.of(context)
  489. .labelMedium
  490. .override(
  491. font: GoogleFonts.roboto(
  492. fontWeight:
  493. FlutterFlowTheme.of(context)
  494. .labelMedium
  495. .fontWeight,
  496. fontStyle:
  497. FlutterFlowTheme.of(context)
  498. .labelMedium
  499. .fontStyle,
  500. ),
  501. letterSpacing: 0.0,
  502. fontWeight: FlutterFlowTheme.of(context)
  503. .labelMedium
  504. .fontWeight,
  505. fontStyle: FlutterFlowTheme.of(context)
  506. .labelMedium
  507. .fontStyle,
  508. ),
  509. hintText: FFLocalizations.of(context).getText(
  510. '2gwavo43' /* Omschrijving activiteit */,
  511. ),
  512. hintStyle: FlutterFlowTheme.of(context)
  513. .labelMedium
  514. .override(
  515. font: GoogleFonts.roboto(
  516. fontWeight:
  517. FlutterFlowTheme.of(context)
  518. .labelMedium
  519. .fontWeight,
  520. fontStyle:
  521. FlutterFlowTheme.of(context)
  522. .labelMedium
  523. .fontStyle,
  524. ),
  525. letterSpacing: 0.0,
  526. fontWeight: FlutterFlowTheme.of(context)
  527. .labelMedium
  528. .fontWeight,
  529. fontStyle: FlutterFlowTheme.of(context)
  530. .labelMedium
  531. .fontStyle,
  532. ),
  533. enabledBorder: OutlineInputBorder(
  534. borderSide: BorderSide(
  535. color: Color(0x00000000),
  536. width: 1.0,
  537. ),
  538. borderRadius: BorderRadius.circular(8.0),
  539. ),
  540. focusedBorder: OutlineInputBorder(
  541. borderSide: BorderSide(
  542. color: Color(0x00000000),
  543. width: 1.0,
  544. ),
  545. borderRadius: BorderRadius.circular(8.0),
  546. ),
  547. errorBorder: OutlineInputBorder(
  548. borderSide: BorderSide(
  549. color: FlutterFlowTheme.of(context).error,
  550. width: 1.0,
  551. ),
  552. borderRadius: BorderRadius.circular(8.0),
  553. ),
  554. focusedErrorBorder: OutlineInputBorder(
  555. borderSide: BorderSide(
  556. color: FlutterFlowTheme.of(context).error,
  557. width: 1.0,
  558. ),
  559. borderRadius: BorderRadius.circular(8.0),
  560. ),
  561. filled: true,
  562. fillColor: FlutterFlowTheme.of(context)
  563. .secondaryBackground,
  564. ),
  565. style: FlutterFlowTheme.of(context)
  566. .bodyMedium
  567. .override(
  568. font: GoogleFonts.roboto(
  569. fontWeight: FlutterFlowTheme.of(context)
  570. .bodyMedium
  571. .fontWeight,
  572. fontStyle: FlutterFlowTheme.of(context)
  573. .bodyMedium
  574. .fontStyle,
  575. ),
  576. letterSpacing: 0.0,
  577. fontWeight: FlutterFlowTheme.of(context)
  578. .bodyMedium
  579. .fontWeight,
  580. fontStyle: FlutterFlowTheme.of(context)
  581. .bodyMedium
  582. .fontStyle,
  583. ),
  584. maxLines: 5,
  585. cursorColor:
  586. FlutterFlowTheme.of(context).primaryText,
  587. enableInteractiveSelection: true,
  588. validator: _model
  589. .textFieldOmschrijvingTextControllerValidator
  590. .asValidator(context),
  591. ),
  592. ),
  593. ],
  594. ),
  595. ),
  596. ),
  597. ),
  598. Align(
  599. alignment: AlignmentDirectional(-1.0, 0.0),
  600. child: Padding(
  601. padding: EdgeInsets.all(16.0),
  602. child: Container(
  603. decoration: BoxDecoration(
  604. color:
  605. FlutterFlowTheme.of(context).secondaryBackground,
  606. borderRadius: BorderRadius.only(),
  607. border: Border.all(
  608. color: Color(0xFFEEEEEE),
  609. width: 3.0,
  610. ),
  611. ),
  612. child: Column(
  613. mainAxisSize: MainAxisSize.max,
  614. children: [
  615. Text(
  616. FFLocalizations.of(context).getText(
  617. 'pyvi42y4' /* Hello World */,
  618. ),
  619. style: FlutterFlowTheme.of(context)
  620. .bodyMedium
  621. .override(
  622. font: GoogleFonts.roboto(
  623. fontWeight: FlutterFlowTheme.of(context)
  624. .bodyMedium
  625. .fontWeight,
  626. fontStyle: FlutterFlowTheme.of(context)
  627. .bodyMedium
  628. .fontStyle,
  629. ),
  630. letterSpacing: 0.0,
  631. fontWeight: FlutterFlowTheme.of(context)
  632. .bodyMedium
  633. .fontWeight,
  634. fontStyle: FlutterFlowTheme.of(context)
  635. .bodyMedium
  636. .fontStyle,
  637. ),
  638. ),
  639. InkWell(
  640. splashColor: Colors.transparent,
  641. focusColor: Colors.transparent,
  642. hoverColor: Colors.transparent,
  643. highlightColor: Colors.transparent,
  644. onTap: () async {
  645. final _datePicked1Date = await showDatePicker(
  646. context: context,
  647. initialDate: getCurrentTimestamp,
  648. firstDate: getCurrentTimestamp,
  649. lastDate: DateTime(2050),
  650. builder: (context, child) {
  651. return wrapInMaterialDatePickerTheme(
  652. context,
  653. child!,
  654. headerBackgroundColor:
  655. FlutterFlowTheme.of(context).primary,
  656. headerForegroundColor:
  657. FlutterFlowTheme.of(context).info,
  658. headerTextStyle: FlutterFlowTheme.of(
  659. context)
  660. .headlineLarge
  661. .override(
  662. font: GoogleFonts.roboto(
  663. fontWeight: FontWeight.w600,
  664. fontStyle:
  665. FlutterFlowTheme.of(context)
  666. .headlineLarge
  667. .fontStyle,
  668. ),
  669. fontSize: 32.0,
  670. letterSpacing: 0.0,
  671. fontWeight: FontWeight.w600,
  672. fontStyle:
  673. FlutterFlowTheme.of(context)
  674. .headlineLarge
  675. .fontStyle,
  676. ),
  677. pickerBackgroundColor:
  678. FlutterFlowTheme.of(context)
  679. .secondaryBackground,
  680. pickerForegroundColor:
  681. FlutterFlowTheme.of(context)
  682. .primaryText,
  683. selectedDateTimeBackgroundColor:
  684. FlutterFlowTheme.of(context).primary,
  685. selectedDateTimeForegroundColor:
  686. FlutterFlowTheme.of(context).info,
  687. actionButtonForegroundColor:
  688. FlutterFlowTheme.of(context)
  689. .primaryText,
  690. iconSize: 24.0,
  691. );
  692. },
  693. );
  694. TimeOfDay? _datePicked1Time;
  695. if (_datePicked1Date != null) {
  696. _datePicked1Time = await showTimePicker(
  697. context: context,
  698. initialTime: TimeOfDay.fromDateTime(
  699. getCurrentTimestamp),
  700. builder: (context, child) {
  701. return wrapInMaterialTimePickerTheme(
  702. context,
  703. child!,
  704. headerBackgroundColor:
  705. FlutterFlowTheme.of(context)
  706. .primary,
  707. headerForegroundColor:
  708. FlutterFlowTheme.of(context).info,
  709. headerTextStyle: FlutterFlowTheme.of(
  710. context)
  711. .headlineLarge
  712. .override(
  713. font: GoogleFonts.roboto(
  714. fontWeight: FontWeight.w600,
  715. fontStyle:
  716. FlutterFlowTheme.of(context)
  717. .headlineLarge
  718. .fontStyle,
  719. ),
  720. fontSize: 32.0,
  721. letterSpacing: 0.0,
  722. fontWeight: FontWeight.w600,
  723. fontStyle:
  724. FlutterFlowTheme.of(context)
  725. .headlineLarge
  726. .fontStyle,
  727. ),
  728. pickerBackgroundColor:
  729. FlutterFlowTheme.of(context)
  730. .secondaryBackground,
  731. pickerForegroundColor:
  732. FlutterFlowTheme.of(context)
  733. .primaryText,
  734. selectedDateTimeBackgroundColor:
  735. FlutterFlowTheme.of(context)
  736. .primary,
  737. selectedDateTimeForegroundColor:
  738. FlutterFlowTheme.of(context).info,
  739. actionButtonForegroundColor:
  740. FlutterFlowTheme.of(context)
  741. .primaryText,
  742. iconSize: 24.0,
  743. );
  744. },
  745. );
  746. }
  747. if (_datePicked1Date != null &&
  748. _datePicked1Time != null) {
  749. safeSetState(() {
  750. _model.datePicked1 = DateTime(
  751. _datePicked1Date.year,
  752. _datePicked1Date.month,
  753. _datePicked1Date.day,
  754. _datePicked1Time!.hour,
  755. _datePicked1Time.minute,
  756. );
  757. });
  758. } else if (_model.datePicked1 != null) {
  759. safeSetState(() {
  760. _model.datePicked1 = getCurrentTimestamp;
  761. });
  762. }
  763. safeSetState(() {
  764. _model.textFieldDatumStartTextController
  765. ?.text = _model.datePicked1!.toString();
  766. });
  767. },
  768. child: Container(
  769. width: double.infinity,
  770. decoration: BoxDecoration(),
  771. child: Container(
  772. width: double.infinity,
  773. child: TextFormField(
  774. controller: _model
  775. .textFieldDatumStartTextController,
  776. focusNode:
  777. _model.textFieldDatumStartFocusNode,
  778. autofocus: false,
  779. enabled: false,
  780. readOnly: true,
  781. obscureText: false,
  782. decoration: InputDecoration(
  783. isDense: true,
  784. labelText:
  785. FFLocalizations.of(context).getText(
  786. 'l54f2ssh' /* Datum */,
  787. ),
  788. labelStyle: FlutterFlowTheme.of(context)
  789. .labelMedium
  790. .override(
  791. font: GoogleFonts.roboto(
  792. fontWeight:
  793. FlutterFlowTheme.of(context)
  794. .labelMedium
  795. .fontWeight,
  796. fontStyle:
  797. FlutterFlowTheme.of(context)
  798. .labelMedium
  799. .fontStyle,
  800. ),
  801. letterSpacing: 0.0,
  802. fontWeight:
  803. FlutterFlowTheme.of(context)
  804. .labelMedium
  805. .fontWeight,
  806. fontStyle:
  807. FlutterFlowTheme.of(context)
  808. .labelMedium
  809. .fontStyle,
  810. ),
  811. hintText:
  812. FFLocalizations.of(context).getText(
  813. 'mtdvafwj' /* Datum */,
  814. ),
  815. hintStyle: FlutterFlowTheme.of(context)
  816. .labelMedium
  817. .override(
  818. font: GoogleFonts.roboto(
  819. fontWeight:
  820. FlutterFlowTheme.of(context)
  821. .labelMedium
  822. .fontWeight,
  823. fontStyle:
  824. FlutterFlowTheme.of(context)
  825. .labelMedium
  826. .fontStyle,
  827. ),
  828. letterSpacing: 0.0,
  829. fontWeight:
  830. FlutterFlowTheme.of(context)
  831. .labelMedium
  832. .fontWeight,
  833. fontStyle:
  834. FlutterFlowTheme.of(context)
  835. .labelMedium
  836. .fontStyle,
  837. ),
  838. enabledBorder: OutlineInputBorder(
  839. borderSide: BorderSide(
  840. color: Color(0x00000000),
  841. width: 1.0,
  842. ),
  843. borderRadius:
  844. BorderRadius.circular(8.0),
  845. ),
  846. focusedBorder: OutlineInputBorder(
  847. borderSide: BorderSide(
  848. color: Color(0x00000000),
  849. width: 1.0,
  850. ),
  851. borderRadius:
  852. BorderRadius.circular(8.0),
  853. ),
  854. errorBorder: OutlineInputBorder(
  855. borderSide: BorderSide(
  856. color: FlutterFlowTheme.of(context)
  857. .error,
  858. width: 1.0,
  859. ),
  860. borderRadius:
  861. BorderRadius.circular(8.0),
  862. ),
  863. focusedErrorBorder: OutlineInputBorder(
  864. borderSide: BorderSide(
  865. color: FlutterFlowTheme.of(context)
  866. .error,
  867. width: 1.0,
  868. ),
  869. borderRadius:
  870. BorderRadius.circular(8.0),
  871. ),
  872. filled: true,
  873. fillColor: FlutterFlowTheme.of(context)
  874. .secondaryBackground,
  875. ),
  876. style: FlutterFlowTheme.of(context)
  877. .bodyMedium
  878. .override(
  879. font: GoogleFonts.roboto(
  880. fontWeight:
  881. FlutterFlowTheme.of(context)
  882. .bodyMedium
  883. .fontWeight,
  884. fontStyle:
  885. FlutterFlowTheme.of(context)
  886. .bodyMedium
  887. .fontStyle,
  888. ),
  889. letterSpacing: 0.0,
  890. fontWeight:
  891. FlutterFlowTheme.of(context)
  892. .bodyMedium
  893. .fontWeight,
  894. fontStyle:
  895. FlutterFlowTheme.of(context)
  896. .bodyMedium
  897. .fontStyle,
  898. ),
  899. cursorColor: FlutterFlowTheme.of(context)
  900. .primaryText,
  901. enableInteractiveSelection: true,
  902. validator: _model
  903. .textFieldDatumStartTextControllerValidator
  904. .asValidator(context),
  905. ),
  906. ),
  907. ),
  908. ),
  909. InkWell(
  910. splashColor: Colors.transparent,
  911. focusColor: Colors.transparent,
  912. hoverColor: Colors.transparent,
  913. highlightColor: Colors.transparent,
  914. onTap: () async {
  915. final _datePicked2Date = await showDatePicker(
  916. context: context,
  917. initialDate: getCurrentTimestamp,
  918. firstDate: getCurrentTimestamp,
  919. lastDate: DateTime(2050),
  920. builder: (context, child) {
  921. return wrapInMaterialDatePickerTheme(
  922. context,
  923. child!,
  924. headerBackgroundColor:
  925. FlutterFlowTheme.of(context).primary,
  926. headerForegroundColor:
  927. FlutterFlowTheme.of(context).info,
  928. headerTextStyle: FlutterFlowTheme.of(
  929. context)
  930. .headlineLarge
  931. .override(
  932. font: GoogleFonts.roboto(
  933. fontWeight: FontWeight.w600,
  934. fontStyle:
  935. FlutterFlowTheme.of(context)
  936. .headlineLarge
  937. .fontStyle,
  938. ),
  939. fontSize: 32.0,
  940. letterSpacing: 0.0,
  941. fontWeight: FontWeight.w600,
  942. fontStyle:
  943. FlutterFlowTheme.of(context)
  944. .headlineLarge
  945. .fontStyle,
  946. ),
  947. pickerBackgroundColor:
  948. FlutterFlowTheme.of(context)
  949. .secondaryBackground,
  950. pickerForegroundColor:
  951. FlutterFlowTheme.of(context)
  952. .primaryText,
  953. selectedDateTimeBackgroundColor:
  954. FlutterFlowTheme.of(context).primary,
  955. selectedDateTimeForegroundColor:
  956. FlutterFlowTheme.of(context).info,
  957. actionButtonForegroundColor:
  958. FlutterFlowTheme.of(context)
  959. .primaryText,
  960. iconSize: 24.0,
  961. );
  962. },
  963. );
  964. TimeOfDay? _datePicked2Time;
  965. if (_datePicked2Date != null) {
  966. _datePicked2Time = await showTimePicker(
  967. context: context,
  968. initialTime: TimeOfDay.fromDateTime(
  969. getCurrentTimestamp),
  970. builder: (context, child) {
  971. return wrapInMaterialTimePickerTheme(
  972. context,
  973. child!,
  974. headerBackgroundColor:
  975. FlutterFlowTheme.of(context)
  976. .primary,
  977. headerForegroundColor:
  978. FlutterFlowTheme.of(context).info,
  979. headerTextStyle: FlutterFlowTheme.of(
  980. context)
  981. .headlineLarge
  982. .override(
  983. font: GoogleFonts.roboto(
  984. fontWeight: FontWeight.w600,
  985. fontStyle:
  986. FlutterFlowTheme.of(context)
  987. .headlineLarge
  988. .fontStyle,
  989. ),
  990. fontSize: 32.0,
  991. letterSpacing: 0.0,
  992. fontWeight: FontWeight.w600,
  993. fontStyle:
  994. FlutterFlowTheme.of(context)
  995. .headlineLarge
  996. .fontStyle,
  997. ),
  998. pickerBackgroundColor:
  999. FlutterFlowTheme.of(context)
  1000. .secondaryBackground,
  1001. pickerForegroundColor:
  1002. FlutterFlowTheme.of(context)
  1003. .primaryText,
  1004. selectedDateTimeBackgroundColor:
  1005. FlutterFlowTheme.of(context)
  1006. .primary,
  1007. selectedDateTimeForegroundColor:
  1008. FlutterFlowTheme.of(context).info,
  1009. actionButtonForegroundColor:
  1010. FlutterFlowTheme.of(context)
  1011. .primaryText,
  1012. iconSize: 24.0,
  1013. );
  1014. },
  1015. );
  1016. }
  1017. if (_datePicked2Date != null &&
  1018. _datePicked2Time != null) {
  1019. safeSetState(() {
  1020. _model.datePicked2 = DateTime(
  1021. _datePicked2Date.year,
  1022. _datePicked2Date.month,
  1023. _datePicked2Date.day,
  1024. _datePicked2Time!.hour,
  1025. _datePicked2Time.minute,
  1026. );
  1027. });
  1028. } else if (_model.datePicked2 != null) {
  1029. safeSetState(() {
  1030. _model.datePicked2 = getCurrentTimestamp;
  1031. });
  1032. }
  1033. safeSetState(() {
  1034. _model.textFieldDatumEindTextController
  1035. ?.text = _model.datePicked2!.toString();
  1036. });
  1037. },
  1038. child: Container(
  1039. width: double.infinity,
  1040. decoration: BoxDecoration(),
  1041. child: Container(
  1042. width: double.infinity,
  1043. child: TextFormField(
  1044. controller:
  1045. _model.textFieldDatumEindTextController,
  1046. focusNode:
  1047. _model.textFieldDatumEindFocusNode,
  1048. autofocus: false,
  1049. enabled: false,
  1050. readOnly: true,
  1051. obscureText: false,
  1052. decoration: InputDecoration(
  1053. isDense: true,
  1054. labelText:
  1055. FFLocalizations.of(context).getText(
  1056. '2rcxmiav' /* Datum eind */,
  1057. ),
  1058. labelStyle: FlutterFlowTheme.of(context)
  1059. .labelMedium
  1060. .override(
  1061. font: GoogleFonts.roboto(
  1062. fontWeight:
  1063. FlutterFlowTheme.of(context)
  1064. .labelMedium
  1065. .fontWeight,
  1066. fontStyle:
  1067. FlutterFlowTheme.of(context)
  1068. .labelMedium
  1069. .fontStyle,
  1070. ),
  1071. letterSpacing: 0.0,
  1072. fontWeight:
  1073. FlutterFlowTheme.of(context)
  1074. .labelMedium
  1075. .fontWeight,
  1076. fontStyle:
  1077. FlutterFlowTheme.of(context)
  1078. .labelMedium
  1079. .fontStyle,
  1080. ),
  1081. hintText:
  1082. FFLocalizations.of(context).getText(
  1083. 'gmlkebkv' /* Datum eind */,
  1084. ),
  1085. hintStyle: FlutterFlowTheme.of(context)
  1086. .labelMedium
  1087. .override(
  1088. font: GoogleFonts.roboto(
  1089. fontWeight:
  1090. FlutterFlowTheme.of(context)
  1091. .labelMedium
  1092. .fontWeight,
  1093. fontStyle:
  1094. FlutterFlowTheme.of(context)
  1095. .labelMedium
  1096. .fontStyle,
  1097. ),
  1098. letterSpacing: 0.0,
  1099. fontWeight:
  1100. FlutterFlowTheme.of(context)
  1101. .labelMedium
  1102. .fontWeight,
  1103. fontStyle:
  1104. FlutterFlowTheme.of(context)
  1105. .labelMedium
  1106. .fontStyle,
  1107. ),
  1108. enabledBorder: OutlineInputBorder(
  1109. borderSide: BorderSide(
  1110. color: Color(0x00000000),
  1111. width: 1.0,
  1112. ),
  1113. borderRadius:
  1114. BorderRadius.circular(8.0),
  1115. ),
  1116. focusedBorder: OutlineInputBorder(
  1117. borderSide: BorderSide(
  1118. color: Color(0x00000000),
  1119. width: 1.0,
  1120. ),
  1121. borderRadius:
  1122. BorderRadius.circular(8.0),
  1123. ),
  1124. errorBorder: OutlineInputBorder(
  1125. borderSide: BorderSide(
  1126. color: FlutterFlowTheme.of(context)
  1127. .error,
  1128. width: 1.0,
  1129. ),
  1130. borderRadius:
  1131. BorderRadius.circular(8.0),
  1132. ),
  1133. focusedErrorBorder: OutlineInputBorder(
  1134. borderSide: BorderSide(
  1135. color: FlutterFlowTheme.of(context)
  1136. .error,
  1137. width: 1.0,
  1138. ),
  1139. borderRadius:
  1140. BorderRadius.circular(8.0),
  1141. ),
  1142. filled: true,
  1143. fillColor: FlutterFlowTheme.of(context)
  1144. .secondaryBackground,
  1145. ),
  1146. style: FlutterFlowTheme.of(context)
  1147. .bodyMedium
  1148. .override(
  1149. font: GoogleFonts.roboto(
  1150. fontWeight:
  1151. FlutterFlowTheme.of(context)
  1152. .bodyMedium
  1153. .fontWeight,
  1154. fontStyle:
  1155. FlutterFlowTheme.of(context)
  1156. .bodyMedium
  1157. .fontStyle,
  1158. ),
  1159. letterSpacing: 0.0,
  1160. fontWeight:
  1161. FlutterFlowTheme.of(context)
  1162. .bodyMedium
  1163. .fontWeight,
  1164. fontStyle:
  1165. FlutterFlowTheme.of(context)
  1166. .bodyMedium
  1167. .fontStyle,
  1168. ),
  1169. cursorColor: FlutterFlowTheme.of(context)
  1170. .primaryText,
  1171. enableInteractiveSelection: true,
  1172. validator: _model
  1173. .textFieldDatumEindTextControllerValidator
  1174. .asValidator(context),
  1175. ),
  1176. ),
  1177. ),
  1178. ),
  1179. ],
  1180. ),
  1181. ),
  1182. ),
  1183. ),
  1184. Container(
  1185. width: double.infinity,
  1186. child: TextFormField(
  1187. controller: _model.textFieldOrganisatorTextController,
  1188. focusNode: _model.textFieldOrganisatorFocusNode,
  1189. autofocus: false,
  1190. enabled: true,
  1191. obscureText: false,
  1192. decoration: InputDecoration(
  1193. isDense: true,
  1194. labelText: FFLocalizations.of(context).getText(
  1195. '3nbyq4l2' /* Organisator */,
  1196. ),
  1197. labelStyle:
  1198. FlutterFlowTheme.of(context).labelMedium.override(
  1199. font: GoogleFonts.roboto(
  1200. fontWeight: FlutterFlowTheme.of(context)
  1201. .labelMedium
  1202. .fontWeight,
  1203. fontStyle: FlutterFlowTheme.of(context)
  1204. .labelMedium
  1205. .fontStyle,
  1206. ),
  1207. letterSpacing: 0.0,
  1208. fontWeight: FlutterFlowTheme.of(context)
  1209. .labelMedium
  1210. .fontWeight,
  1211. fontStyle: FlutterFlowTheme.of(context)
  1212. .labelMedium
  1213. .fontStyle,
  1214. ),
  1215. hintText: FFLocalizations.of(context).getText(
  1216. 'fnlj7bnh' /* Organisator van de activiteit */,
  1217. ),
  1218. hintStyle:
  1219. FlutterFlowTheme.of(context).labelMedium.override(
  1220. font: GoogleFonts.roboto(
  1221. fontWeight: FlutterFlowTheme.of(context)
  1222. .labelMedium
  1223. .fontWeight,
  1224. fontStyle: FlutterFlowTheme.of(context)
  1225. .labelMedium
  1226. .fontStyle,
  1227. ),
  1228. letterSpacing: 0.0,
  1229. fontWeight: FlutterFlowTheme.of(context)
  1230. .labelMedium
  1231. .fontWeight,
  1232. fontStyle: FlutterFlowTheme.of(context)
  1233. .labelMedium
  1234. .fontStyle,
  1235. ),
  1236. enabledBorder: OutlineInputBorder(
  1237. borderSide: BorderSide(
  1238. color: Color(0x00000000),
  1239. width: 1.0,
  1240. ),
  1241. borderRadius: BorderRadius.circular(8.0),
  1242. ),
  1243. focusedBorder: OutlineInputBorder(
  1244. borderSide: BorderSide(
  1245. color: Color(0x00000000),
  1246. width: 1.0,
  1247. ),
  1248. borderRadius: BorderRadius.circular(8.0),
  1249. ),
  1250. errorBorder: OutlineInputBorder(
  1251. borderSide: BorderSide(
  1252. color: FlutterFlowTheme.of(context).error,
  1253. width: 1.0,
  1254. ),
  1255. borderRadius: BorderRadius.circular(8.0),
  1256. ),
  1257. focusedErrorBorder: OutlineInputBorder(
  1258. borderSide: BorderSide(
  1259. color: FlutterFlowTheme.of(context).error,
  1260. width: 1.0,
  1261. ),
  1262. borderRadius: BorderRadius.circular(8.0),
  1263. ),
  1264. filled: true,
  1265. fillColor:
  1266. FlutterFlowTheme.of(context).secondaryBackground,
  1267. ),
  1268. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1269. font: GoogleFonts.roboto(
  1270. fontWeight: FlutterFlowTheme.of(context)
  1271. .bodyMedium
  1272. .fontWeight,
  1273. fontStyle: FlutterFlowTheme.of(context)
  1274. .bodyMedium
  1275. .fontStyle,
  1276. ),
  1277. letterSpacing: 0.0,
  1278. fontWeight: FlutterFlowTheme.of(context)
  1279. .bodyMedium
  1280. .fontWeight,
  1281. fontStyle: FlutterFlowTheme.of(context)
  1282. .bodyMedium
  1283. .fontStyle,
  1284. ),
  1285. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1286. enableInteractiveSelection: true,
  1287. validator: _model
  1288. .textFieldOrganisatorTextControllerValidator
  1289. .asValidator(context),
  1290. ),
  1291. ),
  1292. Align(
  1293. alignment: AlignmentDirectional(-1.0, 0.0),
  1294. child: Padding(
  1295. padding: EdgeInsets.all(16.0),
  1296. child: Container(
  1297. decoration: BoxDecoration(
  1298. color:
  1299. FlutterFlowTheme.of(context).secondaryBackground,
  1300. borderRadius: BorderRadius.only(),
  1301. border: Border.all(
  1302. color: Color(0xFFEEEEEE),
  1303. width: 3.0,
  1304. ),
  1305. ),
  1306. child: Column(
  1307. mainAxisSize: MainAxisSize.max,
  1308. children: [
  1309. Text(
  1310. FFLocalizations.of(context).getText(
  1311. 'a3qrz0nh' /* Hello World */,
  1312. ),
  1313. style: FlutterFlowTheme.of(context)
  1314. .bodyMedium
  1315. .override(
  1316. font: GoogleFonts.roboto(
  1317. fontWeight: FlutterFlowTheme.of(context)
  1318. .bodyMedium
  1319. .fontWeight,
  1320. fontStyle: FlutterFlowTheme.of(context)
  1321. .bodyMedium
  1322. .fontStyle,
  1323. ),
  1324. letterSpacing: 0.0,
  1325. fontWeight: FlutterFlowTheme.of(context)
  1326. .bodyMedium
  1327. .fontWeight,
  1328. fontStyle: FlutterFlowTheme.of(context)
  1329. .bodyMedium
  1330. .fontStyle,
  1331. ),
  1332. ),
  1333. Text(
  1334. FFLocalizations.of(context).getText(
  1335. 'ee0hkizw' /* Stadseditor */,
  1336. ),
  1337. style: FlutterFlowTheme.of(context)
  1338. .bodyMedium
  1339. .override(
  1340. font: GoogleFonts.roboto(
  1341. fontWeight: FlutterFlowTheme.of(context)
  1342. .bodyMedium
  1343. .fontWeight,
  1344. fontStyle: FlutterFlowTheme.of(context)
  1345. .bodyMedium
  1346. .fontStyle,
  1347. ),
  1348. letterSpacing: 0.0,
  1349. fontWeight: FlutterFlowTheme.of(context)
  1350. .bodyMedium
  1351. .fontWeight,
  1352. fontStyle: FlutterFlowTheme.of(context)
  1353. .bodyMedium
  1354. .fontStyle,
  1355. ),
  1356. ),
  1357. if (getJsonField(
  1358. columnMijnStadsrechtenResponse.jsonBody,
  1359. r'''$[0].titel''',
  1360. ) !=
  1361. null)
  1362. FlutterFlowDropDown<String>(
  1363. controller: _model
  1364. .dropDownGemeentenMijngemeentenValueController ??=
  1365. FormFieldController<String>(null),
  1366. options: List<String>.from((getJsonField(
  1367. columnMijnStadsrechtenResponse.jsonBody,
  1368. r'''$[:].tid''',
  1369. true,
  1370. ) as List?)!
  1371. .map<String>((e) => e.toString())
  1372. .toList()
  1373. .cast<String>()),
  1374. optionLabels: (getJsonField(
  1375. columnMijnStadsrechtenResponse.jsonBody,
  1376. r'''$[:].titel''',
  1377. true,
  1378. ) as List?)!
  1379. .map<String>((e) => e.toString())
  1380. .toList()
  1381. .cast<String>(),
  1382. onChanged: (val) async {
  1383. safeSetState(() => _model
  1384. .dropDownGemeentenMijngemeentenValue =
  1385. val);
  1386. _model.createGemeenteID = _model
  1387. .dropDownGemeentenMijngemeentenValue;
  1388. safeSetState(() {});
  1389. },
  1390. width: 200.0,
  1391. height: 40.0,
  1392. textStyle: FlutterFlowTheme.of(context)
  1393. .bodyMedium
  1394. .override(
  1395. font: GoogleFonts.roboto(
  1396. fontWeight: FlutterFlowTheme.of(context)
  1397. .bodyMedium
  1398. .fontWeight,
  1399. fontStyle: FlutterFlowTheme.of(context)
  1400. .bodyMedium
  1401. .fontStyle,
  1402. ),
  1403. letterSpacing: 0.0,
  1404. fontWeight: FlutterFlowTheme.of(context)
  1405. .bodyMedium
  1406. .fontWeight,
  1407. fontStyle: FlutterFlowTheme.of(context)
  1408. .bodyMedium
  1409. .fontStyle,
  1410. ),
  1411. hintText: FFLocalizations.of(context).getText(
  1412. 'q23dvx2e' /* Mijn gemeenten */,
  1413. ),
  1414. icon: Icon(
  1415. Icons.keyboard_arrow_down_rounded,
  1416. color: FlutterFlowTheme.of(context)
  1417. .secondaryText,
  1418. size: 24.0,
  1419. ),
  1420. fillColor: FlutterFlowTheme.of(context)
  1421. .secondaryBackground,
  1422. elevation: 2.0,
  1423. borderColor: Colors.transparent,
  1424. borderWidth: 0.0,
  1425. borderRadius: 8.0,
  1426. margin: EdgeInsetsDirectional.fromSTEB(
  1427. 12.0, 0.0, 12.0, 0.0),
  1428. hidesUnderline: true,
  1429. isOverButton: false,
  1430. isSearchable: false,
  1431. isMultiSelect: false,
  1432. ),
  1433. Row(
  1434. mainAxisSize: MainAxisSize.max,
  1435. children: [
  1436. Align(
  1437. alignment: AlignmentDirectional(-1.0, 0.0),
  1438. child: FutureBuilder<ApiCallResponse>(
  1439. future: ProvinciesCall.call(),
  1440. builder: (context, snapshot) {
  1441. // Customize what your widget looks like when it's loading.
  1442. if (!snapshot.hasData) {
  1443. return Center(
  1444. child: SizedBox(
  1445. width: 80.0,
  1446. height: 80.0,
  1447. child: SpinKitFadingCircle(
  1448. color:
  1449. FlutterFlowTheme.of(context)
  1450. .primary,
  1451. size: 80.0,
  1452. ),
  1453. ),
  1454. );
  1455. }
  1456. final dropDownProvincieProvinciesResponse =
  1457. snapshot.data!;
  1458. _model.debugBackendQueries[
  1459. 'ProvinciesCall_statusCode_DropDown_dfupghjq'] =
  1460. debugSerializeParam(
  1461. dropDownProvincieProvinciesResponse
  1462. .statusCode,
  1463. ParamType.int,
  1464. link:
  1465. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  1466. name: 'int',
  1467. nullable: false,
  1468. );
  1469. _model.debugBackendQueries[
  1470. 'ProvinciesCall_responseBody_DropDown_dfupghjq'] =
  1471. debugSerializeParam(
  1472. dropDownProvincieProvinciesResponse
  1473. .bodyText,
  1474. ParamType.String,
  1475. link:
  1476. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  1477. name: 'String',
  1478. nullable: false,
  1479. );
  1480. debugLogWidgetClass(_model);
  1481. return FlutterFlowDropDown<String>(
  1482. controller: _model
  1483. .dropDownProvincieValueController ??=
  1484. FormFieldController<String>(null),
  1485. options: List<String>.from(
  1486. (getJsonField(
  1487. dropDownProvincieProvinciesResponse
  1488. .jsonBody,
  1489. r'''$[:].provincieid''',
  1490. true,
  1491. ) as List?)!
  1492. .map<String>(
  1493. (e) => e.toString())
  1494. .toList()
  1495. .cast<String>()),
  1496. optionLabels: (getJsonField(
  1497. dropDownProvincieProvinciesResponse
  1498. .jsonBody,
  1499. r'''$[:].provinciename''',
  1500. true,
  1501. ) as List?)!
  1502. .map<String>((e) => e.toString())
  1503. .toList()
  1504. .cast<String>(),
  1505. onChanged: (val) async {
  1506. safeSetState(() => _model
  1507. .dropDownProvincieValue = val);
  1508. _model.createProvincieID =
  1509. _model.dropDownProvincieValue;
  1510. safeSetState(() {});
  1511. },
  1512. width: 200.0,
  1513. height: 40.0,
  1514. textStyle: FlutterFlowTheme.of(context)
  1515. .bodyMedium
  1516. .override(
  1517. font: GoogleFonts.roboto(
  1518. fontWeight:
  1519. FlutterFlowTheme.of(context)
  1520. .bodyMedium
  1521. .fontWeight,
  1522. fontStyle:
  1523. FlutterFlowTheme.of(context)
  1524. .bodyMedium
  1525. .fontStyle,
  1526. ),
  1527. letterSpacing: 0.0,
  1528. fontWeight:
  1529. FlutterFlowTheme.of(context)
  1530. .bodyMedium
  1531. .fontWeight,
  1532. fontStyle:
  1533. FlutterFlowTheme.of(context)
  1534. .bodyMedium
  1535. .fontStyle,
  1536. ),
  1537. hintText:
  1538. FFLocalizations.of(context).getText(
  1539. 'ah40exgz' /* Select... */,
  1540. ),
  1541. icon: Icon(
  1542. Icons.keyboard_arrow_down_rounded,
  1543. color: FlutterFlowTheme.of(context)
  1544. .secondaryText,
  1545. size: 24.0,
  1546. ),
  1547. fillColor: FlutterFlowTheme.of(context)
  1548. .secondaryBackground,
  1549. elevation: 2.0,
  1550. borderColor: Colors.transparent,
  1551. borderWidth: 0.0,
  1552. borderRadius: 8.0,
  1553. margin: EdgeInsetsDirectional.fromSTEB(
  1554. 12.0, 0.0, 12.0, 0.0),
  1555. hidesUnderline: true,
  1556. isOverButton: false,
  1557. isSearchable: false,
  1558. isMultiSelect: false,
  1559. );
  1560. },
  1561. ),
  1562. ),
  1563. if (_model.createProvincieID != null &&
  1564. _model.createProvincieID != '')
  1565. Align(
  1566. alignment: AlignmentDirectional(-1.0, 0.0),
  1567. child: FutureBuilder<ApiCallResponse>(
  1568. future: GemeentenCall.call(
  1569. provincieid: _model.createProvincieID,
  1570. ),
  1571. builder: (context, snapshot) {
  1572. // Customize what your widget looks like when it's loading.
  1573. if (!snapshot.hasData) {
  1574. return Center(
  1575. child: SizedBox(
  1576. width: 80.0,
  1577. height: 80.0,
  1578. child: SpinKitFadingCircle(
  1579. color:
  1580. FlutterFlowTheme.of(context)
  1581. .primary,
  1582. size: 80.0,
  1583. ),
  1584. ),
  1585. );
  1586. }
  1587. final dropDownGemeenteGemeentenResponse =
  1588. snapshot.data!;
  1589. _model.debugBackendQueries[
  1590. 'GemeentenCall_statusCode_DropDown_bitytje7'] =
  1591. debugSerializeParam(
  1592. dropDownGemeenteGemeentenResponse
  1593. .statusCode,
  1594. ParamType.int,
  1595. link:
  1596. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  1597. name: 'int',
  1598. nullable: false,
  1599. );
  1600. _model.debugBackendQueries[
  1601. 'GemeentenCall_responseBody_DropDown_bitytje7'] =
  1602. debugSerializeParam(
  1603. dropDownGemeenteGemeentenResponse
  1604. .bodyText,
  1605. ParamType.String,
  1606. link:
  1607. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  1608. name: 'String',
  1609. nullable: false,
  1610. );
  1611. debugLogWidgetClass(_model);
  1612. return FlutterFlowDropDown<String>(
  1613. controller: _model
  1614. .dropDownGemeenteValueController ??=
  1615. FormFieldController<String>(
  1616. _model.dropDownGemeenteValue ??= '',
  1617. ),
  1618. options: List<String>.from(
  1619. (getJsonField(
  1620. dropDownGemeenteGemeentenResponse
  1621. .jsonBody,
  1622. r'''$[:].gemeenteid''',
  1623. true,
  1624. ) as List?)!
  1625. .map<String>(
  1626. (e) => e.toString())
  1627. .toList()
  1628. .cast<String>()),
  1629. optionLabels: (getJsonField(
  1630. dropDownGemeenteGemeentenResponse
  1631. .jsonBody,
  1632. r'''$[:].gemeentename''',
  1633. true,
  1634. ) as List?)!
  1635. .map<String>((e) => e.toString())
  1636. .toList()
  1637. .cast<String>(),
  1638. onChanged: (val) async {
  1639. safeSetState(() => _model
  1640. .dropDownGemeenteValue = val);
  1641. _model.createGemeenteID =
  1642. _model.dropDownGemeenteValue;
  1643. safeSetState(() {});
  1644. },
  1645. width: 200.0,
  1646. height: 40.0,
  1647. textStyle: FlutterFlowTheme.of(
  1648. context)
  1649. .bodyMedium
  1650. .override(
  1651. font: GoogleFonts.roboto(
  1652. fontWeight:
  1653. FlutterFlowTheme.of(
  1654. context)
  1655. .bodyMedium
  1656. .fontWeight,
  1657. fontStyle:
  1658. FlutterFlowTheme.of(
  1659. context)
  1660. .bodyMedium
  1661. .fontStyle,
  1662. ),
  1663. letterSpacing: 0.0,
  1664. fontWeight:
  1665. FlutterFlowTheme.of(context)
  1666. .bodyMedium
  1667. .fontWeight,
  1668. fontStyle:
  1669. FlutterFlowTheme.of(context)
  1670. .bodyMedium
  1671. .fontStyle,
  1672. ),
  1673. hintText: FFLocalizations.of(context)
  1674. .getText(
  1675. 'xdgecd29' /* Select... */,
  1676. ),
  1677. icon: Icon(
  1678. Icons.keyboard_arrow_down_rounded,
  1679. color: FlutterFlowTheme.of(context)
  1680. .secondaryText,
  1681. size: 24.0,
  1682. ),
  1683. fillColor:
  1684. FlutterFlowTheme.of(context)
  1685. .secondaryBackground,
  1686. elevation: 2.0,
  1687. borderColor: Colors.transparent,
  1688. borderWidth: 0.0,
  1689. borderRadius: 8.0,
  1690. margin:
  1691. EdgeInsetsDirectional.fromSTEB(
  1692. 12.0, 0.0, 12.0, 0.0),
  1693. hidesUnderline: true,
  1694. isOverButton: false,
  1695. isSearchable: false,
  1696. isMultiSelect: false,
  1697. );
  1698. },
  1699. ),
  1700. ),
  1701. if (_model.createGemeenteID != null &&
  1702. _model.createGemeenteID != '')
  1703. Align(
  1704. alignment: AlignmentDirectional(-1.0, 0.0),
  1705. child: FutureBuilder<ApiCallResponse>(
  1706. future: ProductieGroup
  1707. .plaatsenBijGemeenteCall
  1708. .call(
  1709. gemeenteid: _model.createGemeenteID,
  1710. ),
  1711. builder: (context, snapshot) {
  1712. // Customize what your widget looks like when it's loading.
  1713. if (!snapshot.hasData) {
  1714. return Center(
  1715. child: SizedBox(
  1716. width: 80.0,
  1717. height: 80.0,
  1718. child: SpinKitFadingCircle(
  1719. color:
  1720. FlutterFlowTheme.of(context)
  1721. .primary,
  1722. size: 80.0,
  1723. ),
  1724. ),
  1725. );
  1726. }
  1727. final dropDownPlaatsPlaatsenBijGemeenteResponse =
  1728. snapshot.data!;
  1729. _model.debugBackendQueries[
  1730. 'ProductieGroup.plaatsenBijGemeenteCall_statusCode_DropDown_7kbywvb0'] =
  1731. debugSerializeParam(
  1732. dropDownPlaatsPlaatsenBijGemeenteResponse
  1733. .statusCode,
  1734. ParamType.int,
  1735. link:
  1736. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  1737. name: 'int',
  1738. nullable: false,
  1739. );
  1740. _model.debugBackendQueries[
  1741. 'ProductieGroup.plaatsenBijGemeenteCall_responseBody_DropDown_7kbywvb0'] =
  1742. debugSerializeParam(
  1743. dropDownPlaatsPlaatsenBijGemeenteResponse
  1744. .bodyText,
  1745. ParamType.String,
  1746. link:
  1747. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  1748. name: 'String',
  1749. nullable: false,
  1750. );
  1751. debugLogWidgetClass(_model);
  1752. return FlutterFlowDropDown<String>(
  1753. controller: _model
  1754. .dropDownPlaatsValueController ??=
  1755. FormFieldController<String>(
  1756. _model.dropDownPlaatsValue ??= '',
  1757. ),
  1758. options: List<String>.from(
  1759. (getJsonField(
  1760. dropDownPlaatsPlaatsenBijGemeenteResponse
  1761. .jsonBody,
  1762. r'''$[:].plaatsid''',
  1763. true,
  1764. ) as List?)!
  1765. .map<String>(
  1766. (e) => e.toString())
  1767. .toList()
  1768. .cast<String>()),
  1769. optionLabels: (getJsonField(
  1770. dropDownPlaatsPlaatsenBijGemeenteResponse
  1771. .jsonBody,
  1772. r'''$[:].plaatsname''',
  1773. true,
  1774. ) as List?)!
  1775. .map<String>((e) => e.toString())
  1776. .toList()
  1777. .cast<String>(),
  1778. onChanged: (val) async {
  1779. safeSetState(() => _model
  1780. .dropDownPlaatsValue = val);
  1781. _model.createPlaatsID =
  1782. _model.dropDownPlaatsValue;
  1783. safeSetState(() {});
  1784. },
  1785. width: 200.0,
  1786. height: 40.0,
  1787. textStyle: FlutterFlowTheme.of(
  1788. context)
  1789. .bodyMedium
  1790. .override(
  1791. font: GoogleFonts.roboto(
  1792. fontWeight:
  1793. FlutterFlowTheme.of(
  1794. context)
  1795. .bodyMedium
  1796. .fontWeight,
  1797. fontStyle:
  1798. FlutterFlowTheme.of(
  1799. context)
  1800. .bodyMedium
  1801. .fontStyle,
  1802. ),
  1803. letterSpacing: 0.0,
  1804. fontWeight:
  1805. FlutterFlowTheme.of(context)
  1806. .bodyMedium
  1807. .fontWeight,
  1808. fontStyle:
  1809. FlutterFlowTheme.of(context)
  1810. .bodyMedium
  1811. .fontStyle,
  1812. ),
  1813. hintText: FFLocalizations.of(context)
  1814. .getText(
  1815. 'n5ub465x' /* Select... */,
  1816. ),
  1817. icon: Icon(
  1818. Icons.keyboard_arrow_down_rounded,
  1819. color: FlutterFlowTheme.of(context)
  1820. .secondaryText,
  1821. size: 24.0,
  1822. ),
  1823. fillColor:
  1824. FlutterFlowTheme.of(context)
  1825. .secondaryBackground,
  1826. elevation: 2.0,
  1827. borderColor: Colors.transparent,
  1828. borderWidth: 0.0,
  1829. borderRadius: 8.0,
  1830. margin:
  1831. EdgeInsetsDirectional.fromSTEB(
  1832. 12.0, 0.0, 12.0, 0.0),
  1833. hidesUnderline: true,
  1834. isOverButton: false,
  1835. isSearchable: false,
  1836. isMultiSelect: false,
  1837. );
  1838. },
  1839. ),
  1840. ),
  1841. ],
  1842. ),
  1843. ],
  1844. ),
  1845. ),
  1846. ),
  1847. ),
  1848. Container(
  1849. width: double.infinity,
  1850. child: TextFormField(
  1851. controller: _model.textFieldContactTextController,
  1852. focusNode: _model.textFieldContactFocusNode,
  1853. autofocus: false,
  1854. enabled: true,
  1855. obscureText: false,
  1856. decoration: InputDecoration(
  1857. isDense: true,
  1858. labelText: FFLocalizations.of(context).getText(
  1859. '4d9g0ifm' /* Contact */,
  1860. ),
  1861. labelStyle:
  1862. FlutterFlowTheme.of(context).labelMedium.override(
  1863. font: GoogleFonts.roboto(
  1864. fontWeight: FlutterFlowTheme.of(context)
  1865. .labelMedium
  1866. .fontWeight,
  1867. fontStyle: FlutterFlowTheme.of(context)
  1868. .labelMedium
  1869. .fontStyle,
  1870. ),
  1871. letterSpacing: 0.0,
  1872. fontWeight: FlutterFlowTheme.of(context)
  1873. .labelMedium
  1874. .fontWeight,
  1875. fontStyle: FlutterFlowTheme.of(context)
  1876. .labelMedium
  1877. .fontStyle,
  1878. ),
  1879. hintText: FFLocalizations.of(context).getText(
  1880. 'e4iledsl' /* Contact email/telefoon */,
  1881. ),
  1882. hintStyle:
  1883. FlutterFlowTheme.of(context).labelMedium.override(
  1884. font: GoogleFonts.roboto(
  1885. fontWeight: FlutterFlowTheme.of(context)
  1886. .labelMedium
  1887. .fontWeight,
  1888. fontStyle: FlutterFlowTheme.of(context)
  1889. .labelMedium
  1890. .fontStyle,
  1891. ),
  1892. letterSpacing: 0.0,
  1893. fontWeight: FlutterFlowTheme.of(context)
  1894. .labelMedium
  1895. .fontWeight,
  1896. fontStyle: FlutterFlowTheme.of(context)
  1897. .labelMedium
  1898. .fontStyle,
  1899. ),
  1900. enabledBorder: OutlineInputBorder(
  1901. borderSide: BorderSide(
  1902. color: Color(0x00000000),
  1903. width: 1.0,
  1904. ),
  1905. borderRadius: BorderRadius.circular(8.0),
  1906. ),
  1907. focusedBorder: OutlineInputBorder(
  1908. borderSide: BorderSide(
  1909. color: Color(0x00000000),
  1910. width: 1.0,
  1911. ),
  1912. borderRadius: BorderRadius.circular(8.0),
  1913. ),
  1914. errorBorder: OutlineInputBorder(
  1915. borderSide: BorderSide(
  1916. color: FlutterFlowTheme.of(context).error,
  1917. width: 1.0,
  1918. ),
  1919. borderRadius: BorderRadius.circular(8.0),
  1920. ),
  1921. focusedErrorBorder: OutlineInputBorder(
  1922. borderSide: BorderSide(
  1923. color: FlutterFlowTheme.of(context).error,
  1924. width: 1.0,
  1925. ),
  1926. borderRadius: BorderRadius.circular(8.0),
  1927. ),
  1928. filled: true,
  1929. fillColor:
  1930. FlutterFlowTheme.of(context).secondaryBackground,
  1931. ),
  1932. style: FlutterFlowTheme.of(context).bodyMedium.override(
  1933. font: GoogleFonts.roboto(
  1934. fontWeight: FlutterFlowTheme.of(context)
  1935. .bodyMedium
  1936. .fontWeight,
  1937. fontStyle: FlutterFlowTheme.of(context)
  1938. .bodyMedium
  1939. .fontStyle,
  1940. ),
  1941. letterSpacing: 0.0,
  1942. fontWeight: FlutterFlowTheme.of(context)
  1943. .bodyMedium
  1944. .fontWeight,
  1945. fontStyle: FlutterFlowTheme.of(context)
  1946. .bodyMedium
  1947. .fontStyle,
  1948. ),
  1949. cursorColor: FlutterFlowTheme.of(context).primaryText,
  1950. enableInteractiveSelection: true,
  1951. validator: _model.textFieldContactTextControllerValidator
  1952. .asValidator(context),
  1953. ),
  1954. ),
  1955. Container(
  1956. width: double.infinity,
  1957. child: TextFormField(
  1958. controller: _model.textFieldAdresTextController,
  1959. focusNode: _model.textFieldAdresFocusNode,
  1960. autofocus: false,
  1961. enabled: true,
  1962. obscureText: false,
  1963. decoration: InputDecoration(
  1964. isDense: true,
  1965. labelText: FFLocalizations.of(context).getText(
  1966. '0xi1eh73' /* Adres */,
  1967. ),
  1968. labelStyle:
  1969. FlutterFlowTheme.of(context).labelMedium.override(
  1970. font: GoogleFonts.roboto(
  1971. fontWeight: FlutterFlowTheme.of(context)
  1972. .labelMedium
  1973. .fontWeight,
  1974. fontStyle: FlutterFlowTheme.of(context)
  1975. .labelMedium
  1976. .fontStyle,
  1977. ),
  1978. letterSpacing: 0.0,
  1979. fontWeight: FlutterFlowTheme.of(context)
  1980. .labelMedium
  1981. .fontWeight,
  1982. fontStyle: FlutterFlowTheme.of(context)
  1983. .labelMedium
  1984. .fontStyle,
  1985. ),
  1986. hintText: FFLocalizations.of(context).getText(
  1987. 'r5ov2xtx' /* Adres */,
  1988. ),
  1989. hintStyle:
  1990. FlutterFlowTheme.of(context).labelMedium.override(
  1991. font: GoogleFonts.roboto(
  1992. fontWeight: FlutterFlowTheme.of(context)
  1993. .labelMedium
  1994. .fontWeight,
  1995. fontStyle: FlutterFlowTheme.of(context)
  1996. .labelMedium
  1997. .fontStyle,
  1998. ),
  1999. letterSpacing: 0.0,
  2000. fontWeight: FlutterFlowTheme.of(context)
  2001. .labelMedium
  2002. .fontWeight,
  2003. fontStyle: FlutterFlowTheme.of(context)
  2004. .labelMedium
  2005. .fontStyle,
  2006. ),
  2007. enabledBorder: OutlineInputBorder(
  2008. borderSide: BorderSide(
  2009. color: Color(0x00000000),
  2010. width: 1.0,
  2011. ),
  2012. borderRadius: BorderRadius.circular(8.0),
  2013. ),
  2014. focusedBorder: OutlineInputBorder(
  2015. borderSide: BorderSide(
  2016. color: Color(0x00000000),
  2017. width: 1.0,
  2018. ),
  2019. borderRadius: BorderRadius.circular(8.0),
  2020. ),
  2021. errorBorder: OutlineInputBorder(
  2022. borderSide: BorderSide(
  2023. color: FlutterFlowTheme.of(context).error,
  2024. width: 1.0,
  2025. ),
  2026. borderRadius: BorderRadius.circular(8.0),
  2027. ),
  2028. focusedErrorBorder: OutlineInputBorder(
  2029. borderSide: BorderSide(
  2030. color: FlutterFlowTheme.of(context).error,
  2031. width: 1.0,
  2032. ),
  2033. borderRadius: BorderRadius.circular(8.0),
  2034. ),
  2035. filled: true,
  2036. fillColor:
  2037. FlutterFlowTheme.of(context).secondaryBackground,
  2038. ),
  2039. style: FlutterFlowTheme.of(context).bodyMedium.override(
  2040. font: GoogleFonts.roboto(
  2041. fontWeight: FlutterFlowTheme.of(context)
  2042. .bodyMedium
  2043. .fontWeight,
  2044. fontStyle: FlutterFlowTheme.of(context)
  2045. .bodyMedium
  2046. .fontStyle,
  2047. ),
  2048. letterSpacing: 0.0,
  2049. fontWeight: FlutterFlowTheme.of(context)
  2050. .bodyMedium
  2051. .fontWeight,
  2052. fontStyle: FlutterFlowTheme.of(context)
  2053. .bodyMedium
  2054. .fontStyle,
  2055. ),
  2056. cursorColor: FlutterFlowTheme.of(context).primaryText,
  2057. enableInteractiveSelection: true,
  2058. validator: _model.textFieldAdresTextControllerValidator
  2059. .asValidator(context),
  2060. ),
  2061. ),
  2062. Container(
  2063. width: double.infinity,
  2064. child: TextFormField(
  2065. controller: _model.textFieldPostcodeTextController,
  2066. focusNode: _model.textFieldPostcodeFocusNode,
  2067. autofocus: false,
  2068. enabled: true,
  2069. obscureText: false,
  2070. decoration: InputDecoration(
  2071. isDense: true,
  2072. labelText: FFLocalizations.of(context).getText(
  2073. 'wpj11cb5' /* Postcode */,
  2074. ),
  2075. labelStyle:
  2076. FlutterFlowTheme.of(context).labelMedium.override(
  2077. font: GoogleFonts.roboto(
  2078. fontWeight: FlutterFlowTheme.of(context)
  2079. .labelMedium
  2080. .fontWeight,
  2081. fontStyle: FlutterFlowTheme.of(context)
  2082. .labelMedium
  2083. .fontStyle,
  2084. ),
  2085. letterSpacing: 0.0,
  2086. fontWeight: FlutterFlowTheme.of(context)
  2087. .labelMedium
  2088. .fontWeight,
  2089. fontStyle: FlutterFlowTheme.of(context)
  2090. .labelMedium
  2091. .fontStyle,
  2092. ),
  2093. hintText: FFLocalizations.of(context).getText(
  2094. '13tzxhax' /* Postcode */,
  2095. ),
  2096. hintStyle:
  2097. FlutterFlowTheme.of(context).labelMedium.override(
  2098. font: GoogleFonts.roboto(
  2099. fontWeight: FlutterFlowTheme.of(context)
  2100. .labelMedium
  2101. .fontWeight,
  2102. fontStyle: FlutterFlowTheme.of(context)
  2103. .labelMedium
  2104. .fontStyle,
  2105. ),
  2106. letterSpacing: 0.0,
  2107. fontWeight: FlutterFlowTheme.of(context)
  2108. .labelMedium
  2109. .fontWeight,
  2110. fontStyle: FlutterFlowTheme.of(context)
  2111. .labelMedium
  2112. .fontStyle,
  2113. ),
  2114. enabledBorder: OutlineInputBorder(
  2115. borderSide: BorderSide(
  2116. color: Color(0x00000000),
  2117. width: 1.0,
  2118. ),
  2119. borderRadius: BorderRadius.circular(8.0),
  2120. ),
  2121. focusedBorder: OutlineInputBorder(
  2122. borderSide: BorderSide(
  2123. color: Color(0x00000000),
  2124. width: 1.0,
  2125. ),
  2126. borderRadius: BorderRadius.circular(8.0),
  2127. ),
  2128. errorBorder: OutlineInputBorder(
  2129. borderSide: BorderSide(
  2130. color: FlutterFlowTheme.of(context).error,
  2131. width: 1.0,
  2132. ),
  2133. borderRadius: BorderRadius.circular(8.0),
  2134. ),
  2135. focusedErrorBorder: OutlineInputBorder(
  2136. borderSide: BorderSide(
  2137. color: FlutterFlowTheme.of(context).error,
  2138. width: 1.0,
  2139. ),
  2140. borderRadius: BorderRadius.circular(8.0),
  2141. ),
  2142. filled: true,
  2143. fillColor:
  2144. FlutterFlowTheme.of(context).secondaryBackground,
  2145. ),
  2146. style: FlutterFlowTheme.of(context).bodyMedium.override(
  2147. font: GoogleFonts.roboto(
  2148. fontWeight: FlutterFlowTheme.of(context)
  2149. .bodyMedium
  2150. .fontWeight,
  2151. fontStyle: FlutterFlowTheme.of(context)
  2152. .bodyMedium
  2153. .fontStyle,
  2154. ),
  2155. letterSpacing: 0.0,
  2156. fontWeight: FlutterFlowTheme.of(context)
  2157. .bodyMedium
  2158. .fontWeight,
  2159. fontStyle: FlutterFlowTheme.of(context)
  2160. .bodyMedium
  2161. .fontStyle,
  2162. ),
  2163. cursorColor: FlutterFlowTheme.of(context).primaryText,
  2164. enableInteractiveSelection: true,
  2165. validator: _model.textFieldPostcodeTextControllerValidator
  2166. .asValidator(context),
  2167. ),
  2168. ),
  2169. Container(
  2170. width: double.infinity,
  2171. child: TextFormField(
  2172. controller: _model.textFieldPlaatsTextController,
  2173. focusNode: _model.textFieldPlaatsFocusNode,
  2174. autofocus: false,
  2175. enabled: true,
  2176. obscureText: false,
  2177. decoration: InputDecoration(
  2178. isDense: true,
  2179. labelText: FFLocalizations.of(context).getText(
  2180. 'd2rno2ps' /* Plaats */,
  2181. ),
  2182. labelStyle:
  2183. FlutterFlowTheme.of(context).labelMedium.override(
  2184. font: GoogleFonts.roboto(
  2185. fontWeight: FlutterFlowTheme.of(context)
  2186. .labelMedium
  2187. .fontWeight,
  2188. fontStyle: FlutterFlowTheme.of(context)
  2189. .labelMedium
  2190. .fontStyle,
  2191. ),
  2192. letterSpacing: 0.0,
  2193. fontWeight: FlutterFlowTheme.of(context)
  2194. .labelMedium
  2195. .fontWeight,
  2196. fontStyle: FlutterFlowTheme.of(context)
  2197. .labelMedium
  2198. .fontStyle,
  2199. ),
  2200. hintText: FFLocalizations.of(context).getText(
  2201. 'ndlq9ivi' /* Plaats activiteit */,
  2202. ),
  2203. hintStyle:
  2204. FlutterFlowTheme.of(context).labelMedium.override(
  2205. font: GoogleFonts.roboto(
  2206. fontWeight: FlutterFlowTheme.of(context)
  2207. .labelMedium
  2208. .fontWeight,
  2209. fontStyle: FlutterFlowTheme.of(context)
  2210. .labelMedium
  2211. .fontStyle,
  2212. ),
  2213. letterSpacing: 0.0,
  2214. fontWeight: FlutterFlowTheme.of(context)
  2215. .labelMedium
  2216. .fontWeight,
  2217. fontStyle: FlutterFlowTheme.of(context)
  2218. .labelMedium
  2219. .fontStyle,
  2220. ),
  2221. enabledBorder: OutlineInputBorder(
  2222. borderSide: BorderSide(
  2223. color: Color(0x00000000),
  2224. width: 1.0,
  2225. ),
  2226. borderRadius: BorderRadius.circular(8.0),
  2227. ),
  2228. focusedBorder: OutlineInputBorder(
  2229. borderSide: BorderSide(
  2230. color: Color(0x00000000),
  2231. width: 1.0,
  2232. ),
  2233. borderRadius: BorderRadius.circular(8.0),
  2234. ),
  2235. errorBorder: OutlineInputBorder(
  2236. borderSide: BorderSide(
  2237. color: FlutterFlowTheme.of(context).error,
  2238. width: 1.0,
  2239. ),
  2240. borderRadius: BorderRadius.circular(8.0),
  2241. ),
  2242. focusedErrorBorder: OutlineInputBorder(
  2243. borderSide: BorderSide(
  2244. color: FlutterFlowTheme.of(context).error,
  2245. width: 1.0,
  2246. ),
  2247. borderRadius: BorderRadius.circular(8.0),
  2248. ),
  2249. filled: true,
  2250. fillColor:
  2251. FlutterFlowTheme.of(context).secondaryBackground,
  2252. ),
  2253. style: FlutterFlowTheme.of(context).bodyMedium.override(
  2254. font: GoogleFonts.roboto(
  2255. fontWeight: FlutterFlowTheme.of(context)
  2256. .bodyMedium
  2257. .fontWeight,
  2258. fontStyle: FlutterFlowTheme.of(context)
  2259. .bodyMedium
  2260. .fontStyle,
  2261. ),
  2262. letterSpacing: 0.0,
  2263. fontWeight: FlutterFlowTheme.of(context)
  2264. .bodyMedium
  2265. .fontWeight,
  2266. fontStyle: FlutterFlowTheme.of(context)
  2267. .bodyMedium
  2268. .fontStyle,
  2269. ),
  2270. cursorColor: FlutterFlowTheme.of(context).primaryText,
  2271. enableInteractiveSelection: true,
  2272. validator: _model.textFieldPlaatsTextControllerValidator
  2273. .asValidator(context),
  2274. ),
  2275. ),
  2276. Align(
  2277. alignment: AlignmentDirectional(-1.0, 0.0),
  2278. child: Container(
  2279. width: 200.0,
  2280. child: TextFormField(
  2281. controller: _model.textFieldWebsiteURLTextController,
  2282. focusNode: _model.textFieldWebsiteURLFocusNode,
  2283. autofocus: false,
  2284. enabled: true,
  2285. obscureText: false,
  2286. decoration: InputDecoration(
  2287. isDense: true,
  2288. labelText: FFLocalizations.of(context).getText(
  2289. 'lgzcrgw5' /* WebsiteURL */,
  2290. ),
  2291. labelStyle:
  2292. FlutterFlowTheme.of(context).labelMedium.override(
  2293. font: GoogleFonts.roboto(
  2294. fontWeight: FlutterFlowTheme.of(context)
  2295. .labelMedium
  2296. .fontWeight,
  2297. fontStyle: FlutterFlowTheme.of(context)
  2298. .labelMedium
  2299. .fontStyle,
  2300. ),
  2301. letterSpacing: 0.0,
  2302. fontWeight: FlutterFlowTheme.of(context)
  2303. .labelMedium
  2304. .fontWeight,
  2305. fontStyle: FlutterFlowTheme.of(context)
  2306. .labelMedium
  2307. .fontStyle,
  2308. ),
  2309. hintText: FFLocalizations.of(context).getText(
  2310. '39k3qu7c' /* Website van de activiteit */,
  2311. ),
  2312. hintStyle:
  2313. FlutterFlowTheme.of(context).labelMedium.override(
  2314. font: GoogleFonts.roboto(
  2315. fontWeight: FlutterFlowTheme.of(context)
  2316. .labelMedium
  2317. .fontWeight,
  2318. fontStyle: FlutterFlowTheme.of(context)
  2319. .labelMedium
  2320. .fontStyle,
  2321. ),
  2322. letterSpacing: 0.0,
  2323. fontWeight: FlutterFlowTheme.of(context)
  2324. .labelMedium
  2325. .fontWeight,
  2326. fontStyle: FlutterFlowTheme.of(context)
  2327. .labelMedium
  2328. .fontStyle,
  2329. ),
  2330. enabledBorder: OutlineInputBorder(
  2331. borderSide: BorderSide(
  2332. color: Color(0x00000000),
  2333. width: 1.0,
  2334. ),
  2335. borderRadius: BorderRadius.circular(8.0),
  2336. ),
  2337. focusedBorder: OutlineInputBorder(
  2338. borderSide: BorderSide(
  2339. color: Color(0x00000000),
  2340. width: 1.0,
  2341. ),
  2342. borderRadius: BorderRadius.circular(8.0),
  2343. ),
  2344. errorBorder: OutlineInputBorder(
  2345. borderSide: BorderSide(
  2346. color: FlutterFlowTheme.of(context).error,
  2347. width: 1.0,
  2348. ),
  2349. borderRadius: BorderRadius.circular(8.0),
  2350. ),
  2351. focusedErrorBorder: OutlineInputBorder(
  2352. borderSide: BorderSide(
  2353. color: FlutterFlowTheme.of(context).error,
  2354. width: 1.0,
  2355. ),
  2356. borderRadius: BorderRadius.circular(8.0),
  2357. ),
  2358. filled: true,
  2359. fillColor:
  2360. FlutterFlowTheme.of(context).secondaryBackground,
  2361. ),
  2362. style: FlutterFlowTheme.of(context).bodyMedium.override(
  2363. font: GoogleFonts.roboto(
  2364. fontWeight: FlutterFlowTheme.of(context)
  2365. .bodyMedium
  2366. .fontWeight,
  2367. fontStyle: FlutterFlowTheme.of(context)
  2368. .bodyMedium
  2369. .fontStyle,
  2370. ),
  2371. letterSpacing: 0.0,
  2372. fontWeight: FlutterFlowTheme.of(context)
  2373. .bodyMedium
  2374. .fontWeight,
  2375. fontStyle: FlutterFlowTheme.of(context)
  2376. .bodyMedium
  2377. .fontStyle,
  2378. ),
  2379. cursorColor: FlutterFlowTheme.of(context).primaryText,
  2380. enableInteractiveSelection: true,
  2381. validator: _model
  2382. .textFieldWebsiteURLTextControllerValidator
  2383. .asValidator(context),
  2384. ),
  2385. ),
  2386. ),
  2387. Align(
  2388. alignment: AlignmentDirectional(-1.0, 0.0),
  2389. child: FutureBuilder<ApiCallResponse>(
  2390. future: MijnStadsrechtenCall.call(
  2391. sessionName: FFAppState().userSessionname,
  2392. sessid: FFAppState().userSessionid,
  2393. ),
  2394. builder: (context, snapshot) {
  2395. // Customize what your widget looks like when it's loading.
  2396. if (!snapshot.hasData) {
  2397. return Center(
  2398. child: SizedBox(
  2399. width: 80.0,
  2400. height: 80.0,
  2401. child: SpinKitFadingCircle(
  2402. color: FlutterFlowTheme.of(context).primary,
  2403. size: 80.0,
  2404. ),
  2405. ),
  2406. );
  2407. }
  2408. final columnMijnStadsrechtenResponse = snapshot.data!;
  2409. _model.debugBackendQueries[
  2410. 'MijnStadsrechtenCall_statusCode_Column_0w2uy4f0'] =
  2411. debugSerializeParam(
  2412. columnMijnStadsrechtenResponse.statusCode,
  2413. ParamType.int,
  2414. link:
  2415. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  2416. name: 'int',
  2417. nullable: false,
  2418. );
  2419. _model.debugBackendQueries[
  2420. 'MijnStadsrechtenCall_responseBody_Column_0w2uy4f0'] =
  2421. debugSerializeParam(
  2422. columnMijnStadsrechtenResponse.bodyText,
  2423. ParamType.String,
  2424. link:
  2425. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  2426. name: 'String',
  2427. nullable: false,
  2428. );
  2429. debugLogWidgetClass(_model);
  2430. return Column(
  2431. mainAxisSize: MainAxisSize.max,
  2432. children: [],
  2433. );
  2434. },
  2435. ),
  2436. ),
  2437. Align(
  2438. alignment: AlignmentDirectional(-1.0, 0.0),
  2439. child: Text(
  2440. FFLocalizations.of(context).getText(
  2441. 'd8b91xkp' /* Categorie evenement */,
  2442. ),
  2443. style: FlutterFlowTheme.of(context).bodyMedium.override(
  2444. font: GoogleFonts.roboto(
  2445. fontWeight: FlutterFlowTheme.of(context)
  2446. .bodyMedium
  2447. .fontWeight,
  2448. fontStyle: FlutterFlowTheme.of(context)
  2449. .bodyMedium
  2450. .fontStyle,
  2451. ),
  2452. letterSpacing: 0.0,
  2453. fontWeight: FlutterFlowTheme.of(context)
  2454. .bodyMedium
  2455. .fontWeight,
  2456. fontStyle: FlutterFlowTheme.of(context)
  2457. .bodyMedium
  2458. .fontStyle,
  2459. ),
  2460. ),
  2461. ),
  2462. Align(
  2463. alignment: AlignmentDirectional(-1.0, 0.0),
  2464. child: Padding(
  2465. padding: EdgeInsets.all(16.0),
  2466. child: Container(
  2467. decoration: BoxDecoration(
  2468. color:
  2469. FlutterFlowTheme.of(context).secondaryBackground,
  2470. borderRadius: BorderRadius.only(),
  2471. border: Border.all(
  2472. color: Color(0xFFEEEEEE),
  2473. width: 3.0,
  2474. ),
  2475. ),
  2476. child: Align(
  2477. alignment: AlignmentDirectional(-1.0, 0.0),
  2478. child: Column(
  2479. mainAxisSize: MainAxisSize.max,
  2480. children: [
  2481. Align(
  2482. alignment: AlignmentDirectional(-1.0, 0.0),
  2483. child: Text(
  2484. FFLocalizations.of(context).getText(
  2485. 'ul2vex0b' /* Entree */,
  2486. ),
  2487. style: FlutterFlowTheme.of(context)
  2488. .headlineSmall
  2489. .override(
  2490. font: GoogleFonts.roboto(
  2491. fontWeight:
  2492. FlutterFlowTheme.of(context)
  2493. .headlineSmall
  2494. .fontWeight,
  2495. fontStyle:
  2496. FlutterFlowTheme.of(context)
  2497. .headlineSmall
  2498. .fontStyle,
  2499. ),
  2500. letterSpacing: 0.0,
  2501. fontWeight: FlutterFlowTheme.of(context)
  2502. .headlineSmall
  2503. .fontWeight,
  2504. fontStyle: FlutterFlowTheme.of(context)
  2505. .headlineSmall
  2506. .fontStyle,
  2507. ),
  2508. ),
  2509. ),
  2510. Align(
  2511. alignment: AlignmentDirectional(-1.0, 0.0),
  2512. child: FutureBuilder<ApiCallResponse>(
  2513. future: ProductieGroup.entreeoptiesCall.call(
  2514. sessionName: FFAppState().userSessionname,
  2515. sessid: FFAppState().userSessionid,
  2516. ),
  2517. builder: (context, snapshot) {
  2518. // Customize what your widget looks like when it's loading.
  2519. if (!snapshot.hasData) {
  2520. return Center(
  2521. child: SizedBox(
  2522. width: 80.0,
  2523. height: 80.0,
  2524. child: SpinKitFadingCircle(
  2525. color: FlutterFlowTheme.of(context)
  2526. .primary,
  2527. size: 80.0,
  2528. ),
  2529. ),
  2530. );
  2531. }
  2532. final dropDownEntreeEntreeoptiesResponse =
  2533. snapshot.data!;
  2534. _model.debugBackendQueries[
  2535. 'ProductieGroup.entreeoptiesCall_statusCode_DropDown_4wel6n9q'] =
  2536. debugSerializeParam(
  2537. dropDownEntreeEntreeoptiesResponse
  2538. .statusCode,
  2539. ParamType.int,
  2540. link:
  2541. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  2542. name: 'int',
  2543. nullable: false,
  2544. );
  2545. _model.debugBackendQueries[
  2546. 'ProductieGroup.entreeoptiesCall_responseBody_DropDown_4wel6n9q'] =
  2547. debugSerializeParam(
  2548. dropDownEntreeEntreeoptiesResponse
  2549. .bodyText,
  2550. ParamType.String,
  2551. link:
  2552. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  2553. name: 'String',
  2554. nullable: false,
  2555. );
  2556. debugLogWidgetClass(_model);
  2557. return FlutterFlowDropDown<String>(
  2558. controller: _model
  2559. .dropDownEntreeValueController ??=
  2560. FormFieldController<String>(
  2561. _model.dropDownEntreeValue ??= '',
  2562. ),
  2563. options: List<String>.from((getJsonField(
  2564. dropDownEntreeEntreeoptiesResponse
  2565. .jsonBody,
  2566. r'''$[:].tid''',
  2567. true,
  2568. ) as List?)!
  2569. .map<String>((e) => e.toString())
  2570. .toList()
  2571. .cast<String>()),
  2572. optionLabels: (getJsonField(
  2573. dropDownEntreeEntreeoptiesResponse
  2574. .jsonBody,
  2575. r'''$[:].naam''',
  2576. true,
  2577. ) as List?)!
  2578. .map<String>((e) => e.toString())
  2579. .toList()
  2580. .cast<String>(),
  2581. onChanged: (val) async {
  2582. safeSetState(() =>
  2583. _model.dropDownEntreeValue = val);
  2584. _model.createEntreeTid =
  2585. _model.dropDownEntreeValue;
  2586. safeSetState(() {});
  2587. },
  2588. width: 200.0,
  2589. height: 40.0,
  2590. textStyle: FlutterFlowTheme.of(context)
  2591. .bodyMedium
  2592. .override(
  2593. font: GoogleFonts.roboto(
  2594. fontWeight:
  2595. FlutterFlowTheme.of(context)
  2596. .bodyMedium
  2597. .fontWeight,
  2598. fontStyle:
  2599. FlutterFlowTheme.of(context)
  2600. .bodyMedium
  2601. .fontStyle,
  2602. ),
  2603. letterSpacing: 0.0,
  2604. fontWeight:
  2605. FlutterFlowTheme.of(context)
  2606. .bodyMedium
  2607. .fontWeight,
  2608. fontStyle:
  2609. FlutterFlowTheme.of(context)
  2610. .bodyMedium
  2611. .fontStyle,
  2612. ),
  2613. hintText:
  2614. FFLocalizations.of(context).getText(
  2615. 'fzcv1na7' /* Select... */,
  2616. ),
  2617. icon: Icon(
  2618. Icons.keyboard_arrow_down_rounded,
  2619. color: FlutterFlowTheme.of(context)
  2620. .secondaryText,
  2621. size: 24.0,
  2622. ),
  2623. fillColor: FlutterFlowTheme.of(context)
  2624. .secondaryBackground,
  2625. elevation: 2.0,
  2626. borderColor: Colors.transparent,
  2627. borderWidth: 0.0,
  2628. borderRadius: 8.0,
  2629. margin: EdgeInsetsDirectional.fromSTEB(
  2630. 12.0, 0.0, 12.0, 0.0),
  2631. hidesUnderline: true,
  2632. isOverButton: false,
  2633. isSearchable: false,
  2634. isMultiSelect: false,
  2635. );
  2636. },
  2637. ),
  2638. ),
  2639. Align(
  2640. alignment: AlignmentDirectional(-1.0, 0.0),
  2641. child: Text(
  2642. FFLocalizations.of(context).getText(
  2643. 'z910niie' /* Toelichting Entree */,
  2644. ),
  2645. style: FlutterFlowTheme.of(context)
  2646. .bodyMedium
  2647. .override(
  2648. font: GoogleFonts.roboto(
  2649. fontWeight:
  2650. FlutterFlowTheme.of(context)
  2651. .bodyMedium
  2652. .fontWeight,
  2653. fontStyle:
  2654. FlutterFlowTheme.of(context)
  2655. .bodyMedium
  2656. .fontStyle,
  2657. ),
  2658. letterSpacing: 0.0,
  2659. fontWeight: FlutterFlowTheme.of(context)
  2660. .bodyMedium
  2661. .fontWeight,
  2662. fontStyle: FlutterFlowTheme.of(context)
  2663. .bodyMedium
  2664. .fontStyle,
  2665. ),
  2666. ),
  2667. ),
  2668. Align(
  2669. alignment: AlignmentDirectional(-1.0, 0.0),
  2670. child: Container(
  2671. width: double.infinity,
  2672. child: TextFormField(
  2673. controller: _model
  2674. .textFieldToelichtingEntreeTextController,
  2675. focusNode: _model
  2676. .textFieldToelichtingEntreeFocusNode,
  2677. autofocus: false,
  2678. enabled: true,
  2679. obscureText: false,
  2680. decoration: InputDecoration(
  2681. isDense: true,
  2682. labelText:
  2683. FFLocalizations.of(context).getText(
  2684. 'esvgcpol' /* Toelichting Entree */,
  2685. ),
  2686. labelStyle: FlutterFlowTheme.of(context)
  2687. .labelMedium
  2688. .override(
  2689. font: GoogleFonts.roboto(
  2690. fontWeight:
  2691. FlutterFlowTheme.of(context)
  2692. .labelMedium
  2693. .fontWeight,
  2694. fontStyle:
  2695. FlutterFlowTheme.of(context)
  2696. .labelMedium
  2697. .fontStyle,
  2698. ),
  2699. letterSpacing: 0.0,
  2700. fontWeight:
  2701. FlutterFlowTheme.of(context)
  2702. .labelMedium
  2703. .fontWeight,
  2704. fontStyle:
  2705. FlutterFlowTheme.of(context)
  2706. .labelMedium
  2707. .fontStyle,
  2708. ),
  2709. hintStyle: FlutterFlowTheme.of(context)
  2710. .labelMedium
  2711. .override(
  2712. font: GoogleFonts.roboto(
  2713. fontWeight:
  2714. FlutterFlowTheme.of(context)
  2715. .labelMedium
  2716. .fontWeight,
  2717. fontStyle:
  2718. FlutterFlowTheme.of(context)
  2719. .labelMedium
  2720. .fontStyle,
  2721. ),
  2722. letterSpacing: 0.0,
  2723. fontWeight:
  2724. FlutterFlowTheme.of(context)
  2725. .labelMedium
  2726. .fontWeight,
  2727. fontStyle:
  2728. FlutterFlowTheme.of(context)
  2729. .labelMedium
  2730. .fontStyle,
  2731. ),
  2732. enabledBorder: OutlineInputBorder(
  2733. borderSide: BorderSide(
  2734. color: Color(0x00000000),
  2735. width: 1.0,
  2736. ),
  2737. borderRadius:
  2738. BorderRadius.circular(8.0),
  2739. ),
  2740. focusedBorder: OutlineInputBorder(
  2741. borderSide: BorderSide(
  2742. color: Color(0x00000000),
  2743. width: 1.0,
  2744. ),
  2745. borderRadius:
  2746. BorderRadius.circular(8.0),
  2747. ),
  2748. errorBorder: OutlineInputBorder(
  2749. borderSide: BorderSide(
  2750. color: FlutterFlowTheme.of(context)
  2751. .error,
  2752. width: 1.0,
  2753. ),
  2754. borderRadius:
  2755. BorderRadius.circular(8.0),
  2756. ),
  2757. focusedErrorBorder: OutlineInputBorder(
  2758. borderSide: BorderSide(
  2759. color: FlutterFlowTheme.of(context)
  2760. .error,
  2761. width: 1.0,
  2762. ),
  2763. borderRadius:
  2764. BorderRadius.circular(8.0),
  2765. ),
  2766. filled: true,
  2767. fillColor: FlutterFlowTheme.of(context)
  2768. .secondaryBackground,
  2769. ),
  2770. style: FlutterFlowTheme.of(context)
  2771. .bodyMedium
  2772. .override(
  2773. font: GoogleFonts.roboto(
  2774. fontWeight:
  2775. FlutterFlowTheme.of(context)
  2776. .bodyMedium
  2777. .fontWeight,
  2778. fontStyle:
  2779. FlutterFlowTheme.of(context)
  2780. .bodyMedium
  2781. .fontStyle,
  2782. ),
  2783. letterSpacing: 0.0,
  2784. fontWeight:
  2785. FlutterFlowTheme.of(context)
  2786. .bodyMedium
  2787. .fontWeight,
  2788. fontStyle:
  2789. FlutterFlowTheme.of(context)
  2790. .bodyMedium
  2791. .fontStyle,
  2792. ),
  2793. cursorColor: FlutterFlowTheme.of(context)
  2794. .primaryText,
  2795. enableInteractiveSelection: true,
  2796. validator: _model
  2797. .textFieldToelichtingEntreeTextControllerValidator
  2798. .asValidator(context),
  2799. ),
  2800. ),
  2801. ),
  2802. Align(
  2803. alignment: AlignmentDirectional(-1.0, 0.0),
  2804. child: Text(
  2805. FFLocalizations.of(context).getText(
  2806. '0b5vhyf2' /* Entreeprijs */,
  2807. ),
  2808. style: FlutterFlowTheme.of(context)
  2809. .bodyMedium
  2810. .override(
  2811. font: GoogleFonts.roboto(
  2812. fontWeight:
  2813. FlutterFlowTheme.of(context)
  2814. .bodyMedium
  2815. .fontWeight,
  2816. fontStyle:
  2817. FlutterFlowTheme.of(context)
  2818. .bodyMedium
  2819. .fontStyle,
  2820. ),
  2821. letterSpacing: 0.0,
  2822. fontWeight: FlutterFlowTheme.of(context)
  2823. .bodyMedium
  2824. .fontWeight,
  2825. fontStyle: FlutterFlowTheme.of(context)
  2826. .bodyMedium
  2827. .fontStyle,
  2828. ),
  2829. ),
  2830. ),
  2831. Align(
  2832. alignment: AlignmentDirectional(-1.0, 0.0),
  2833. child: Container(
  2834. width: double.infinity,
  2835. child: TextFormField(
  2836. controller: _model
  2837. .textFieldEntreeprijsTextController,
  2838. focusNode:
  2839. _model.textFieldEntreeprijsFocusNode,
  2840. autofocus: false,
  2841. enabled: true,
  2842. obscureText: false,
  2843. decoration: InputDecoration(
  2844. isDense: true,
  2845. labelText:
  2846. FFLocalizations.of(context).getText(
  2847. '7ksg8ae7' /* Entreeprijs */,
  2848. ),
  2849. labelStyle: FlutterFlowTheme.of(context)
  2850. .labelMedium
  2851. .override(
  2852. font: GoogleFonts.roboto(
  2853. fontWeight:
  2854. FlutterFlowTheme.of(context)
  2855. .labelMedium
  2856. .fontWeight,
  2857. fontStyle:
  2858. FlutterFlowTheme.of(context)
  2859. .labelMedium
  2860. .fontStyle,
  2861. ),
  2862. letterSpacing: 0.0,
  2863. fontWeight:
  2864. FlutterFlowTheme.of(context)
  2865. .labelMedium
  2866. .fontWeight,
  2867. fontStyle:
  2868. FlutterFlowTheme.of(context)
  2869. .labelMedium
  2870. .fontStyle,
  2871. ),
  2872. hintText:
  2873. FFLocalizations.of(context).getText(
  2874. 'vtbl5c26' /* Entreeprijs */,
  2875. ),
  2876. hintStyle: FlutterFlowTheme.of(context)
  2877. .labelMedium
  2878. .override(
  2879. font: GoogleFonts.roboto(
  2880. fontWeight:
  2881. FlutterFlowTheme.of(context)
  2882. .labelMedium
  2883. .fontWeight,
  2884. fontStyle:
  2885. FlutterFlowTheme.of(context)
  2886. .labelMedium
  2887. .fontStyle,
  2888. ),
  2889. letterSpacing: 0.0,
  2890. fontWeight:
  2891. FlutterFlowTheme.of(context)
  2892. .labelMedium
  2893. .fontWeight,
  2894. fontStyle:
  2895. FlutterFlowTheme.of(context)
  2896. .labelMedium
  2897. .fontStyle,
  2898. ),
  2899. enabledBorder: OutlineInputBorder(
  2900. borderSide: BorderSide(
  2901. color: Color(0x00000000),
  2902. width: 1.0,
  2903. ),
  2904. borderRadius:
  2905. BorderRadius.circular(8.0),
  2906. ),
  2907. focusedBorder: OutlineInputBorder(
  2908. borderSide: BorderSide(
  2909. color: Color(0x00000000),
  2910. width: 1.0,
  2911. ),
  2912. borderRadius:
  2913. BorderRadius.circular(8.0),
  2914. ),
  2915. errorBorder: OutlineInputBorder(
  2916. borderSide: BorderSide(
  2917. color: FlutterFlowTheme.of(context)
  2918. .error,
  2919. width: 1.0,
  2920. ),
  2921. borderRadius:
  2922. BorderRadius.circular(8.0),
  2923. ),
  2924. focusedErrorBorder: OutlineInputBorder(
  2925. borderSide: BorderSide(
  2926. color: FlutterFlowTheme.of(context)
  2927. .error,
  2928. width: 1.0,
  2929. ),
  2930. borderRadius:
  2931. BorderRadius.circular(8.0),
  2932. ),
  2933. filled: true,
  2934. fillColor: FlutterFlowTheme.of(context)
  2935. .secondaryBackground,
  2936. ),
  2937. style: FlutterFlowTheme.of(context)
  2938. .bodyMedium
  2939. .override(
  2940. font: GoogleFonts.roboto(
  2941. fontWeight:
  2942. FlutterFlowTheme.of(context)
  2943. .bodyMedium
  2944. .fontWeight,
  2945. fontStyle:
  2946. FlutterFlowTheme.of(context)
  2947. .bodyMedium
  2948. .fontStyle,
  2949. ),
  2950. letterSpacing: 0.0,
  2951. fontWeight:
  2952. FlutterFlowTheme.of(context)
  2953. .bodyMedium
  2954. .fontWeight,
  2955. fontStyle:
  2956. FlutterFlowTheme.of(context)
  2957. .bodyMedium
  2958. .fontStyle,
  2959. ),
  2960. cursorColor: FlutterFlowTheme.of(context)
  2961. .primaryText,
  2962. enableInteractiveSelection: true,
  2963. validator: _model
  2964. .textFieldEntreeprijsTextControllerValidator
  2965. .asValidator(context),
  2966. ),
  2967. ),
  2968. ),
  2969. ],
  2970. ),
  2971. ),
  2972. ),
  2973. ),
  2974. ),
  2975. Container(
  2976. decoration: BoxDecoration(),
  2977. child: Column(
  2978. mainAxisSize: MainAxisSize.max,
  2979. children: [
  2980. Align(
  2981. alignment: AlignmentDirectional(-1.0, 0.0),
  2982. child: Text(
  2983. FFLocalizations.of(context).getText(
  2984. 'ck951hp3' /* Media */,
  2985. ),
  2986. style: FlutterFlowTheme.of(context)
  2987. .headlineSmall
  2988. .override(
  2989. font: GoogleFonts.roboto(
  2990. fontWeight: FlutterFlowTheme.of(context)
  2991. .headlineSmall
  2992. .fontWeight,
  2993. fontStyle: FlutterFlowTheme.of(context)
  2994. .headlineSmall
  2995. .fontStyle,
  2996. ),
  2997. letterSpacing: 0.0,
  2998. fontWeight: FlutterFlowTheme.of(context)
  2999. .headlineSmall
  3000. .fontWeight,
  3001. fontStyle: FlutterFlowTheme.of(context)
  3002. .headlineSmall
  3003. .fontStyle,
  3004. ),
  3005. ),
  3006. ),
  3007. Row(
  3008. mainAxisSize: MainAxisSize.max,
  3009. children: [
  3010. Align(
  3011. alignment: AlignmentDirectional(-1.0, 0.0),
  3012. child: FFButtonWidget(
  3013. onPressed: () async {
  3014. final selectedMedia =
  3015. await selectMediaWithSourceBottomSheet(
  3016. context: context,
  3017. allowPhoto: true,
  3018. );
  3019. if (selectedMedia != null &&
  3020. selectedMedia.every((m) =>
  3021. validateFileFormat(
  3022. m.storagePath, context))) {
  3023. safeSetState(() => _model
  3024. .isDataUploading_uploadDatalogoUpload =
  3025. true);
  3026. var selectedUploadedFiles =
  3027. <FFUploadedFile>[];
  3028. try {
  3029. selectedUploadedFiles = selectedMedia
  3030. .map((m) => FFUploadedFile(
  3031. name: m.storagePath
  3032. .split('/')
  3033. .last,
  3034. bytes: m.bytes,
  3035. height: m.dimensions?.height,
  3036. width: m.dimensions?.width,
  3037. blurHash: m.blurHash,
  3038. originalFilename:
  3039. m.originalFilename,
  3040. ))
  3041. .toList();
  3042. } finally {
  3043. _model.isDataUploading_uploadDatalogoUpload =
  3044. false;
  3045. }
  3046. if (selectedUploadedFiles.length ==
  3047. selectedMedia.length) {
  3048. safeSetState(() {
  3049. _model.uploadedLocalFile_uploadDatalogoUpload =
  3050. selectedUploadedFiles.first;
  3051. });
  3052. } else {
  3053. safeSetState(() {});
  3054. return;
  3055. }
  3056. }
  3057. _model.logouploadResult =
  3058. await actions.bestandUpload(
  3059. _model
  3060. .uploadedLocalFile_uploadDatalogoUpload,
  3061. '/en/flutterdrup/bestand_upload/upload.json',
  3062. FFAppState().userSessionname,
  3063. FFAppState().userSessionid,
  3064. FFAppState().userToken,
  3065. );
  3066. if (getJsonField(
  3067. _model.logouploadResult,
  3068. r'''$.success''',
  3069. )) {
  3070. _model.createLogoFid = getJsonField(
  3071. _model.logouploadResult,
  3072. r'''$.fid''',
  3073. ).toString();
  3074. _model.createLogoUrl = getJsonField(
  3075. _model.logouploadResult,
  3076. r'''$.url''',
  3077. ).toString();
  3078. safeSetState(() {});
  3079. } else {
  3080. ScaffoldMessenger.of(context).showSnackBar(
  3081. SnackBar(
  3082. content: Text(
  3083. getJsonField(
  3084. _model.logouploadResult,
  3085. r'''$.error''',
  3086. ).toString(),
  3087. style: TextStyle(
  3088. color: FlutterFlowTheme.of(context)
  3089. .primaryText,
  3090. ),
  3091. ),
  3092. duration: Duration(milliseconds: 4000),
  3093. backgroundColor:
  3094. FlutterFlowTheme.of(context)
  3095. .secondary,
  3096. ),
  3097. );
  3098. }
  3099. safeSetState(() {});
  3100. },
  3101. text: FFLocalizations.of(context).getText(
  3102. 'qdbmbi4g' /* Logo kiezen */,
  3103. ),
  3104. options: FFButtonOptions(
  3105. height: 40.0,
  3106. padding: EdgeInsetsDirectional.fromSTEB(
  3107. 16.0, 0.0, 16.0, 0.0),
  3108. iconPadding: EdgeInsetsDirectional.fromSTEB(
  3109. 0.0, 0.0, 0.0, 0.0),
  3110. color: FlutterFlowTheme.of(context).secondary,
  3111. textStyle: FlutterFlowTheme.of(context)
  3112. .titleSmall
  3113. .override(
  3114. font: GoogleFonts.roboto(
  3115. fontWeight:
  3116. FlutterFlowTheme.of(context)
  3117. .titleSmall
  3118. .fontWeight,
  3119. fontStyle:
  3120. FlutterFlowTheme.of(context)
  3121. .titleSmall
  3122. .fontStyle,
  3123. ),
  3124. color: Colors.white,
  3125. letterSpacing: 0.0,
  3126. fontWeight: FlutterFlowTheme.of(context)
  3127. .titleSmall
  3128. .fontWeight,
  3129. fontStyle: FlutterFlowTheme.of(context)
  3130. .titleSmall
  3131. .fontStyle,
  3132. ),
  3133. elevation: 0.0,
  3134. borderRadius: BorderRadius.circular(8.0),
  3135. ),
  3136. ),
  3137. ),
  3138. if (_model.createLogoUrl != null &&
  3139. _model.createLogoUrl != '')
  3140. ClipRRect(
  3141. borderRadius: BorderRadius.circular(8.0),
  3142. child: Image.network(
  3143. _model.createLogoUrl!,
  3144. width: 80.0,
  3145. height: 80.0,
  3146. fit: BoxFit.cover,
  3147. ),
  3148. ),
  3149. ],
  3150. ),
  3151. Row(
  3152. mainAxisSize: MainAxisSize.max,
  3153. children: [
  3154. if (_model.createFotosFids.length < 5)
  3155. Align(
  3156. alignment: AlignmentDirectional(-1.0, 0.0),
  3157. child: FFButtonWidget(
  3158. onPressed: () async {
  3159. final selectedMedia =
  3160. await selectMediaWithSourceBottomSheet(
  3161. context: context,
  3162. allowPhoto: true,
  3163. );
  3164. if (selectedMedia != null &&
  3165. selectedMedia.every((m) =>
  3166. validateFileFormat(
  3167. m.storagePath, context))) {
  3168. safeSetState(() => _model
  3169. .isDataUploading_uploadDataFotoos2 =
  3170. true);
  3171. var selectedUploadedFiles =
  3172. <FFUploadedFile>[];
  3173. try {
  3174. selectedUploadedFiles = selectedMedia
  3175. .map((m) => FFUploadedFile(
  3176. name: m.storagePath
  3177. .split('/')
  3178. .last,
  3179. bytes: m.bytes,
  3180. height: m.dimensions?.height,
  3181. width: m.dimensions?.width,
  3182. blurHash: m.blurHash,
  3183. originalFilename:
  3184. m.originalFilename,
  3185. ))
  3186. .toList();
  3187. } finally {
  3188. _model.isDataUploading_uploadDataFotoos2 =
  3189. false;
  3190. }
  3191. if (selectedUploadedFiles.length ==
  3192. selectedMedia.length) {
  3193. safeSetState(() {
  3194. _model.uploadedLocalFile_uploadDataFotoos2 =
  3195. selectedUploadedFiles.first;
  3196. });
  3197. } else {
  3198. safeSetState(() {});
  3199. return;
  3200. }
  3201. }
  3202. _model.fotouploadResult =
  3203. await actions.bestandUpload(
  3204. _model
  3205. .uploadedLocalFile_uploadDataFotoos2,
  3206. '/en/flutterdrup/bestand_upload/upload.json',
  3207. FFAppState().userSessionname,
  3208. FFAppState().userSessionid,
  3209. FFAppState().userToken,
  3210. );
  3211. if (getJsonField(
  3212. _model.logouploadResult,
  3213. r'''$.success''',
  3214. )) {
  3215. _model.addToCreateFotosFids(getJsonField(
  3216. _model.fotouploadResult,
  3217. r'''$.fid''',
  3218. ).toString());
  3219. _model.addToCreateFotosUrls(getJsonField(
  3220. _model.fotouploadResult,
  3221. r'''$.url''',
  3222. ).toString());
  3223. safeSetState(() {});
  3224. } else {
  3225. ScaffoldMessenger.of(context)
  3226. .showSnackBar(
  3227. SnackBar(
  3228. content: Text(
  3229. getJsonField(
  3230. _model.logouploadResult,
  3231. r'''$.error''',
  3232. ).toString(),
  3233. style: TextStyle(
  3234. color:
  3235. FlutterFlowTheme.of(context)
  3236. .primaryText,
  3237. ),
  3238. ),
  3239. duration:
  3240. Duration(milliseconds: 4000),
  3241. backgroundColor:
  3242. FlutterFlowTheme.of(context)
  3243. .secondary,
  3244. ),
  3245. );
  3246. }
  3247. safeSetState(() {});
  3248. },
  3249. text: FFLocalizations.of(context).getText(
  3250. 'joq0165d' /* Foto's kiezen */,
  3251. ),
  3252. options: FFButtonOptions(
  3253. height: 40.0,
  3254. padding: EdgeInsetsDirectional.fromSTEB(
  3255. 16.0, 0.0, 16.0, 0.0),
  3256. iconPadding: EdgeInsetsDirectional.fromSTEB(
  3257. 0.0, 0.0, 0.0, 0.0),
  3258. color:
  3259. FlutterFlowTheme.of(context).secondary,
  3260. textStyle: FlutterFlowTheme.of(context)
  3261. .titleSmall
  3262. .override(
  3263. font: GoogleFonts.roboto(
  3264. fontWeight:
  3265. FlutterFlowTheme.of(context)
  3266. .titleSmall
  3267. .fontWeight,
  3268. fontStyle:
  3269. FlutterFlowTheme.of(context)
  3270. .titleSmall
  3271. .fontStyle,
  3272. ),
  3273. color: Colors.white,
  3274. letterSpacing: 0.0,
  3275. fontWeight:
  3276. FlutterFlowTheme.of(context)
  3277. .titleSmall
  3278. .fontWeight,
  3279. fontStyle:
  3280. FlutterFlowTheme.of(context)
  3281. .titleSmall
  3282. .fontStyle,
  3283. ),
  3284. elevation: 0.0,
  3285. borderRadius: BorderRadius.circular(8.0),
  3286. ),
  3287. ),
  3288. ),
  3289. if (_model.createFotosUrls.length > 0)
  3290. Builder(
  3291. builder: (context) {
  3292. final fotoItem =
  3293. _model.createFotosUrls.toList();
  3294. _model.debugGeneratorVariables[
  3295. 'fotoItem${fotoItem.length > 100 ? ' (first 100)' : ''}'] =
  3296. debugSerializeParam(
  3297. fotoItem.take(100),
  3298. ParamType.String,
  3299. isList: true,
  3300. link:
  3301. 'https://app.flutterflow.io/project/uitgaanskrant-1qhvtd?tab=uiBuilder&page=stadsactiviteitAanmakenCopy2',
  3302. name: 'String',
  3303. nullable: false,
  3304. );
  3305. debugLogWidgetClass(_model);
  3306. return Wrap(
  3307. spacing: 8.0,
  3308. runSpacing: 8.0,
  3309. alignment: WrapAlignment.start,
  3310. crossAxisAlignment:
  3311. WrapCrossAlignment.start,
  3312. direction: Axis.horizontal,
  3313. runAlignment: WrapAlignment.start,
  3314. verticalDirection: VerticalDirection.down,
  3315. clipBehavior: Clip.none,
  3316. children: List.generate(fotoItem.length,
  3317. (fotoItemIndex) {
  3318. final fotoItemItem =
  3319. fotoItem[fotoItemIndex];
  3320. return ClipRRect(
  3321. borderRadius:
  3322. BorderRadius.circular(8.0),
  3323. child: Image.network(
  3324. fotoItemItem,
  3325. width: 80.0,
  3326. height: 80.0,
  3327. fit: BoxFit.cover,
  3328. ),
  3329. );
  3330. }),
  3331. );
  3332. },
  3333. ),
  3334. ],
  3335. ),
  3336. ],
  3337. ),
  3338. ),
  3339. if (_model.createPlaatsID != null &&
  3340. _model.createPlaatsID != '')
  3341. FFButtonWidget(
  3342. onPressed: () async {
  3343. _model.createResult =
  3344. await actions.stadsactiviteitCreate(
  3345. FFAppState().userSessionname,
  3346. FFAppState().userSessionid,
  3347. FFAppState().userToken,
  3348. _model.textFieldTitelTextController.text,
  3349. _model.createPlaatsID!,
  3350. functions.datumVoorApi(
  3351. _model.textFieldDatumStartTextController.text)!,
  3352. functions.datumVoorApi(
  3353. _model.textFieldDatumEindTextController.text),
  3354. _model.textFieldOmschrijvingTextController.text,
  3355. _model.textFieldOrganisatorTextController.text,
  3356. _model.textFieldContactTextController.text,
  3357. _model.textFieldAdresTextController.text,
  3358. _model.textFieldPlaatsTextController.text,
  3359. _model.textFieldPostcodeTextController.text,
  3360. _model.textFieldEntreeprijsTextController.text,
  3361. _model.textFieldToelichtingEntreeTextController.text,
  3362. _model.createCategorieTids.toList(),
  3363. _model.textFieldWebsiteURLTextController.text,
  3364. _model.createLogoFid,
  3365. _model.createFotosFids.toList(),
  3366. _model.createEntreeTid,
  3367. );
  3368. if (getJsonField(
  3369. _model.createResult,
  3370. r'''$.success''',
  3371. )) {
  3372. ScaffoldMessenger.of(context).showSnackBar(
  3373. SnackBar(
  3374. content: Text(
  3375. 'Je activiteit is ingediend en wordt beoordeeld door de redactie.',
  3376. style: TextStyle(
  3377. color:
  3378. FlutterFlowTheme.of(context).primaryText,
  3379. ),
  3380. ),
  3381. duration: Duration(milliseconds: 5000),
  3382. backgroundColor:
  3383. FlutterFlowTheme.of(context).secondary,
  3384. ),
  3385. );
  3386. context.safePop();
  3387. } else {
  3388. ScaffoldMessenger.of(context).showSnackBar(
  3389. SnackBar(
  3390. content: Text(
  3391. getJsonField(
  3392. _model.createResult,
  3393. r'''$.error''',
  3394. ).toString(),
  3395. style: TextStyle(
  3396. color:
  3397. FlutterFlowTheme.of(context).primaryText,
  3398. ),
  3399. ),
  3400. duration: Duration(milliseconds: 4000),
  3401. backgroundColor:
  3402. FlutterFlowTheme.of(context).secondary,
  3403. ),
  3404. );
  3405. }
  3406. safeSetState(() {});
  3407. },
  3408. text: FFLocalizations.of(context).getText(
  3409. 'elx96w0w' /* Activiteit indienen */,
  3410. ),
  3411. options: FFButtonOptions(
  3412. height: 40.0,
  3413. padding: EdgeInsetsDirectional.fromSTEB(
  3414. 16.0, 0.0, 16.0, 0.0),
  3415. iconPadding:
  3416. EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
  3417. color: FlutterFlowTheme.of(context).secondary,
  3418. textStyle:
  3419. FlutterFlowTheme.of(context).titleSmall.override(
  3420. font: GoogleFonts.roboto(
  3421. fontWeight: FlutterFlowTheme.of(context)
  3422. .titleSmall
  3423. .fontWeight,
  3424. fontStyle: FlutterFlowTheme.of(context)
  3425. .titleSmall
  3426. .fontStyle,
  3427. ),
  3428. color: Colors.white,
  3429. letterSpacing: 0.0,
  3430. fontWeight: FlutterFlowTheme.of(context)
  3431. .titleSmall
  3432. .fontWeight,
  3433. fontStyle: FlutterFlowTheme.of(context)
  3434. .titleSmall
  3435. .fontStyle,
  3436. ),
  3437. elevation: 0.0,
  3438. borderRadius: BorderRadius.circular(8.0),
  3439. ),
  3440. ),
  3441. Align(
  3442. alignment: AlignmentDirectional(-1.0, 0.0),
  3443. child: Padding(
  3444. padding: EdgeInsets.all(16.0),
  3445. child: Container(
  3446. decoration: BoxDecoration(
  3447. color:
  3448. FlutterFlowTheme.of(context).secondaryBackground,
  3449. borderRadius: BorderRadius.only(),
  3450. border: Border.all(
  3451. color: Color(0xFFEEEEEE),
  3452. width: 3.0,
  3453. ),
  3454. ),
  3455. child: Text(
  3456. FFLocalizations.of(context).getText(
  3457. 'hp9dvet9' /* Hello World */,
  3458. ),
  3459. style:
  3460. FlutterFlowTheme.of(context).bodyMedium.override(
  3461. font: GoogleFonts.roboto(
  3462. fontWeight: FlutterFlowTheme.of(context)
  3463. .bodyMedium
  3464. .fontWeight,
  3465. fontStyle: FlutterFlowTheme.of(context)
  3466. .bodyMedium
  3467. .fontStyle,
  3468. ),
  3469. letterSpacing: 0.0,
  3470. fontWeight: FlutterFlowTheme.of(context)
  3471. .bodyMedium
  3472. .fontWeight,
  3473. fontStyle: FlutterFlowTheme.of(context)
  3474. .bodyMedium
  3475. .fontStyle,
  3476. ),
  3477. ),
  3478. ),
  3479. ),
  3480. ),
  3481. ],
  3482. ),
  3483. ),
  3484. ),
  3485. ),
  3486. ),
  3487. );
  3488. }
  3489. }