opt: pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-24 16:36:26 +08:00
parent 4d7d9abc60
commit c28729af5b
27 changed files with 266 additions and 310 deletions

View File

@@ -130,7 +130,9 @@ class _WhisperDetailPageState
reverse: true,
itemCount: loadingState.response!.length,
padding: const EdgeInsets.only(bottom: 12),
physics: const AlwaysScrollableScrollPhysics(),
physics: const AlwaysScrollableScrollPhysics(
parent: ClampingScrollPhysics(),
),
controller: _whisperDetailController.scrollController,
itemBuilder: (context, int index) {
if (index == loadingState.response!.length - 1) {

View File

@@ -458,7 +458,7 @@ class ChatItem extends StatelessWidget {
return isSystem
? messageContent(context)
: isRevoke
? const SizedBox()
? const SizedBox.shrink()
: GestureDetector(
onLongPress: () {
Feedback.forLongPress(context);