Flutter (104): Multi-language and multi-theme

Flutter (104): Multi-language and multi-theme

In this example app, both language and theme can be set, and both are implemented using ChangeNotifierProvider: we use Consumer2 in the main function to depend on ThemeModel and LocaleModel. Therefore···
Time: Views:305
Flutter (103): Login page

Flutter (103): Login page

We mentioned that GitHub has various login methods. For simplicity, we will only implement login via username and password. When implementing the login page, there are four points to note:The last log···
Time: Views:242
Flutter (102): APP entrance and home page

Flutter (102): APP entrance and home page

1 APP Entry PointThe main function serves as the entry point for the app, implemented as follows:voidmain()=>Global.init().then((e)=>runApp(MyApp()));UI (MyApp) will only be loaded after initial···
Time: Views:243
Flutter (101): Network request encapsulation

Flutter (101): Network request encapsulation

In this section, we will encapsulate the network request interfaces used in our app based on the previously introduced Dio network library, while also applying a simple network request caching strateg···
Time: Views:203
Flutter (100): Global variables and shared state

Flutter (100): Global variables and shared state

Global Variables and Shared State in Flutter ApplicationsApplications typically contain variables that are relevant throughout their lifecycle, such as current user information and local settings. In ···
Time: Views:252
Flutter (99): Model class definition

Flutter (99): Model class definition

15.3 Data Preparation for the AppIn this section, we will outline the data needed for the app and then generate the corresponding Dart model classes. The approach to converting JSON files to Dart mode···
Time: Views:266
Flutter (98): Flutter APP code structure

Flutter (98): Flutter APP code structure

First, let's create a brand-new Flutter project named "github_client_app." The steps to create a new project may vary depending on the editor used by the reader, but they are relatively ···
Time: Views:239
Flutter (97): Drawing (IV) Compositing

Flutter (97): Drawing (IV) Compositing

This section introduces flushCompositingBits().Now, let’s review Flutter’s rendering pipeline:voiddrawFrame(){pipelineOwner.flushLayout();pipelineOwner.flushCompositingBits();pipelineOwner.flushPain···
Time: Views:197
Flutter (96): Drawing (three) Layer example

Flutter (96): Drawing (three) Layer example

1 Implementing Drawing Cache Using LayersIn this section, we will demonstrate how to use Layers in custom components by optimizing the previous "Drawing Chessboard Example."We initially used···
Time: Views:196
Flutter (95): Drawing (II) Component tree drawing process

Flutter (95): Drawing (II) Component tree drawing process

The drawing-related implementations are found in the rendering object RenderObject. The main properties related to drawing within RenderObject include:layerisRepaintBoundary (type: bool)needsCompositi···
Time: Views:223