Production of Flutter advanced practical 7-20 ground glass effect

The flitter widget of Flutter is also very powerful. It can make the magic filter effect you want. Here we will make a ground glass effect in the way of actual combat, and learn the use of Fitler through examples. The effect is as follows: do you know this teacher? Implementation process: I. pre ...

Posted by jess3333 on Sat, 19 Oct 2019 07:41:57 -0700

Image filter for canvas pixel operation

Figure after filter: Implementation principle: This uses a method of canvas: getImageData , this method can obtain the pixel information of the picture **CanvasRenderingContext2D**.getImageData(), return a ImageData Constructor to create or use the creation methods of the CanvasRenderingContext2D object with canvas: createImageData() and getIm ...

Posted by undertaker16 on Fri, 18 Oct 2019 18:04:01 -0700

Thermal planet software development program

When the project is very large, if all the states are concentrated in one object, the thermal planet software development (T: I8O-285I-O282 V forest) store object may become quite bloated. To solve this problem, Vuex allows us to divide the store into modules. Each module has its own state, mutation, action, getter, and even nested submodules ...

Posted by behrk2 on Fri, 18 Oct 2019 12:43:06 -0700

Vue core concepts and characteristics

Vue (voice / vju ː /, similar to view) is a set of progressive framework for building user interface. >Features: easy to use, flexible, efficient, progressive framework. >Modules that need to be used can be combined at will Vue + components + Vue router + vuex + Vue cli I. concept and characteristics of Vue 1. What is a library and what ...

Posted by tanita on Fri, 18 Oct 2019 11:24:51 -0700

Spring source code parsing, configuration file reading, bean registration

Jar package for lock analysis: spring-beans-3.2.5.RELEASE.jar How to read configuration files XmlBeanFactory xmlBeanFactory = new XmlBeanFactory(new ClassPathResource("spring-test.xml")); This is not recommended in spring 4.0, instead: ClassPathXmlApplicationContext content = new ClassPathXmlApplicationContext("classpath:spring-test.xml"); ...

Posted by madmax on Fri, 18 Oct 2019 02:22:12 -0700

5. pytest Chinese document monkey patch

Catalog 1. Modify function function or class property 2. Modify environment variables 3. Modify dictionary Sometimes, the test case needs to call some functions that depend on the global configuration, or these functions themselves call some code that is not easy to test (for example, network access ...

Posted by sennetta on Fri, 18 Oct 2019 01:48:46 -0700

JavaScript Design Pattern - strategy pattern

The strategy pattern is the behavior pattern in JavaScript Design pattern. Definition: Define a series of algorithms, encapsulate them into strategy classes (Methods), and then separate the invariant part and the changing part, and these algorithms can replace each other Vernacular explanation: In fact, the so-called policy pattern is ...

Posted by yarub on Fri, 18 Oct 2019 00:55:18 -0700

class usage and tutorial in ES6 (basic)

I. constructor (more to use in the future) The function of the constructor constructor is to execute the code in the constructor constructor first whenever the new class is used. Traditional constructor: function Animal (name, age) { //Instance attribute this.name = name; this.age = age; } const a1 = new Anima ...

Posted by predator12341 on Fri, 18 Oct 2019 00:24:03 -0700

View classes, properties in objects, methods, and their changes

The existing Person classes are as follows class Person: name = 'Xiao Bai' def hobby(self): print('coding') __Use of dict Function: view properties in objects and view properties and methods in classes per = Person() print(per.__dict__) print(Person.__dict__) The results are as ...

Posted by azsolo on Thu, 17 Oct 2019 13:34:18 -0700

Use of Alibaba's FastJson package

2. Introduction to Alibaba's FastJson package. The Fastjson API entry class is com.alibaba.fastjson.JSON. Common serialization operations can be directly completed in static methods on JSON classes. SerializeWriter: equivalent to StringBuffer JSONArray: equivalent to List JSONObject: equivalent to map ...

Posted by evanesq on Thu, 17 Oct 2019 13:25:08 -0700