mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 08:38:18 +08:00
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user