Skip to content

Instantly share code, notes, and snippets.

@thosakwe
Last active October 27, 2022 13:02
Show Gist options
  • Save thosakwe/0c0cc473ef39fb2dcef77aab43de6715 to your computer and use it in GitHub Desktop.
Save thosakwe/0c0cc473ef39fb2dcef77aab43de6715 to your computer and use it in GitHub Desktop.
Flutter in Lisp???
(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)))))))
#!/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