Use of fluent database

explain Flutter native does not support database operation. It uses SQLlit plug-in to make applications have the ability to use database. In fact, flutter communicates with the native system through plug-ins to operate the database. Platform support FLutter's SQLite plug-in supports IOS, Android, and MacOS platformsIf you want to support Lin ...

Posted by Rustywolf on Wed, 09 Feb 2022 09:32:17 +0100

Declaration cycle of the fluent state

First, let's look at the declaration cycle methods class _NumState extends State<NumWidget> { _counter = 0; @override void initState() { super.initState(); //Initialization status _counter = widget.initValue; print("initState"); } @override Widget build(BuildContext context) { print("build"); return ...

Posted by discobean on Wed, 09 Feb 2022 07:30:24 +0100

Android Gaode map developed by fluent plug-in

Develop an Android Gaode map plug-in from scratch preface After reading many blog posts, I found that there is little mention about how to use the mixed editing and interaction of Android and Dart in actual combat. In the actual project, fluent still needs to make a lot of use of some native functions, such as camera, map, accessing device, l ...

Posted by PrObLeM on Tue, 08 Feb 2022 15:54:43 +0100

Flutter entry series - file system

Because fluent is only a UI system and does not have the ability to operate the native system, it can not directly operate the file system. Therefore, it can only realize this function with the help of plug-ins. provider_path is a plug-in widely used in pub. Let's start accessing the plug-in to complete the corresponding file reading and writin ...

Posted by Clintonio on Fri, 04 Feb 2022 05:04:56 +0100

Flutter's Random Talk: the implementation of component life cycle, State state management and local redrawing (Inherit)

    catalogue life cycle How does the component refresh when the State changes InheritedWidget InheritedModel InheritedNotifier Notifier     life cycle There are actually two kinds of life cycles of a fluent: stateful widget and stateless widget. These two are the two basic components of fluent, and their names have well indicated ...

Posted by dhrubajyoti on Sat, 29 Jan 2022 10:37:40 +0100

Excel report imitating wechat developed by fluent project

Flutter imitates wechat excel function preface In project development, report is a very common function, which is helpful for users to see the trend and law of data at a glance. It is very suitable for viewing and comparing a large number and a wide variety of data. Although Flutter provides Table, DataTable and other related components, in t ...

Posted by davidlenehan on Fri, 28 Jan 2022 14:11:43 +0100

Interviewer: do you know the life cycle of Flutter? Come on next week!

As a mobile development engineer, when I first came into contact with Flutter, I must have such a question: what is the life cycle of Flutter? How is the lifecycle handled? Where is my onCreate()[Android]? What about viewDidLoad()[iOS]? Where should my business logic be handled? What about initialization data? I hope I can help you a little aft ...

Posted by 44justin on Tue, 25 Jan 2022 06:14:52 +0100

cache exploration and analysis

I cache_t structure analysis First, attach a cache_t principle analysis diagram 1.cache_t source code analysis First, take a look at the general structure of cache in the source code struct cache_t { private: explicit_atomic<uintptr_t> _bucketsAndMaybeMask; // 8 union { struct { explicit_atomic<mask_t& ...

Posted by treilad on Tue, 25 Jan 2022 01:36:34 +0100

42. Detailed explanation of GridView component of fluent

GridView GridView can build a two-dimensional grid list, and its default constructor is defined as follows: GridView({ Key? key, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController? controller, bool? primary, ScrollPhysics? physics, bool shrinkWrap = false, EdgeInsetsGeometry? paddin ...

Posted by statrat on Sat, 22 Jan 2022 07:18:54 +0100

The date component and the third-party date component are included in the Flutter

Date and time stamp You can use datetime to get the current date from the fluent Now(). now.millisecondsSinceEpoch can get the timestamp What is a timestamp "Timestamp" refers to the total number of seconds from 00:00:00 GMT on January 1, 1970 (08:00:00 GMT on January 1, 1970) to now. Generally speaking, timestamp is a comple ...

Posted by kparker on Sat, 22 Jan 2022 00:04:05 +0100