Did you know that Dart supports string multiplication? The following example shows how to print a Christmas tree using string multiplication void main() {<!– –> for (var i = 1; i <= 5; i + + ) {<!– –> print(” * i); } } //Output: // // // // // copy Isn’t it cool? You […]
Tag: dart
Error resolution: libcudart.so and libprotobuf.so link libraries not found
Error resolution: libcudart.so and libprotobuf.so link libraries not found libcudart.so link library not found reason Solution libprotobuf.so link library not found reason Solution This blog introduces two errors encountered by bloggers when compiling software packages. The main problem is that the two dynamic link libraries libcudart and libprotobuf are not found. The reasons are analyzed […]
Solve ImportError: Could not find cudart64_90.dll. TensorFlow requires that this DLL be installed in
Table of Contents Solve ImportError: Could not find cudart64_90.dll. TensorFlow requires that this DLL be installed in Step 1: Check the installation of CUDA Toolkit Step 2: Check the configuration of CUDA environment variables Step 3: Check the installation of cuDNN Step 4: Reinstall TensorFlow in conclusion Solving ImportError: Could not find cudart64_90.dll. TensorFlow requires […]
The difference between Java syntax and dart syntax
Constructor Default constructor Java In Java, if you do not declare a constructor yourself, the class will automatically generate a parameterless constructor. If a parameterized constructor is declared, there will be no default parameterless constructor. At this time, the parameterless constructor needs to be explicitly declared. dart In Dart, if you do not declare a […]
Dart type aliases and Record
Article directory Preface Record Record syntax Record usage As function parameters and return values: Anonymous field assignment and named field assignment: Comparison of Record: type alias Summarize Foreword In the previous article, we have learned about the common basic types, the use and definition of generics, and the use of collection types in Dart. It […]
dart-scss replaces node-scss
Just today, the official Sass team officially announced that Libsass will be deprecated, as well as Node Sass and SassC based on it, and recommends users to use Dart Sass. First, let’s take a look at some responses from the official blog (the first half is from the official blog https://sass-lang.com/blog/libsass-is-deprecated), and then we’ll do […]
Use nebula_dart_gdbc to play with graph databases on mobile devices, so cool!
nebula_dart_gdbc is a Dart language client for accessing NebulaGraph, developed under the specifications of dart_gdbc. dart_gdbc is a set of standard data interfaces for graph databases defined using the Dart language. The overall idea refers to the JDBC specification. Support for NebulaGraph has been implemented. In the previous process of writing GraphDesk, the nebula-java (Socket) […]
Umeng+U-APM Flutter Dart exception monitoring practice
As the project scale expands and user needs continue to grow, especially in terms of application stability, we need more rigorous and detailed monitoring methods to ensure a good user experience. As the core of Flutter development, Dart language is responsible for the logic and business implementation of applications. However, due to the flexibility and […]
flutter: Future, Stream, RxDart
Future In Flutter, Future is a class in the Dart language, which is used to represent the result of an asynchronous operation. Important keywords related to Future include async and await. async: This keyword is used to add before the method or function declaration to indicate that the method is an asynchronous method. In an […]
Material and Cupertino components of Flutter in “Dart in simple terms”
Click to read online for a better experience link Modern JavaScript Advanced Booklet link Dart in simple terms link Modern TypeScript Advanced Booklet Link Material and Cupertino components In this article, we will use the official latest Dart syntax and new knowledge to introduce Material Design and Cupertino style components in Flutter in detail. Flutter […]