feat: match info

opt dateformat

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-15 20:12:57 +08:00
parent 25f4ed6636
commit a2c24fb33c
108 changed files with 1703 additions and 877 deletions

19
lib/utils/fav_util.dart Normal file
View File

@@ -0,0 +1,19 @@
class FavUtil {
static bool isDefaultFav(int? attr) {
if (attr == null) {
return false;
}
return (attr & 2) == 0;
}
static String isPublicFavText(int? attr) {
if (attr == null) {
return '';
}
return isPublicFav(attr) ? '公开' : '私密';
}
static bool isPublicFav(int attr) {
return (attr & 1) == 0;
}
}