feat: load config from text (#1772)

* feat: load config from text

* opt: login utils

* update

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>

---------

Co-authored-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
My-Responsitories
2025-12-09 22:09:57 +08:00
committed by GitHub
parent b4daf5fbd8
commit 244ef22f54
20 changed files with 264 additions and 208 deletions

View File

@@ -4,22 +4,22 @@ part 'stat.g.dart';
@HiveType(typeId: 1)
class UserStat {
UserStat({
const UserStat({
this.following,
this.follower,
this.dynamicCount,
});
@HiveField(0)
int? following;
final int? following;
@HiveField(1)
int? follower;
final int? follower;
@HiveField(2)
int? dynamicCount;
final int? dynamicCount;
UserStat.fromJson(Map<String, dynamic> json) {
following = json['following'];
follower = json['follower'];
dynamicCount = json['dynamic_count'];
}
factory UserStat.fromJson(Map<String, dynamic> json) => UserStat(
following: json['following'],
follower: json['follower'],
dynamicCount: json['dynamic_count'],
);
}