Custom Colors in Flutter | Flutter Color & Colors class | Flutter Tutorial #16
3.8 هزار بار بازدید -
2 سال پیش
-
Custom Colors in Flutter |
Custom Colors in Flutter | Flutter Colors & Colors class
Ways of creating color in Flutter | Color class in flutter
This video explains how to create color object in Flutter.
Flutter support two classes to interact with color
1) Color &
2) Colors
Color is the main class, that allows to create custom or desired color as per your need.
Colors class contains the set of pre-defined static constants of Color objects for standard colors.
Following are the useful ways to create color
1) Color.someColorName i.e. Color.red
2) Color(hex code) i.e. Color(0XFF00FF00)
3) Color.fromRGBO(red, green, blue, opacity) i.e. Color(100, 0, 150, 1.0)
4) Color.fromARGB(alpha, red, green, blue) i.e. Color(255, 160, 0, 240)
Flutter Tutorial Playlist: Flutter Widgets
Dart Tutorial Playlist : Dart Tutorial
Ways of creating color in Flutter | Color class in flutter
This video explains how to create color object in Flutter.
Flutter support two classes to interact with color
1) Color &
2) Colors
Color is the main class, that allows to create custom or desired color as per your need.
Colors class contains the set of pre-defined static constants of Color objects for standard colors.
Following are the useful ways to create color
1) Color.someColorName i.e. Color.red
2) Color(hex code) i.e. Color(0XFF00FF00)
3) Color.fromRGBO(red, green, blue, opacity) i.e. Color(100, 0, 150, 1.0)
4) Color.fromARGB(alpha, red, green, blue) i.e. Color(255, 160, 0, 240)
Flutter Tutorial Playlist: Flutter Widgets
Dart Tutorial Playlist : Dart Tutorial
2 سال پیش
در تاریخ 1401/01/02 منتشر شده
است.
3,846
بـار بازدید شده