You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

46m 14s logged

Add Create User Menu UI

I added all the required elements for the CreateUsemenu, the menu for creating the “user” who owns the chats in the archive. The menu has:

  • A side bar that contains buttons for selecting to edit the email or name, or selecting to create the user
  • A input box for the actual editing

ContentSwitcher

I spent most of my time on using a ContentSwitcher to switch which editor can be used based on which button was clicked. I completely missed how their demonstration worked the first time I tried to implement it in my app.

Input Boxes

My second problem was in saving the input boxes’ values so they can be used later. I was reading the API and completely missed how you were supposed to implement the on_input_changed method. They listed the variables (and their types) which were available when receiving the input. i thought that I had to create a method in my class with those inputs, then got very confused why I got so many argument errors. It turns out that you use event: Input.Changed parameter just like the button.

Organisation

The organisation is not entirely how I would like; the input widget is at the bottom not next to the buttons. I tried to wrap them in a Horizontal container, but this messed up using the self parameter. I might come back to this later after the rest of this app is done.

0
1

Comments 0

No comments yet. Be the first!