Last active
October 27, 2022 13:02
-
-
Save thosakwe/0c0cc473ef39fb2dcef77aab43de6715 to your computer and use it in GitHub Desktop.
Flutter in Lisp???
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defclass MyWidget (StatelessWidget) | |
(defun build (ctx) | |
(Column | |
(AppBar | |
:title (Text "Hello, Disp!") | |
:actions (list | |
(Text "A") | |
(Padding | |
:padding (EdgeInsets.all 16) | |
:child (Text "B")))) | |
(Expanded | |
(ListView.builder | |
:itemCount 35 | |
:itemBuilder (lambda (ctx index) Text((toString i))))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env guile -s | |
!# | |
(use-modules (flutter material)) | |
(define (my-app context) | |
(material-app | |
(scaffold | |
#:app-bar | |
(app-bar | |
(text "Title")) | |
#:body | |
(center | |
(text "Hello, Flutter!"))))) | |
(run-app my-app) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment