Dart language learning diary

Fundamentals of Dart language programming characteristic Dart language adopts single thread mode, which does not have the problems of resource competition and state synchronization. It uses the functions provided by dart language async,await Asynchronous tools implement asynchronous operations. In Dart language, everything is an Object, a ...

Posted by Crysma on Sun, 26 Sep 2021 02:10:17 -0700

flutter "multithreading" isolate primary level understanding

We learned in the second grade of primary school: Dart is single threaded and fluent depends on dart. However, if we want to do some operations with a large amount of computation in the main thread, it will inevitably block the thread and make the UI update stuck or even stuck. Then what shall I do? The good news is that Dart provides us wit ...

Posted by Nic on Mon, 20 Sep 2021 18:52:44 -0700

Fluent learning - theme style

In the development of fluent, we can reuse colors and descendants by defining themes, so as to make the design of the whole APP look more consistent 1. Use of theme theme Theme is divided into global theme and local theme Topics serve two purposes: After setting the theme, some widgets will automatically use the theme style (such a ...

Posted by rich1983 on Mon, 20 Sep 2021 08:50:56 -0700

Basic use of adapter in fish Redux

Introduction to official documents AdapterWhat's adapter The adapter is fish_ The optimized encapsulation of listView by Redux team is applicable to long list rendering. There are three implementation methods: The DynamicFlowAdapter accepts data drivers of array typesThe StaticFlowAdapter accepts a data-driven map typeCustomAdapter custom ada ...

Posted by apulmca2k4 on Mon, 20 Sep 2021 00:32:17 -0700

Flutter makes the Mid Autumn Festival guide page

Original address: https://juejin.cn/post/7007756651197366303 After reading it for a long time, everyone is true πŸ‚πŸΊοΌŒ The moon has come out around the earth, so I'll also give you flowers ~ and then send you Mid Autumn Festival blessings: the moon is round and bright, the moon cakes are round and sweet, family reunion, everyone is happy and swe ...

Posted by michaelnorth on Sat, 18 Sep 2021 06:42:26 -0700

Understanding of flutter introduction Isolate and compute

1, Original code Why Isolate? Let's first look at a relatively simple code: import 'package:flutter/material.dart'; import 'package:flutter/foundation.dart'; class TestWidget extends StatefulWidget { @override State<StatefulWidget> createState() { return TestWidgetState(); } } class TestWidgetState extends State<TestWi ...

Posted by NEWDAY on Fri, 17 Sep 2021 09:38:43 -0700

Construction and debugging of fluent development environment, and real questions for interview

Installation of simulatorRun the fluent project to the simulator and real machineFlutter common commands Construction of development environment 1. Download the fluent SDK The fleet SDK consists of two parts, one is the Dart SDK, and the other is the fleet SDK, because the fleet is based on Dart. You can download it in two ways: one is Git d ...

Posted by AutomatikStudio on Sun, 05 Sep 2021 14:41:31 -0700

Flutter Animation: use flutter to realize a clapping animation, "golden three silver four" spring move guide

Add and animate these small widget s. Let's slowly increase the learning curve one by one. First of all, we need to know some basic knowledge about fluent animation. Understand the components of basic animation in fluent Animation is just some values that change over time. For example, when we click a button, we want to use animation to make ...

Posted by garrywinkler on Sun, 05 Sep 2021 12:58:44 -0700