From the course: Flutter Essential Training: Build for Multiple Platforms
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Structure: Flexible and expanded - Flutter Tutorial
From the course: Flutter Essential Training: Build for Multiple Platforms
Structure: Flexible and expanded
- [Instructor] Let's talk about structure now. Look at our current implementation of our app. And do you notice the problem? Our chat input box is scrollable along with our chat bubble list, but ideally it should be sticky along the bottom of the screen, right? So let's suppose we have three ChatBubbles and one ChatInput at the end. But technically only the ChatBubbles should be inside a scrollable component. But currently the ChatBubbles and the ChatInput both are inside the scrollable component. The ChatInput should remain fixed at the end of the parent height, in our case device height. So ChatInput should move out of the ListView here. And since the ListView and the ChatInput is placed one after another in the vertical axis, it should be placed inside another parent widget, Column. So let's code this in Android Studio. So currently we have this ListView. Let's wrap this up with Column. And ListView currently has…
Contents
-
-
-
-
-
Flutter building blocks to know about11m 7s
-
(Locked)
Building basic widgets for the login screen23m 38s
-
(Locked)
Building basic widgets for the chat screen17m 26s
-
(Locked)
Placements and alignments12m 36s
-
(Locked)
Structure: Flexible and expanded6m 17s
-
(Locked)
Creating your own custom widget6m 13s
-
(Locked)
Building dynamic lists3m 34s
-
(Locked)
How to breakdown designs into code?3m 11s
-
(Locked)
Breaking down designs: More examples3m 14s
-
-
-
-
-
-