aves_mio/lib/model/settings/enums/entry_background.dart
Fabio Micheluz 2c988f959b
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-02-19 13:25:23 +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);
}
}
}