aves_mio1/lib/model/settings/enums/entry_background.dart
FabioMich66 19a982ede6
Some checks are pending
Quality check / Flutter analysis (push) Waiting to run
Quality check / CodeQL analysis (java-kotlin) (push) Waiting to run
first commit
2026-03-05 15:51:30 +01:00

25 lines
510 B
Dart

import 'dart:ui';
import 'package:aves_model/aves_model.dart';
extension ExtraEntryBackground on EntryBackground {
bool get isColor {
switch (this) {
case EntryBackground.black:
case EntryBackground.white:
return true;
default:
return false;
}
}
Color get color {
switch (this) {
case EntryBackground.white:
return const Color(0xFFFFFFFF);
case EntryBackground.black:
default:
return const Color(0xFF000000);
}
}
}