Dynamic generate color to fit user background image

This commit is contained in:
2025-06-11 00:47:26 +08:00
parent 280c261ea1
commit 61e61866d7
8 changed files with 338 additions and 11 deletions

7
lib/services/color.dart Normal file
View File

@ -0,0 +1,7 @@
import 'package:flutter/widgets.dart';
extension ColorInversion on Color {
Color get invert {
return Color.fromARGB(alpha, 255 - red, 255 - green, 255 - blue);
}
}