Flutter (45):TabBarView

Flutter (45):TabBarView

The TabBarView is a layout component provided by the Material widget library, often used in conjunction with the TabBar.45.1 TabBarViewTabBarView encapsulates PageView, and its constructor is straight···
Time: Views:298
Flutter (43): PageView and page cache

Flutter (43): PageView and page cache

43.1 PageViewIf you want to implement page transitions and tab layouts, you can use the PageView widget. It’s important to note that PageView is a very significant widget, especially in mobile develo···
Time: Views:295
Flutter (42): GridView

Flutter (42): GridView

A grid layout is a common layout type, and the GridView widget is used to implement this layout in Flutter. This section focuses on its usage.42.1 Default ConstructorGridView can build a two-dimension···
Time: Views:275
Flutter (40): Scroll monitoring and control

Flutter (40): Scroll monitoring and control

In the previous sections, we introduced commonly used scrollable components in Flutter and mentioned that the scroll position of these components can be controlled using ScrollController. This section···
Time: Views:253
Flutter  (38): single child scroll view

Flutter (38): single child scroll view

38.1 IntroductionThe SingleChildScrollView is similar to the ScrollView in Android; it can only accept a single child widget. Its definition is as follows:SingleChildScrollView({this.scrollDirection=A···
Time: Views:232
Flutter (36): Scaffold

Flutter (36): Scaffold

The Material component library offers a variety of rich components. This section introduces the most commonly used Scaffold component. For the others, readers can refer to the documentation or explore···
Time: Views:228
Flutter (35): Space adaptation (FittedBox)

Flutter (35): Space adaptation (FittedBox)

35.1 FittedBoxWhen a child component's size exceeds that of its parent component, Flutter will display an overflow warning and print an error log to the console unless handled properly. For exampl···
Time: Views:287
Flutter (33): Container

Flutter (33): Container

33.1 ContainerWe have used the Container component multiple times in previous examples. In this section, we will take a closer look at the Container component. The Container is a composite container c···
Time: Views:187
Flutter (31): DecoratedBox

Flutter (31): DecoratedBox

5.2.1 DecoratedBoxDecoratedBox allows you to draw some decorations (like background, border, gradients, etc.) either before (or after) its child component is rendered. The definition of DecoratedBox i···
Time: Views:248
Flutter (28): Alignment and relative positioning (Align)

Flutter (28): Alignment and relative positioning (Align)

In the previous section, we discussed how, through Stack and Positioned, we can specify one or more child elements' precise offsets relative to the edges of their parent element, allowing them to ···
Time: Views:206