Hi, Hashnode community and welcome to day 7 of my Flutter challenge! đź‘‹
Today I spent some time learning Dart, a programming language behind the Flutter framework.
Dart language
Dart doesn't feel completely new to me after years of experience with JavaScript and PHP.
I started my learning from an amazing guide “Learning Dart as a JavaScript developer”.
Some highlights:
- Dart is strongly typed
- Dart is serious about null values ("null safety")
- So far the most popular data structure in my code is
List
. Lists in Dart look more powerful than arrays in JS. - Classes and mixins are much more robust than in JS
- Dart has similar async functionality but Promises are called
Future
s there. - Dart has built-in code formatting
- Dart is very well documented, it's a pleasure to learn it
To practise Dart a little bit more I created an account in CodeWars: codewars.com/users/kalabro. Follow me there if you are using it too!
Dart is not very popular outside of the Flutter community but luckily it's not super different from what I already know.
Widget of the day - Icon
Icon
is a very handy widget, especially in combination with the Material UI library.
Icon(
Icons.favorite,
color: Colors.pink,
size: 24.0,
semanticLabel: 'Text to announce in accessibility modes',
),
As usual, Android Studio makes developer life easier by showing the icon in use in the gutters.
Summary
Today I earned the “Crazy Blogger” badge on Hashnode! It was indeed a crazy week. I learned a lot and don't plan to stop. Give me a smile by reacting to this post or leaving a comment. I appreciate every little support I get on my journey! 🙏
Have a nice weekend and see you on Monday!