This commit is contained in:
='fauz
2025-04-09 16:28:42 +07:00
commit 64e1abb8db
199 changed files with 10265 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import 'package:flutter/material.dart';
class ColorHelper {
static Color hexToColor(String hex) {
hex = hex.replaceAll('#', '').replaceFirst('0x', '');
if (hex.length == 6) hex = 'FF$hex'; // Tambah alpha jika belum ada
return Color(int.parse('0x$hex'));
}
}