“Live up to the time, the creation of non-stop, this article is participating in 2021 year-end summary essay competition”

“Reading” and “writing” is a full and meaningful thing, not for other things, but to become a temperature, understanding, interesting and thinking person.

preface

Hello everyone, my name is Li Xiaohong, a mobile developer. As a Cantonese, different from other friends, I did not stay in Guangzhou and Shenzhen, but chose to drift north alone. This year is my sixth year in Beijing. I have many stories that I want to share with you, but I can’t wait. Today, I want to tell you the story of my dream in 2021.

In 2015,

The time line comes to “2015”, which is the year of the rise of e-commerce. In this year, I joined the first real company “Fresh Life” in Beijing, a place where my dream began. At the beginning, the company was in the team building stage, and the atmosphere of the whole company was very good. We built the whole e-commerce alternating system from scratch together.

This year, I just graduated from university, where I made good friends and met my first “guide” in the workplace. He was a gentle but harsh leader who was very tolerant to me. When I just entered the workplace, I learned a lot from him and he had a positive influence on my career planning. Now, we are friends who can keep in touch with each other. Although we don’t always greet each other, we remember each other in our hearts and occasionally have the impulse to go out for dinner.

In 2016,

“The first year of VR”, I joined a new team to engage in VR virtual development work, where I got to know the learning resources related to Unit and got to know many open workers of different levels, and began to have a plan for myself.

3 years of accumulation of

Due to career planning, I only stayed in this VR company for three months. Although the time was short, what I came into contact with had a long-term impact on me. I returned to mobile Android development and began to supplement my shortcomings in this field and accumulate project experience. I joined a smart city company to start charging. I worked here for more than 3 years and participated in more than 50 landing projects. If you live in Beijing, you must have used the Beijing Access app, which is one of the projects I participated in.

2021. A New Year

“In 2020, I joined nai Xue’s tea company and engaged in terminal development (cash register, single screen machine, self-service milk tea machine). I came into contact with a new field of knowledge, FLUTTER. 2021 is a year for me to pursue my dream, and also a year of change. I didn’t have this habit before, but maybe I have a sense of crisis with the increase of age, so I want to try to improve and enrich myself.

My story with the Nuggets

At the beginning of September, I began to share work and study on the “Nuggets” platform, and by “2021.11.30”, I had published 56 articles on nuggets.

During the period, I participated in the activities of “little knowledge” and “More text in November” and got a small gift from the nuggets. Everyone in the gold-digging group was very active and added a lot of small pleasures to the daily work life. As for the accumulation of knowledge, I have gained a lot from digging gold. I hope I can keep the habit of writing records.

2021 is coming to an end, some experience and feeling in my heart, while digging gold activities 🎑 to share with you this year’s work and life, I hope to encourage myself, with you, return is still dream ‘young ‘πŸŽƒ ~

Technology stack accumulation

My work and study this year focuses on flutter. So the summary shared articles are mostly related to “Flutter”, “DART” and a small part of “Android”.

Advice for beginners

Here are some suggestions for those who are just learning about FLUTTER:

  • Step 1: Learn the Dart syntax. It is important to understand futrue and Stream link addresses
  • Step two, the website is simpleTo understandtheflutterContains what controls, real use can do in the mind have an impression, the specific use of direct official website queryThe link address
  • Third, learn to use a state management framework such as Bloc. Type the case yourself to deepen your understanding.

My first oneflutterPlugin uploaded

This year’s learning process of Flutter has been substantial. I wrote a dual-screen support plugin for my work and released my first PUB library: pub.flutter-io.cn/packages/fl…

The points of the plug-in production process are summarized as follows:

  • flutterRealization of double screen principle
  • flutterUse of dual screen plugins
  • flutterPub Publishes process records
  • useMethodChannelwithEventChannelCommunicate with the native end

To deal withBlocEncountered pits, understand the internal principles

Bloc is the state management framework used in our project, responsive development based on state changes. It internally relies on stream, and the core idea is to encapsulate the stream content. The problems encountered in the development process are recorded as follows, hoping to help other users of the framework.

  • BlocAdd responds only once twice.
  • BlocThe principle of analytic

flutterSystem key knowledge: Understand three trees

This knowledge is very important for further study of flutter UI drawing and dependent refresh. We need to understand the relationship between the three trees and the main member variables and methods each has.

I use “source code” + “drawing” way to write this article, convenient for their review at any time.

  • Widget, Element, RenderObject relational structure parsing

The life cycle of statefulWidget components is also important to remember:

  • Stateful component life cycle cleaning

forState managementExploration and understanding of

Be passionate, explore the principles behind things, alwaysThe young.

  • bypasssetState, direct useElementAchieve status management, associated refresh
  • Solution of planeInheritedPartial refresh implementation principle
  • About the idea of state management auto-refresh,RxBinder

Supplement dry goods, strengthen the foundation

Reviewing the code, I realized I didn’t understand the “Dart” language very well, so I went back and relearned it. Every day I check my body to make up for my deficiencies.

  • Dart Coding: Do you know all about constructors?
  • Dart Encoding: Talk about string usage specifications
  • Dart Coding: Summary under developmentStreamUsage and Scenario
  • Efficient development: SharingextensionInteresting usage
  • The Dart code:polymorphism ε’Œ Inversion of controlBest practices
  • The Dart code:mixinUsing the details

.

Haha, there are other technical points on the harvest, here is not one example. In work and life, it is inevitable to encounter unhappiness. The process of learning and strengthening is very fulfilling and satisfying. Being busy is an effective way to vent emotions.

Work and life (I’m stronger ~)

For work and life, my point of view is to be independent of each other. Reasonable allocation of their own time, working time should not only complete tasks but also learn to summarize and record, improve themselves. Getting older can be a little vague about the future, a little timid, and sometimes a little afraid of losing direction.

Sometimes I will ask myself, have I ever regretted entering IT workplace to be more secure and bright?

How the outcome we can not peep, but juvenile habits, when there is no regret of courage, squeeze out time, to learn, to improve their own, this is the right attitude.

Often feeling the arrangement of fate:

  • 19 at the beginning of the year, the license plate lottery, have their first car πŸš—
  • At the end of 19, my lovely twin girls came to us πŸ‘ΆπŸ»πŸ‘ΆπŸ»
  • At the end of 20, I joined the mortgage repayment team and had our small family
  • 21 years, a full year of learning

Life never fails us

I found a picture from my early career

Ha ha, the guy without the code is me, full of youthful atmosphere, full of vigor πŸŽ„, the picture below is engaged in “IT work” after 6 years of selfie. Get together with old friends again, everyone says I become stronger!! Bald is also strong

There’s no room for too much drama in the adult world. If you feel tired, take a break. Look at the lovely girl. I’m alive again.

Annual outlook

Thirty years, the autumn of life, there is no twenty free and easy. Growth is not overnight, are accumulated. I know that I have a lot of shortcomings and need precipitation. I hope to continue my efforts in the coming year and strive for a greater breakthrough in my work on the premise of taking care of my family. You need to constantly develop your inner strength. You need to be respected in your career and respected in your life. Humanize all the atoms in your body before they are returned to nature again according to the second law of thermodynamics.

By the way, next year, make sure you work out so you can carry your two little girls on your shoulders.

Written in 2021.12.2 –