feat: add more easter eggs

This commit is contained in:
2026-10-26 23:54:06 +01:00
parent 08f4847800
commit 4d9ba67eb1
18 changed files with 695 additions and 36 deletions
+13
View File
@@ -0,0 +1,13 @@
/// Names that get a crown wherever a tab's customer name is shown.
const _royalNames = {'bram verhulst'};
bool isRoyalCustomer(String name) => _royalNames.contains(
name.trim().toLowerCase().replaceAll(RegExp(r'\s+'), ' '),
);
/// Display-only: never use the result as the stored customer name.
String customerDisplayName(String name) =>
isRoyalCustomer(name) ? '$name 👑' : name;
/// PINs that earn a raised eyebrow on the PIN pad.
bool isLazyPin(String pin) => pin == '1234' || pin == '0000';