From 1a1fbcf89e64d770949d6dfd10be26ab41c9796b Mon Sep 17 00:00:00 2001 From: Christophe Grand Date: Fri, 24 Nov 2023 11:03:52 +0100 Subject: [PATCH] Revert "fix context passing" -- bad bad dirty buffer This reverts commit 64dd43ecb9d0e24dee313693b26c34999514e0fb. --- clj/src/cljd/flutter.cljd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clj/src/cljd/flutter.cljd b/clj/src/cljd/flutter.cljd index c6d36da5..1186dec8 100644 --- a/clj/src/cljd/flutter.cljd +++ b/clj/src/cljd/flutter.cljd @@ -565,13 +565,13 @@ `(widgets/Padding .key ~(:env key) .padding (edge-insets-geometry ~padding) - .child (-widget-cont ~(assoc env :key nil :closest-ctx true) ~@forms))) + .child (-widget-cont ~(assoc env :key nil :closest-ctx false) ~@forms))) (defn ^:macro-support expand-color [env color forms] `(widgets/ColoredBox .key ~(:env key) .color ~color - .child (-widget-cont ~(assoc env :key nil :closest-ctx true) ~@forms))) + .child (-widget-cont ~(assoc env :key nil :closest-ctx false) ~@forms))) (defn ^:macro-support expand-height-width [env forms] (let [dims (take-while (fn [[k]] (case k (:height :width) true false)) (partition 2 forms)) @@ -581,7 +581,7 @@ .key ~(:env key) .width ~width .height ~height - .child (-widget-cont ~(assoc env :key nil :closest-ctx true) ~@forms)))) + .child (-widget-cont ~(assoc env :key nil :closest-ctx false) ~@forms)))) (deftype SpyWidget [k child f] :extends (widgets/StatelessWidget .key k)