✨ Dynamic generate color to fit user background image
This commit is contained in:
7
lib/services/color.dart
Normal file
7
lib/services/color.dart
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user