Rows and columns: the log-in screen
Section 7: Arranging the screenLesson 7.1 · ⏱ 12 min
🎯 Project goal
A log-in screen: a name, a password and two buttons. The right password is 1234.


- A vertical layout puts parts on top of each other, and a horizontal layout puts them side by side.
- To put a part inside a row or a column: choose it, then choose its place in the “Inside” property.



- Make the app say the number of wrong tries.
📌 Another example: a settings screen
A coloured column, with two rows inside it: in each row a word and a switch.



✍️ Practise
Make the example yourself: put the parts in “🎨 Design”, then the blocks, and tap ▶ Run.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
Three buttons in one row.
👀 Show the solution🙈 Hide the solution

Result: three buttons side by side.
Medium
A column with a yellow background, with a title, a text box and a button in it.
👀 Show the solution🙈 Hide the solution

Result: everything inside the yellow column.
Hard
A log-in screen: a row with the “Enter” and “Clear” buttons, and “Clear” empties the two boxes.
👀 Show the solution🙈 Hide the solution



Result: the two boxes are empty.

