Dart Articles

Articles related to Dart

Using Hexadecimal Color Strings in Flutter: A Comprehensive Guide

Using Hexadecimal Color Strings in Flutter: A Comprehensive Guide

Color plays a critical role in the Flutter user experience. It can enhance or destroy the look and feel of your app. We can represent colors in various ways, such as RGB, ARGB, CMYK, HSV, and HSL. When designers give you colors, they may use any of these variants. RGB and ARGB and very common, and we often use hexadecimal strings to represent these in Flutter. This blog post will explain converting between the various formats and using hexadecimal color strings in Dart and Flutter. The Color Class The Color class is a fundamental class in the Flutter API. It represents a 32-bit number. A 32-bit number is just another word for a Dart integer. The number represents four smaller values: the alpha, red, green, and blue channels. The alpha channel represents the opacity of the color, and the red,...
Christian Findlay Christian Findlay Apr 03, 2023
Immutability: Dart vs. F#

Immutability: Dart vs. F#

Immutability is a very important part of Functional Programming. Dart and F# are two excellent modern languages that support immutability and functional programming constructs. However, Don Syme and the...
Christian Findlay Christian Findlay Nov 05, 2022