File tree 1 file changed +35
-35
lines changed
1 file changed +35
-35
lines changed Original file line number Diff line number Diff line change @@ -16,44 +16,44 @@ import ui
16
16
17
17
struct App {
18
18
mut:
19
- window &ui.Window = unsafe { nil }
20
- first_name string
21
- last_name string
19
+ window &ui.Window = unsafe { nil }
20
+ first_name string
21
+ last_name string
22
22
}
23
23
24
24
fn main() {
25
- mut app := &App{}
26
- app.window = ui.window(
27
- width: 600
28
- height: 400
29
- title: 'V UI Demo'
30
- children: [
31
- ui.row(
32
- margin: ui.Margin{10, 10, 10, 10}
33
- children: [
34
- ui.column(
35
- width: 200
36
- spacing: 13
37
- children: [
38
- ui.textbox(
39
- max_len: 20
40
- width: 200
41
- placeholder: 'First name'
42
- text: &app.first_name
43
- ),
44
- ui.textbox(
45
- max_len: 50
46
- width: 200
47
- placeholder: 'Last name'
48
- text: &app.last_name
49
- ),
50
- ]
51
- ),
52
- ]
53
- ),
54
- ]
55
- )
56
- ui.run(app.window)
25
+ mut app := &App{}
26
+ app.window = ui.window(
27
+ width: 600
28
+ height: 400
29
+ title: 'V UI Demo'
30
+ children: [
31
+ ui.row(
32
+ margin: ui.Margin{10, 10, 10, 10}
33
+ children: [
34
+ ui.column(
35
+ width: 200
36
+ spacing: 13
37
+ children: [
38
+ ui.textbox(
39
+ max_len: 20
40
+ width: 200
41
+ placeholder: 'First name'
42
+ text: &app.first_name
43
+ ),
44
+ ui.textbox(
45
+ max_len: 50
46
+ width: 200
47
+ placeholder: 'Last name'
48
+ text: &app.last_name
49
+ ),
50
+ ]
51
+ ),
52
+ ]
53
+ ),
54
+ ]
55
+ )
56
+ ui.run(app.window)
57
57
}
58
58
````
59
59
You can’t perform that action at this time.
0 commit comments