Tutorial¶
Welcome to Lucy Studio. This tutorial introduces the core concepts and guides you through building a simple interactive screen.
You will create a page where text changes when a button is tapped.
Place Widgets on the Canvas¶
Place a
Columnwidget first, then addTextandButtoninside it.
-
Place a Column widget
- Select
Columnin the widget list. - Drag it onto the canvas.

- Select
-
Place a Text widget
- Select
Textin the widget list. - Drag and drop it inside the
Column.

- Select
-
Place a Button widget
- Select
Buttonin the widget list. - Drag and drop it inside the
Column.

- Select
-
Check the widget tree
- Confirm that
TextandButtonare children ofColumnin order.

- Confirm that
Why place
Columnfirst?Lucy Studio generates Flutter code. Widgets such as
TextandButtonneed a layout parent that defines position and space.Columnprovides that layout context.
Edit Widget Properties¶
-
Update Column alignment
- Select
Columnon the canvas. - In the Property panel, set
mainAxisAlignmentto center.

- Select
-
Edit Text widget properties
- Select
Text. - Set
idtotxtHello. - Set
fontSizeto36.0.

- Select
-
Edit Button widget properties
- Select
Button. - Set
idtomyBtn.

- Select
Write a Script¶
-
Open the script window
- Click
Code Editorin the upper-right corner of the canvas.

- Click
-
Add your script
- Enter the script shown below.

Verify in Lucy Player¶
Make sure Lucy Player is installed and logged in on the target device.
- Install Lucy Player
-
Connect the device
- Enter an alias in Lucy Player.
- Scan the project QR code (or enter the UUID manually).

-
Run from Studio
- Click the phone icon in Action Bar and confirm the connected device.
- Click Run (triangle icon).

-
Check the result on Player
- Tap the button and verify the text changes.

For detailed setup, see Set Up and Connect Lucy Player.