mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 00:28:18 +08:00
fix dyn additional panel
tweaks Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -216,7 +216,6 @@ Widget addWidget(
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return const SizedBox.shrink();
|
|
||||||
|
|
||||||
case 'ADDITIONAL_TYPE_UPOWER_LOTTERY':
|
case 'ADDITIONAL_TYPE_UPOWER_LOTTERY':
|
||||||
final content = additional.upowerLottery!;
|
final content = additional.upowerLottery!;
|
||||||
@@ -397,7 +396,6 @@ Widget addWidget(
|
|||||||
}).toList(),
|
}).toList(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return const SizedBox.shrink();
|
|
||||||
|
|
||||||
case 'ADDITIONAL_TYPE_VOTE':
|
case 'ADDITIONAL_TYPE_VOTE':
|
||||||
final vote = additional.vote!;
|
final vote = additional.vote!;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ abstract class LoginUtils {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
final cookies = (account ?? Accounts.main).cookieJar.toList();
|
final cookies = (account ?? Accounts.main).cookieJar.toList();
|
||||||
final webManager = web.CookieManager();
|
final webManager = web.CookieManager.instance();
|
||||||
return Future.wait(
|
return Future.wait(
|
||||||
cookies.map(
|
cookies.map(
|
||||||
(cookie) => webManager.setCookie(
|
(cookie) => webManager.setCookie(
|
||||||
@@ -117,7 +117,7 @@ abstract class LoginUtils {
|
|||||||
GrpcReq.updateHeaders(null);
|
GrpcReq.updateHeaders(null);
|
||||||
|
|
||||||
await Future.wait([
|
await Future.wait([
|
||||||
if (!Platform.isWindows) web.CookieManager().deleteAllCookies(),
|
if (!Platform.isWindows) web.CookieManager.instance().deleteAllCookies(),
|
||||||
GStorage.userInfo.delete('userInfoCache'),
|
GStorage.userInfo.delete('userInfoCache'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user