mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-29 12:38:34 +00: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':
|
||||
final content = additional.upowerLottery!;
|
||||
@@ -397,7 +396,6 @@ Widget addWidget(
|
||||
}).toList(),
|
||||
);
|
||||
}
|
||||
return const SizedBox.shrink();
|
||||
|
||||
case 'ADDITIONAL_TYPE_VOTE':
|
||||
final vote = additional.vote!;
|
||||
|
||||
@@ -31,7 +31,7 @@ abstract class LoginUtils {
|
||||
return null;
|
||||
}
|
||||
final cookies = (account ?? Accounts.main).cookieJar.toList();
|
||||
final webManager = web.CookieManager();
|
||||
final webManager = web.CookieManager.instance();
|
||||
return Future.wait(
|
||||
cookies.map(
|
||||
(cookie) => webManager.setCookie(
|
||||
@@ -117,7 +117,7 @@ abstract class LoginUtils {
|
||||
GrpcReq.updateHeaders(null);
|
||||
|
||||
await Future.wait([
|
||||
if (!Platform.isWindows) web.CookieManager().deleteAllCookies(),
|
||||
if (!Platform.isWindows) web.CookieManager.instance().deleteAllCookies(),
|
||||
GStorage.userInfo.delete('userInfoCache'),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user