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···
views:338
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···
views:227
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···
views:280
Flutter (19): Radio switches and checkboxes

Flutter (19): Radio switches and checkboxes

3.4.1 IntroductionThe Material component library provides Material-styled switches (Switch) and checkboxes (Checkbox). Although both inherit from StatefulWidget, they do not maintain their selected st···
views:246
Flutter (18): Pictures and Icons

Flutter (18): Pictures and Icons

3.3.1 ImagesIn Flutter, we can use the Image widget to load and display images. The image source can be from assets, files, memory, or the internet.1. ImageProviderImageProvider is an abstract class t···
views:236
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···
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···
views:261
Flutter (15): Flutter exception capture

Flutter (15): Flutter exception capture

Before introducing Flutter's exception handling, it is essential to understand Dart's single-threaded model. Only by knowing Dart's code execution process can we determine where to capture···
views:196
Flutter (14): Debugging Flutter apps

Flutter (14): Debugging Flutter apps

14.1 Logs and Breakpoints1. The debugger() StatementWhen using the Dart Observatory (or another Dart debugger, such as the one in IntelliJ IDE), you can insert programmatic breakpoints using the debug···
views:240
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···
views:255
Flutter (12): Package Management

Flutter (12): Package Management

2.5.1 IntroductionIn software development, there are often libraries or SDKs that many projects may need to use. To improve development efficiency, these common codes can be extracted into an independ···
views:187
Flutter (11): Routing Management

Flutter (11): Routing Management

11.1 A Simple ExampleIn mobile development, a "Route" generally refers to a "Page." This concept is similar to the idea of a Route in single-page applications (SPA) in web developm···
views:265
Flutter (10): State Management

Flutter (10): State Management

10.1 IntroductionIn reactive programming frameworks, "state management" is an eternal topic. Whether it's in React/Vue (both are web development frameworks that support reactive programm···
views:235
Flutter (9): Introduction to Widgets

Flutter (9): Introduction to Widgets

2.2.1 The Concept of WidgetFrom the previous introduction, we know that in Flutter, almost all objects are widgets. Unlike the concept of "controls" in native development, widgets in Flutter···
views:266
Flutter (8): Counter application example

Flutter (8): Counter application example

2.1.1 Creating a Flutter Application Template1. Creating the ApplicationUse either Android Studio or VS Code to create a new Flutter project named "first_flutter_app". Once created, you will···
views:229
Flutter (7): Introduction to Dart language

Flutter (7): Introduction to Dart language

7.1 Variable Declaration#1) var KeywordSimilar to the var in JavaScript, it can receive variables of any type. However, the biggest difference is that in Dart, once a var variable is assigned a value,···
views:263