Skip to content

Commit

Permalink
fix: :vsync was not participating correctly in the local scope; local…
Browse files Browse the repository at this point in the history
…s defined above :vsync where frozen in time
  • Loading branch information
cgrand committed Jun 29, 2023
1 parent 596862e commit 1bc825d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions clj/src/cljd/flutter.cljd
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,13 @@
(~'createState [_#]
(reify :extends widgets/State
:no-meta true
(~'build [state# ~closest-context]
(let [~name state#]
(-widget-cont ~(assoc env :key nil :closest-ctx true) ~@forms)))
^:mixin widgets/TickerProviderStateMixin))))
(~'build [state# ctx#]
(-build (.-widget state#) state# ctx#))
^:mixin widgets/TickerProviderStateMixin))
StateLifecycle
(~'-build [_# state# ~closest-context]
(let [~(vary-meta name assoc :tag `widgets/TickerProvider) state#]
(-widget-cont ~(assoc env :key nil :closest-ctx true) ~@forms)))))

(deftype SpyWidget [k child f]
:extends (widgets/StatelessWidget .key k)
Expand Down

0 comments on commit 1bc825d

Please sign in to comment.