mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 19:46:47 +08:00
@@ -42,9 +42,11 @@ class _EmotePanelState extends State<EmotePanel>
|
||||
ThemeData theme,
|
||||
LoadingState<List<Package>?> loadingState,
|
||||
) {
|
||||
late final color = Get.currentRoute.startsWith('/whisperDetail')
|
||||
? theme.colorScheme.surface
|
||||
: theme.colorScheme.onInverseSurface;
|
||||
late final color = ElevationOverlay.colorWithOverlay(
|
||||
theme.colorScheme.surface,
|
||||
theme.hoverColor,
|
||||
Get.currentRoute.startsWith('/whisperDetail') ? 8 : 2,
|
||||
);
|
||||
return switch (loadingState) {
|
||||
Loading() => loadingWidget,
|
||||
Success(:var response) =>
|
||||
|
||||
Reference in New Issue
Block a user