Thanks for your response and question. This is Dart’s cascade notation which allows you to chain multiple invocations of methods or setters on the same receiver together in a fluid way. The code above would otherwise have to be written
final paint = new Paint(); paint.color =…
Thanks for your question.
The reason for using static
Xxx.lerp methods rather than
Tween<Xxx> instances everywhere is discussed in the text.
The reason for not using operator overloading on
Bar is that it doesn’t really work with the
color field. Each ARGB color component in intermediate color…
Yes, there really should be a GitHub repo for this. Everything you need is in the gists though, albeit a bit scattered.
To run the stacked/grouped/stacked+grouped examples, you need a total of four Dart files, linked below. Place them in the
lib folder of a newly created Flutter project, delete the
Thanks a lot. Complete code listings are available as GitHub gists. You can find links to them at appropriate places in the text. The three final examples,
Stacked bars Grouped bars Stacked+grouped bars
Your column conversion example is fun. And not so much because of the potential invalid input.
But because it is not actually base-26 conversion.
To illustrate, suppose we had only 10 letters in the alphabet. Then column conversion should work as follows:
A -> 1 B -> 2…
Right, Flutter would not be that interesting, if all you could do was to write the UI portion of your apps.
But the Flutter stack is not so constrained.
First, you are writing your Flutter code in Dart, which is a general-purpose programming language, and suitable for expressing arbitrary logic. You…