Hiring is undoubtedly an important and resource consuming process for every company. What if I told you that you can spot out bad programmers within 2 weeks? You don’t have to wait for 3 months of probation to actually know a person is unqualified.
There are tons of articles out there like “How to be a bad programmer”, they aimed to let a programmer to reflect on his own practice and do the opposite way — not being a bad programmer. …
Today I am going to demonstrate how to create a two direction (vertical and horizontal) scrolling data table with flutter, this is how it looks like:
flutter_inappwebview instead. It is rich in feature, and the switching process only takes a few minutes.
I have developed Flutter applications for a few years and some of you may have the same thought with me: the official plugins are better. Well, we were wrong. I have switched away from the official Flutter WebView plugin, and I think you should too.
3 months ago I published an article: “Flutter: How to make WebView transparent”, that worked fine but it was only a temporary fix. …
Note: This article is written at the end of December 2020. The content may be outdated by the time you read this article.
The M1 MacBook Air I ordered, with 16GBs of RAM, is delivered today. After a few hours of testing, here are some thoughts.
Comparing with my old MacBook(MacBook Pro 2015 with Retina display), it’s thinner and much lighter. The display is much brighter; I would switch off True Tone when connected to an external monitor, since the white balance keeps changing with True Tone on. …
Flutter is great for building UIs, but sometimes we just need to embed a website into our app by using WebView. While dark mode UI is being more and more common, the white background of the official WebView plugin can be annoying.
Just a little bit of “Googling” you can see that transparent background is a frequently requested feature of Flutter WebView, but for unknown reasons they didn’t merge the code for months at the time of writing this article. Also there are no official responses regarding the issue.
Update on 16/11/2020:
import_sorter just released 4.3.1, which provides us a way to sort only a subset of files rather than sorting all of them. We can integrate it into our workflow more nicely, see the updated
lefthook.yml at the end of this article.
As the team size grows, coding standard is very important to maintain an easily understood and consistent codebase. In this article I will share how I setup and integrate it into my workflow.
ramda, they give us great convenience on accessing nested JSON objects.
When developing Flutter applications, we often need to parse JSON objects from API responses, then access or manipulate them accordingly. Sadly dart language’s support for
Map objects is not very rich, therefore I created this package:
Actually this package is not restricted to Flutter and
JSON(Map<String, dynamic>) objects, you may use it in any dart projects, or on any dart’s native
Do you know you can clap up to 50 times for an article? Go smash that button!
Here is my app for the test:
As web support of Flutter reaches beta channel, some may try to build their web applications in Flutter. While there aren’t much discussions or tutorials about how to handle mouse events, this is why I’m writing this article.
For mouse movements, you may use the
It takes 3 callbacks as parameter:
onEnter(when the cursor enters an area),
onHover(when the cursor moves within the area),
onExit(when the cursor leaves the area).
You may also get the position of the cursor from the events being passed to the callbacks.
The way to extend
ThemeData in Flutter has been a frequently asked question on StackOverflow: Is it possible “extend” ThemeData in Flutter.
There are even issues created in the Flutter official repository:
With dart 2.7, this is finally possible by using Extension methods.
ThemeDataobject, but most of us only need a custom color palette. For simplicity, I would instead extend the
ColorSchemeobject in the following example.
ColorScheme, let’s work…