{project}
γ΄ android
γ΄ ios
γ΄ lib
γ΄ consts βοΈ
γ΄ daisy_colors.dart βοΈ
γ΄ pages
γ΄ ...
γ΄ ...
π’ my project name = daisy :)
π― used {Constructor}._();
import 'package:flutter/cupertino.dart';
class DaisyColors {
DaisyColors._();
static Color textColor = HexColor('#9E9E9E');
}
class HexColor extends Color {
static int _getColorFromHex(String hexColor) {
hexColor = hexColor.toUpperCase().replaceAll("#", "");
if (hexColor.length == 6) {
hexColor = 'FF$hexColor';
}
return int.parse(hexColor, radix: 16);
}
HexColor(final String hexColor) : super(_getColorFromHex(hexColor));
}
import '../../consts/daisy_colors.dart';
...
IconButton(
icon: Icon(Icons.today),
color: DaisyColors.serveColor,
onPressed: (){},
)
...
If you love colors, you can explore the world of coloring pages here: https://disegnidacolorarewk.com/