Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-19 15:32:46 +08:00
parent 099c7b4dff
commit 51c605f5d0
16 changed files with 227 additions and 171 deletions

View File

@@ -44,6 +44,11 @@ class _WhisperDetailPageState
Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context);
final padding = MediaQuery.viewPaddingOf(context);
late final containerColor = ElevationOverlay.colorWithOverlay(
theme.colorScheme.surface,
theme.hoverColor,
1,
);
return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
@@ -145,8 +150,11 @@ class _WhisperDetailPageState
),
),
if (_whisperDetailController.mid != null) ...[
_buildInputView(theme),
buildPanelContainer(theme, theme.colorScheme.onInverseSurface),
_buildInputView(theme, containerColor),
buildPanelContainer(
theme,
containerColor,
),
] else
SizedBox(height: padding.bottom),
],
@@ -228,11 +236,11 @@ class _WhisperDetailPageState
);
}
Widget _buildInputView(ThemeData theme) {
Widget _buildInputView(ThemeData theme, Color containerColor) {
return Container(
padding: const EdgeInsets.symmetric(vertical: 8),
decoration: BoxDecoration(
color: theme.colorScheme.onInverseSurface,
color: containerColor,
borderRadius: const BorderRadius.vertical(top: Radius.circular(16)),
),
child: Row(