Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

github: [AdamMusa]
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ require "ruflet"
Ruflet.run do |page|
page.title = "Counter Demo"
count = 0
count_text = text(count.to_s, size: 40)

count_text = text(count.to_s, style: { size: 40 })
page.add(
container(
expand: true,
Expand Down
2 changes: 1 addition & 1 deletion docs/RUFLET_ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Not yet implemented in core:

- [ ] Standardize service registration/invoke contract (request/response/event)
- [ ] Add first high-impact services: `Clipboard`, `FilePicker`, `Connectivity`, `Share`, `SharedPreferences`
- [ ] Add storage/services docs and examples in `examples/ruflet_studio`
- [ ] Add storage/services docs and examples in `ruflet_studio`

### Phase 4: Advanced/Optional

Expand Down
3 changes: 1 addition & 2 deletions docs/creating_new_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ require "ruflet"
Ruflet.run do |page|
page.title = "Counter Demo"
count = 0
count_text = text(count.to_s, size: 40)

count_text = text(count.to_s, style: { size: 40 })
page.add(
container(
expand: true,
Expand Down
16 changes: 9 additions & 7 deletions docs/widgets.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Ruflet.run do |page|
horizontal_alignment: Ruflet::CrossAxisAlignment::CENTER,
spacing: 8,
children: [
text(value: "Hello Ruflet", size: 28)
text(value: "Hello Ruflet", style: { size: 28 })
]
)

Expand Down Expand Up @@ -55,7 +55,7 @@ class CenteredApp < Ruflet::App
page.title = "Centered"
page.vertical_alignment = Ruflet::MainAxisAlignment::CENTER
page.horizontal_alignment = Ruflet::CrossAxisAlignment::CENTER
page.add(text(value: "Hello World!", size: 32))
page.add(text(value: "Hello World!", style: { size: 32 } ))
end
end

Expand Down Expand Up @@ -127,7 +127,7 @@ class ContentApp < Ruflet::App
def view(page)
page.add(
column(spacing: 10) do
text(value: "Title", size: 24, weight: "bold")
text(value: "Title", style: { size: 24 , weight: "bold"})
text_field(label: "Name", width: 220)
elevated_button(text: "Primary")
end
Expand Down Expand Up @@ -176,7 +176,9 @@ class AppBarApp < Ruflet::App
color: "#FFFFFF",
title: text(value: "My App")
),
floating_action_button: fab("+", on_click: ->(_e) { puts "fab" })
floating_action_button: fab(
icon: icon(icon: Ruflet::MaterialIcons::ADD),
on_click: ->(_e) { puts "fab" })
)
end
end
Expand Down Expand Up @@ -217,9 +219,9 @@ class TabsApp < Ruflet::App
bottom_tabs = navigation_bar(
selected_index: 0,
destinations: [
navigation_bar_destination(icon: icon(icon: 0xe88a), label: "Home"),
navigation_bar_destination(icon: icon(icon: 0xea28), label: "Play"),
navigation_bar_destination(icon: icon(icon: 0xe8b8), label: "Settings")
navigation_bar_destination(icon: icon(icon: Ruflet::MaterialIcons::HOME ), label: "Home"),
navigation_bar_destination(icon: icon(icon: Ruflet::MaterialIcons::HOME ), label: "Play"),
navigation_bar_destination(icon: icon(icon: Ruflet::MaterialIcons::SETTINGS ), label: "Settings")
]
)

Expand Down
126 changes: 0 additions & 126 deletions examples/ruflet_studio/app.rb

This file was deleted.

Loading
Loading