Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-03 14:13:31 +08:00
parent 18f5ddd937
commit 8414c0f71f
2 changed files with 5 additions and 2 deletions

View File

@@ -763,6 +763,7 @@ class RichTextEditingController extends TextEditingController {
final emote = e.emote; final emote = e.emote;
if (emote != null) { if (emote != null) {
return WidgetSpan( return WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 2), padding: const EdgeInsets.symmetric(horizontal: 2),
child: NetworkImgLayer( child: NetworkImgLayer(

View File

@@ -73,10 +73,12 @@ class LoginAccount implements Account {
LoginAccount(this.cookieJar, this.accessKey, this.refresh, LoginAccount(this.cookieJar, this.accessKey, this.refresh,
[Set<AccountType>? type]) [Set<AccountType>? type])
: type = type ?? {}; : type = type ?? {} {
cookieJar.setBuvid3();
}
LoginAccount.fromJson(Map json) { LoginAccount.fromJson(Map json) {
cookieJar = BiliCookieJar.fromJson(json['cookies']); cookieJar = BiliCookieJar.fromJson(json['cookies'])..setBuvid3();
accessKey = json['accessKey']; accessKey = json['accessKey'];
refresh = json['refresh']; refresh = json['refresh'];
type = (json['type'] as Iterable?) type = (json['type'] as Iterable?)