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
Flutter (26): Flow layout (Wrap, Flow)

Flutter (26): Flow layout (Wrap, Flow)

When introducing Row and Column, if a child widget exceeds the screen bounds, an overflow error will occur, as shown below:Row( children: <Widget>[ Text("xxx" * 100), ],); The result i···
Time: Views:229
Flutter (24): Linear Layout (Row and Column)

Flutter (24): Linear Layout (Row and Column)

The so-called linear layout refers to arranging child components either horizontally or vertically. In Flutter, linear layouts are implemented using Row and Column, similar to the LinearLayout control···
Time: Views:238
Flutter (22): Introduction to layout components

Flutter (22): Introduction to layout components

Layout widgets typically contain one or more child widgets, and different layout widgets arrange (or layout) their child widgets in various ways, as shown in Table 4-1 below:WidgetDescriptionUsageLeaf···
Time: Views:339
Flutter (21): Progress Indicator

Flutter (21): Progress Indicator

The Material component library provides two types of progress indicators: LinearProgressIndicator and CircularProgressIndicator. Both can be used to indicate either a precise progress or an indetermin···
Time: Views:228
Flutter (20): Input box and form

Flutter (20): Input box and form

The Material component library provides the TextField input box component and the Form component. Let's introduce them one by one.20.1 TextFieldThe TextField is used for text input and offers many···
Time: Views:280
Flutter (17): Button

Flutter (17): Button

The Material component library provides various button components such as ElevatedButton, TextButton, OutlinedButton, and others. All of these buttons are either directly or indirectly custom wrappers···
Time: Views:250
Flutter (16): Text and style

Flutter (16): Text and style

16.1 TextThe Text widget is used to display simple styled text. It contains several properties for controlling the appearance of the text. Here’s a simple example:Text("Helloworld",textAlig···
Time: Views:261
Flutter (13): Assets Management

Flutter (13): Assets Management

In a Flutter app, the installation package contains both code and assets. Assets are resources that are bundled into the installation package and can be accessed at runtime. Common asset types include···
Time: Views:256