ClojureDart
ClojureDart copied to clipboard
Clojure dialect for Flutter and Dart
From conversation in [slack](https://clojurians.slack.com/archives/C03A6GE8D32/p1655323061319559). When trying to run `clj -M:cljd flutter` I get the following output ``` PS C:\Users\Franco\Desktop\flutterexample> clj -M -m cljd.build flutter === Warming up `.clojuredart/libs-info.edn` === (helps...
When type hinting a function and using it, compiler looses all type inference informations. Spend some type debugging it but it should probably go into the bigger fn refactor. ```...
Attempting to handle #218 So far only the compiler error when supplying options is fixed. No attempt has yet been made on actually supporting the actual extension part of it.
Context: https://dart.dev/guides/libraries/create-packages#conditionally-importing-and-exporting-library-files [file_picker](https://github.com/miguelpruivo/flutter_file_picker/blob/master/lib/src/platform_file.dart) uses [cross_file](https://github.com/flutter/packages/blob/main/packages/cross_file/lib/src/x_file.dart). The CLJD compiler resolves XFile classes to the one in the stub `types/interface.dart` and add explicit import to this file from the compiled ns while...
Hey! I'm on windows and my terminal is bash from msys2-mingw64. I installed clojure as a powershell module. I can run `clj` by calling `powershell -encodedcommand YwBsAGoA` see [here](https://gchq.github.io/CyberChef/#recipe=Encode_text('UTF-16LE%20(1200)')To_Base64('A-Za-z0-9%2B/%3D')&input=Y2xq). ```...
**Describe the bug** `with-open` will not compile. Does your problem persist after `clj -M:cljd clean && flutter clean`? Yes **To Reproduce** Steps to reproduce the behavior: 1. Create any ClojureDart...
This affects both produced code and consumption from Dart. As part of the abstract class backing a protocol we could have static methods to invoke the protocol. This would help...
When binding a nullable Function property inference should remove the? ```clj (when-some [cb (-> (m/ContextMenuButtonItem .onPressed nil) .-onPressed)] (cb)) ``` will generate ```dart final void Function()? some$6054_$AUTO_$1=const f_material.ContextMenuButtonItem(onPressed: null, ).onPressed;...
```clj (def color (let [a (-> m/MaterialStateProperty (. #/(all m/Color) m/Colors.white) )] a)) ``` will generate: ```dart final f_material.MaterialStateProperty a$1=(f_material.MaterialStateProperty.all(f_material.Colors.white, )); ``` Varaible `a$1` should be defined with its type...
All classes appearing as literals should be reified so has to allow for a true `instance?` function and multimethods hierarchies (#3). Methods exposed by a reify type should allow to...