home_widget.dart 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. import '/components/header_buttons_component_widget.dart';
  2. import '/flutter_flow/flutter_flow_choice_chips.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 '/shared/drawer_component/drawer_component_widget.dart';
  8. import '/uitgaanspaginas/home_uitgaan_slider_component/home_uitgaan_slider_component_widget.dart';
  9. import '/uitgaanspaginas/home_uitgaantabel_kaart_component/home_uitgaantabel_kaart_component_widget.dart';
  10. import 'dart:ui';
  11. import '/custom_code/actions/index.dart' as actions;
  12. import '/flutter_flow/custom_functions.dart' as functions;
  13. import 'package:easy_debounce/easy_debounce.dart';
  14. import 'package:flutter/material.dart';
  15. import 'package:flutter_spinkit/flutter_spinkit.dart';
  16. import 'package:google_fonts/google_fonts.dart';
  17. import 'package:provider/provider.dart';
  18. import 'home_model.dart';
  19. export 'home_model.dart';
  20. class HomeWidget extends StatefulWidget {
  21. const HomeWidget({super.key});
  22. static String routeName = 'home';
  23. static String routePath = '/home';
  24. @override
  25. State<HomeWidget> createState() => _HomeWidgetState();
  26. }
  27. class _HomeWidgetState extends State<HomeWidget>
  28. with TickerProviderStateMixin, RouteAware {
  29. late HomeModel _model;
  30. final scaffoldKey = GlobalKey<ScaffoldState>();
  31. @override
  32. void initState() {
  33. super.initState();
  34. _model = createModel(context, () => HomeModel());
  35. _model.textController ??= TextEditingController()
  36. ..addListener(() {
  37. debugLogWidgetClass(_model);
  38. });
  39. _model.textFieldFocusNode ??= FocusNode();
  40. _model.textFieldFocusNode!.addListener(
  41. () async {
  42. safeSetState(() {});
  43. },
  44. );
  45. _model.tabBarController = TabController(
  46. vsync: this,
  47. length: 5,
  48. initialIndex: 0,
  49. )
  50. ..addListener(() => safeSetState(() {}))
  51. ..addListener(() {
  52. debugLogWidgetClass(_model);
  53. });
  54. }
  55. @override
  56. void dispose() {
  57. routeObserver.unsubscribe(this);
  58. _model.dispose();
  59. super.dispose();
  60. }
  61. @override
  62. void didUpdateWidget(HomeWidget oldWidget) {
  63. super.didUpdateWidget(oldWidget);
  64. _model.widget = widget;
  65. }
  66. @override
  67. void didChangeDependencies() {
  68. super.didChangeDependencies();
  69. final route = DebugModalRoute.of(context);
  70. if (route != null) {
  71. routeObserver.subscribe(this, route);
  72. }
  73. debugLogGlobalProperty(context);
  74. }
  75. @override
  76. void didPopNext() {
  77. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  78. setState(() => _model.isRouteVisible = true);
  79. debugLogWidgetClass(_model);
  80. }
  81. }
  82. @override
  83. void didPush() {
  84. if (mounted && DebugFlutterFlowModelContext.maybeOf(context) == null) {
  85. setState(() => _model.isRouteVisible = true);
  86. debugLogWidgetClass(_model);
  87. }
  88. }
  89. @override
  90. void didPop() {
  91. _model.isRouteVisible = false;
  92. }
  93. @override
  94. void didPushNext() {
  95. _model.isRouteVisible = false;
  96. }
  97. @override
  98. Widget build(BuildContext context) {
  99. DebugFlutterFlowModelContext.maybeOf(context)
  100. ?.parentModelCallback
  101. ?.call(_model);
  102. context.watch<FFAppState>();
  103. return GestureDetector(
  104. onTap: () {
  105. FocusScope.of(context).unfocus();
  106. FocusManager.instance.primaryFocus?.unfocus();
  107. },
  108. child: Scaffold(
  109. key: scaffoldKey,
  110. resizeToAvoidBottomInset: false,
  111. backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
  112. drawer: Drawer(
  113. elevation: 16.0,
  114. child: wrapWithModel(
  115. model: _model.drawerComponentModel,
  116. updateCallback: () => safeSetState(() {}),
  117. child: Builder(builder: (_) {
  118. return DebugFlutterFlowModelContext(
  119. rootModel: _model.rootModel,
  120. child: DrawerComponentWidget(),
  121. );
  122. }),
  123. ),
  124. ),
  125. appBar: PreferredSize(
  126. preferredSize: Size.fromHeight(50.0),
  127. child: AppBar(
  128. backgroundColor: FlutterFlowTheme.of(context).primaryText,
  129. iconTheme:
  130. IconThemeData(color: FlutterFlowTheme.of(context).secondary),
  131. automaticallyImplyLeading: false,
  132. actions: [],
  133. flexibleSpace: FlexibleSpaceBar(
  134. background: wrapWithModel(
  135. model: _model.headerButtonsComponentModel,
  136. updateCallback: () => safeSetState(() {}),
  137. child: Builder(builder: (_) {
  138. return DebugFlutterFlowModelContext(
  139. rootModel: _model.rootModel,
  140. child: HeaderButtonsComponentWidget(
  141. showBackButton: false,
  142. ),
  143. );
  144. }),
  145. ),
  146. centerTitle: true,
  147. expandedTitleScale: 1.0,
  148. ),
  149. bottom: PreferredSize(
  150. preferredSize: Size.fromHeight(70.0),
  151. child: Container(),
  152. ),
  153. toolbarHeight: MediaQuery.sizeOf(context).height * 0.25,
  154. elevation: 2.0,
  155. ),
  156. ),
  157. body: SafeArea(
  158. top: true,
  159. child: Column(
  160. mainAxisSize: MainAxisSize.max,
  161. children: [
  162. if (!(_model.textFieldFocusNode?.hasFocus ?? false))
  163. Material(
  164. color: Colors.transparent,
  165. elevation: 0.0,
  166. child: Container(
  167. height: 280.0,
  168. decoration: BoxDecoration(),
  169. child: wrapWithModel(
  170. model: _model.homeUitgaanSliderComponentModel,
  171. updateCallback: () => safeSetState(() {}),
  172. child: Builder(builder: (_) {
  173. return DebugFlutterFlowModelContext(
  174. rootModel: _model.rootModel,
  175. child: HomeUitgaanSliderComponentWidget(
  176. displayid: 'services_1',
  177. ),
  178. );
  179. }),
  180. ),
  181. ),
  182. ),
  183. Container(
  184. width: 260.0,
  185. child: TextFormField(
  186. controller: _model.textController,
  187. focusNode: _model.textFieldFocusNode,
  188. onChanged: (_) => EasyDebounce.debounce(
  189. '_model.textController',
  190. Duration(milliseconds: 2000),
  191. () async {
  192. FFAppState().zoekterm = _model.textController.text;
  193. safeSetState(() {});
  194. await actions.herlaadLijsten();
  195. },
  196. ),
  197. autofocus: false,
  198. enabled: true,
  199. obscureText: false,
  200. decoration: InputDecoration(
  201. isDense: true,
  202. labelStyle:
  203. FlutterFlowTheme.of(context).labelMedium.override(
  204. font: GoogleFonts.roboto(
  205. fontWeight: FlutterFlowTheme.of(context)
  206. .labelMedium
  207. .fontWeight,
  208. fontStyle: FlutterFlowTheme.of(context)
  209. .labelMedium
  210. .fontStyle,
  211. ),
  212. letterSpacing: 0.0,
  213. fontWeight: FlutterFlowTheme.of(context)
  214. .labelMedium
  215. .fontWeight,
  216. fontStyle: FlutterFlowTheme.of(context)
  217. .labelMedium
  218. .fontStyle,
  219. ),
  220. hintText: FFLocalizations.of(context).getText(
  221. 'qflzdn1h' /* Zoek op titel */,
  222. ),
  223. hintStyle:
  224. FlutterFlowTheme.of(context).labelMedium.override(
  225. font: GoogleFonts.roboto(
  226. fontWeight: FlutterFlowTheme.of(context)
  227. .labelMedium
  228. .fontWeight,
  229. fontStyle: FlutterFlowTheme.of(context)
  230. .labelMedium
  231. .fontStyle,
  232. ),
  233. letterSpacing: 0.0,
  234. fontWeight: FlutterFlowTheme.of(context)
  235. .labelMedium
  236. .fontWeight,
  237. fontStyle: FlutterFlowTheme.of(context)
  238. .labelMedium
  239. .fontStyle,
  240. ),
  241. enabledBorder: OutlineInputBorder(
  242. borderSide: BorderSide(
  243. color: Color(0x00000000),
  244. width: 1.0,
  245. ),
  246. borderRadius: BorderRadius.circular(8.0),
  247. ),
  248. focusedBorder: OutlineInputBorder(
  249. borderSide: BorderSide(
  250. color: Color(0x00000000),
  251. width: 1.0,
  252. ),
  253. borderRadius: BorderRadius.circular(8.0),
  254. ),
  255. errorBorder: OutlineInputBorder(
  256. borderSide: BorderSide(
  257. color: FlutterFlowTheme.of(context).error,
  258. width: 1.0,
  259. ),
  260. borderRadius: BorderRadius.circular(8.0),
  261. ),
  262. focusedErrorBorder: OutlineInputBorder(
  263. borderSide: BorderSide(
  264. color: FlutterFlowTheme.of(context).error,
  265. width: 1.0,
  266. ),
  267. borderRadius: BorderRadius.circular(8.0),
  268. ),
  269. filled: true,
  270. fillColor: FlutterFlowTheme.of(context).secondaryBackground,
  271. ),
  272. style: FlutterFlowTheme.of(context).bodyMedium.override(
  273. font: GoogleFonts.roboto(
  274. fontWeight: FlutterFlowTheme.of(context)
  275. .bodyMedium
  276. .fontWeight,
  277. fontStyle:
  278. FlutterFlowTheme.of(context).bodyMedium.fontStyle,
  279. ),
  280. letterSpacing: 0.0,
  281. fontWeight:
  282. FlutterFlowTheme.of(context).bodyMedium.fontWeight,
  283. fontStyle:
  284. FlutterFlowTheme.of(context).bodyMedium.fontStyle,
  285. ),
  286. cursorColor: FlutterFlowTheme.of(context).primaryText,
  287. enableInteractiveSelection: true,
  288. validator:
  289. _model.textControllerValidator.asValidator(context),
  290. ),
  291. ),
  292. FlutterFlowChoiceChips(
  293. options: [
  294. ChipData(FFLocalizations.of(context).getText(
  295. '8khvlnye' /* Alles */,
  296. )),
  297. ChipData(FFLocalizations.of(context).getText(
  298. 'iov8u1yi' /* Vandaag */,
  299. )),
  300. ChipData(FFLocalizations.of(context).getText(
  301. 'gco4jgol' /* Dit weekend */,
  302. )),
  303. ChipData(FFLocalizations.of(context).getText(
  304. 'h6ou1q9q' /* Deze week */,
  305. ))
  306. ],
  307. onChanged: (val) async {
  308. safeSetState(
  309. () => _model.choiceChipsValue = val?.firstOrNull);
  310. FFAppState().datumFilter = _model.choiceChipsValue!;
  311. safeSetState(() {});
  312. await actions.herlaadLijsten();
  313. },
  314. selectedChipStyle: ChipStyle(
  315. backgroundColor: FlutterFlowTheme.of(context).secondary,
  316. textStyle: FlutterFlowTheme.of(context).bodyMedium.override(
  317. font: GoogleFonts.roboto(
  318. fontWeight: FlutterFlowTheme.of(context)
  319. .bodyMedium
  320. .fontWeight,
  321. fontStyle:
  322. FlutterFlowTheme.of(context).bodyMedium.fontStyle,
  323. ),
  324. color: FlutterFlowTheme.of(context).info,
  325. letterSpacing: 0.0,
  326. fontWeight:
  327. FlutterFlowTheme.of(context).bodyMedium.fontWeight,
  328. fontStyle:
  329. FlutterFlowTheme.of(context).bodyMedium.fontStyle,
  330. ),
  331. iconColor: FlutterFlowTheme.of(context).info,
  332. iconSize: 16.0,
  333. elevation: 0.0,
  334. borderRadius: BorderRadius.circular(8.0),
  335. ),
  336. unselectedChipStyle: ChipStyle(
  337. backgroundColor:
  338. FlutterFlowTheme.of(context).secondaryBackground,
  339. textStyle: FlutterFlowTheme.of(context).bodyMedium.override(
  340. font: GoogleFonts.roboto(
  341. fontWeight: FlutterFlowTheme.of(context)
  342. .bodyMedium
  343. .fontWeight,
  344. fontStyle:
  345. FlutterFlowTheme.of(context).bodyMedium.fontStyle,
  346. ),
  347. color: FlutterFlowTheme.of(context).secondaryText,
  348. letterSpacing: 0.0,
  349. fontWeight:
  350. FlutterFlowTheme.of(context).bodyMedium.fontWeight,
  351. fontStyle:
  352. FlutterFlowTheme.of(context).bodyMedium.fontStyle,
  353. ),
  354. iconColor: FlutterFlowTheme.of(context).secondaryText,
  355. iconSize: 16.0,
  356. elevation: 0.0,
  357. borderRadius: BorderRadius.circular(8.0),
  358. ),
  359. chipSpacing: 8.0,
  360. rowSpacing: 8.0,
  361. multiselect: false,
  362. initialized: _model.choiceChipsValue != null,
  363. alignment: WrapAlignment.start,
  364. controller: _model.choiceChipsValueController ??=
  365. FormFieldController<List<String>>(
  366. [
  367. FFLocalizations.of(context).getText(
  368. 'g09d1fb5' /* Alles */,
  369. )
  370. ],
  371. ),
  372. wrapped: true,
  373. ),
  374. Expanded(
  375. child: Column(
  376. children: [
  377. Align(
  378. alignment: Alignment(0.0, 0),
  379. child: TabBar(
  380. isScrollable: true,
  381. tabAlignment: TabAlignment.center,
  382. labelColor: FlutterFlowTheme.of(context).primaryText,
  383. unselectedLabelColor:
  384. FlutterFlowTheme.of(context).secondaryText,
  385. labelStyle:
  386. FlutterFlowTheme.of(context).titleMedium.override(
  387. font: GoogleFonts.roboto(
  388. fontWeight: FlutterFlowTheme.of(context)
  389. .titleMedium
  390. .fontWeight,
  391. fontStyle: FlutterFlowTheme.of(context)
  392. .titleMedium
  393. .fontStyle,
  394. ),
  395. letterSpacing: 0.0,
  396. fontWeight: FlutterFlowTheme.of(context)
  397. .titleMedium
  398. .fontWeight,
  399. fontStyle: FlutterFlowTheme.of(context)
  400. .titleMedium
  401. .fontStyle,
  402. ),
  403. unselectedLabelStyle:
  404. FlutterFlowTheme.of(context).titleMedium.override(
  405. font: GoogleFonts.roboto(
  406. fontWeight: FlutterFlowTheme.of(context)
  407. .titleMedium
  408. .fontWeight,
  409. fontStyle: FlutterFlowTheme.of(context)
  410. .titleMedium
  411. .fontStyle,
  412. ),
  413. letterSpacing: 0.0,
  414. fontWeight: FlutterFlowTheme.of(context)
  415. .titleMedium
  416. .fontWeight,
  417. fontStyle: FlutterFlowTheme.of(context)
  418. .titleMedium
  419. .fontStyle,
  420. ),
  421. indicatorColor: FlutterFlowTheme.of(context).secondary,
  422. tabs: [
  423. Tab(
  424. text: FFLocalizations.of(context).getText(
  425. 'eor4c9rz' /* Uitgaan */,
  426. ),
  427. ),
  428. Tab(
  429. text: FFLocalizations.of(context).getText(
  430. 'mx7sn4ne' /* Activiteiten */,
  431. ),
  432. ),
  433. Tab(
  434. text: FFLocalizations.of(context).getText(
  435. 'e6xyyt74' /* Cultuur & Info */,
  436. ),
  437. ),
  438. Tab(
  439. text: FFLocalizations.of(context).getText(
  440. 'uxy2nfok' /* Films */,
  441. ),
  442. ),
  443. Tab(
  444. text: FFLocalizations.of(context).getText(
  445. 'lx77xfrn' /* Jeugd */,
  446. ),
  447. ),
  448. ],
  449. controller: _model.tabBarController,
  450. onTap: (i) async {
  451. [
  452. () async {},
  453. () async {
  454. _model.tabActiviteitenGeladen = true;
  455. safeSetState(() {});
  456. },
  457. () async {
  458. _model.tabCultuurGeladen = true;
  459. safeSetState(() {});
  460. },
  461. () async {
  462. _model.tabFilmsGeladen = true;
  463. safeSetState(() {});
  464. },
  465. () async {
  466. _model.tabJeugdGeladen = true;
  467. safeSetState(() {});
  468. }
  469. ][i]();
  470. },
  471. ),
  472. ),
  473. Expanded(
  474. child: TabBarView(
  475. controller: _model.tabBarController,
  476. children: [
  477. Column(
  478. mainAxisSize: MainAxisSize.max,
  479. children: [
  480. Expanded(
  481. child: wrapWithModel(
  482. model: _model
  483. .homeUitgaantabelKaartComponentModel1,
  484. updateCallback: () => safeSetState(() {}),
  485. child: Builder(builder: (_) {
  486. return DebugFlutterFlowModelContext(
  487. rootModel: _model.rootModel,
  488. child:
  489. HomeUitgaantabelKaartComponentWidget(
  490. key: ValueKey(FFAppState().datumFilter),
  491. displayid: 'services_3',
  492. datumVan: functions.filterDatumVan(
  493. FFAppState().datumFilter),
  494. datumTot: functions.filterDatumTot(
  495. FFAppState().datumFilter),
  496. zoekterm: FFAppState().zoekterm,
  497. ),
  498. );
  499. }),
  500. ),
  501. ),
  502. ],
  503. ),
  504. Builder(
  505. builder: (context) {
  506. if (_model.tabActiviteitenGeladen) {
  507. return Column(
  508. mainAxisSize: MainAxisSize.max,
  509. children: [
  510. Expanded(
  511. child: wrapWithModel(
  512. model: _model
  513. .homeUitgaantabelKaartComponentModel2,
  514. updateCallback: () =>
  515. safeSetState(() {}),
  516. child: Builder(builder: (_) {
  517. return DebugFlutterFlowModelContext(
  518. rootModel: _model.rootModel,
  519. child:
  520. HomeUitgaantabelKaartComponentWidget(
  521. key: ValueKey(
  522. FFAppState().datumFilter),
  523. displayid: 'services_4',
  524. datumVan:
  525. functions.filterDatumVan(
  526. FFAppState().datumFilter),
  527. datumTot:
  528. functions.filterDatumTot(
  529. FFAppState().datumFilter),
  530. zoekterm: FFAppState().zoekterm,
  531. ),
  532. );
  533. }),
  534. ),
  535. ),
  536. ],
  537. );
  538. } else {
  539. return Container(
  540. width: 100.0,
  541. height: 100.0,
  542. decoration: BoxDecoration(
  543. color: FlutterFlowTheme.of(context)
  544. .secondaryBackground,
  545. ),
  546. );
  547. }
  548. },
  549. ),
  550. Builder(
  551. builder: (context) {
  552. if (_model.tabCultuurGeladen) {
  553. return Column(
  554. mainAxisSize: MainAxisSize.max,
  555. children: [
  556. Expanded(
  557. child: wrapWithModel(
  558. model: _model
  559. .homeUitgaantabelKaartComponentModel3,
  560. updateCallback: () =>
  561. safeSetState(() {}),
  562. child: Builder(builder: (_) {
  563. return DebugFlutterFlowModelContext(
  564. rootModel: _model.rootModel,
  565. child:
  566. HomeUitgaantabelKaartComponentWidget(
  567. key: ValueKey(
  568. FFAppState().datumFilter),
  569. displayid: 'services_5',
  570. datumVan:
  571. functions.filterDatumVan(
  572. FFAppState().datumFilter),
  573. datumTot:
  574. functions.filterDatumTot(
  575. FFAppState().datumFilter),
  576. zoekterm: FFAppState().zoekterm,
  577. ),
  578. );
  579. }),
  580. ),
  581. ),
  582. ],
  583. );
  584. } else {
  585. return Container(
  586. width: 100.0,
  587. height: 100.0,
  588. decoration: BoxDecoration(
  589. color: FlutterFlowTheme.of(context)
  590. .secondaryBackground,
  591. ),
  592. );
  593. }
  594. },
  595. ),
  596. Builder(
  597. builder: (context) {
  598. if (_model.tabFilmsGeladen) {
  599. return Column(
  600. mainAxisSize: MainAxisSize.max,
  601. children: [
  602. Expanded(
  603. child: wrapWithModel(
  604. model: _model
  605. .homeUitgaantabelKaartComponentModel4,
  606. updateCallback: () =>
  607. safeSetState(() {}),
  608. child: Builder(builder: (_) {
  609. return DebugFlutterFlowModelContext(
  610. rootModel: _model.rootModel,
  611. child:
  612. HomeUitgaantabelKaartComponentWidget(
  613. key: ValueKey(
  614. FFAppState().datumFilter),
  615. displayid: 'services_6',
  616. datumVan:
  617. functions.filterDatumVan(
  618. FFAppState().datumFilter),
  619. datumTot:
  620. functions.filterDatumTot(
  621. FFAppState().datumFilter),
  622. zoekterm: FFAppState().zoekterm,
  623. ),
  624. );
  625. }),
  626. ),
  627. ),
  628. ],
  629. );
  630. } else {
  631. return Container(
  632. width: 100.0,
  633. height: 100.0,
  634. decoration: BoxDecoration(
  635. color: FlutterFlowTheme.of(context)
  636. .secondaryBackground,
  637. ),
  638. );
  639. }
  640. },
  641. ),
  642. Builder(
  643. builder: (context) {
  644. if (_model.tabJeugdGeladen) {
  645. return Column(
  646. mainAxisSize: MainAxisSize.max,
  647. children: [
  648. Expanded(
  649. child: wrapWithModel(
  650. model: _model
  651. .homeUitgaantabelKaartComponentModel5,
  652. updateCallback: () =>
  653. safeSetState(() {}),
  654. child: Builder(builder: (_) {
  655. return DebugFlutterFlowModelContext(
  656. rootModel: _model.rootModel,
  657. child:
  658. HomeUitgaantabelKaartComponentWidget(
  659. key: ValueKey(
  660. FFAppState().datumFilter),
  661. displayid: 'services_7',
  662. datumVan:
  663. functions.filterDatumVan(
  664. FFAppState().datumFilter),
  665. datumTot:
  666. functions.filterDatumTot(
  667. FFAppState().datumFilter),
  668. zoekterm: FFAppState().zoekterm,
  669. ),
  670. );
  671. }),
  672. ),
  673. ),
  674. ],
  675. );
  676. } else {
  677. return Container(
  678. width: 100.0,
  679. height: 100.0,
  680. decoration: BoxDecoration(
  681. color: FlutterFlowTheme.of(context)
  682. .secondaryBackground,
  683. ),
  684. );
  685. }
  686. },
  687. ),
  688. ],
  689. ),
  690. ),
  691. ],
  692. ),
  693. ),
  694. ],
  695. ),
  696. ),
  697. ),
  698. );
  699. }
  700. }