mirror of
https://github.com/krawieck/lemmur/
synced 2024-12-16 18:39:21 +01:00
10 lines
196 B
Dart
10 lines
196 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
Color textColorBasedOnBackground(Color color) {
|
|
if (color.computeLuminance() > 0.5) {
|
|
return Colors.black;
|
|
} else {
|
|
return Colors.white;
|
|
}
|
|
}
|