implement launch builder for the desktop and web platforms

This commit is contained in:
Evan Almloff committed 2024-01-16 08:42:16 -06:00
1 parent ef553a2cb2
commit 7e4d2debe0
70 files changed
+448 -431

No files matched your search

+2 -6
View File
@@ -4,8 +4,7 @@ use std::rc::Rc;
use dioxus::{html::geometry::euclid::Rect, prelude::*};
fn main() {
dioxus_desktop::launch_cfg(
app,
LaunchBuilder::new(app).cfg(
dioxus_desktop::Config::default().with_custom_head(
r#"
<style type="text/css">
@@ -48,9 +47,6 @@ fn app() -> Element {
"This element is {dimensions():?}"
}
button {
onclick: read_dims,
"Read dimensions"
}
button { onclick: read_dims, "Read dimensions" }
)
}