⌂
›
Tutorials
›
Example Gallery
Examples
The Ruflet repo already ships a strong set of examples. If you want to learn the framework quickly, start here before building everything from scratch.
How to run examples
From the examples folder:
-function">bundle install
-function">bundle exec -function">ruflet run main
-function">bundle exec -function">ruflet run calculator
-function">bundle exec -function">ruflet run solitaire
-function">bundle exec -function">ruflet run todo
-function">bundle exec -function">ruflet run dialog
-function">bundle exec -function">ruflet run image_galleryStarter examples
hello_world.rb: smallest class-based examplecounter.rb: smallestRuflet.runexamplemain.rb: app shell with multiple common controlsnavigation.rb: navigation structure and route-driven patterns
Productivity examples
todo.rb: lists, filters, actions, and local state updatescalculator.rb: buttons, layout, and event handlingdialog.rb: alert dialogs, bottom sheets, banners, and feedback surfaces
UI pattern examples
tabs.rb: top tabs plus a bottom navigation barimage_gallery.rb: media layout and image presentation
Showcase examples
solitaire.rb: a larger interactive app with richer state and composition- Ruflet Studio: an internal gallery app covering controls, charts, services, media, and utilities
What Ruflet Studio demonstrates
Ruflet Studio is especially valuable because it exercises features beyond the smallest demos:
- Material controls
- Cupertino controls
- counters, calculators, and todo flows
- charts
- drawing/canvas-style features
- web view, audio, video, battery, flashlight, connectivity, camera
- file picker, clipboard, share, storage paths
- icon search and more advanced utility screens
Best learning path
- Run
counter.rborhello_world.rb. - Move to
dialog.rbandtabs.rb. - Open
todo.rbfor a realistic stateful example. - Browse Ruflet Studio when you want to see broader feature coverage.
Use examples as documentation
Ruflet is still growing, so examples are not just demos. They are one of the best sources of truth for:
- naming conventions
- current helper function shapes
- event/update patterns
- how services are wired in practice