Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-15 18:19:51 +08:00
parent 25148509d2
commit d2f8aff421
21 changed files with 217 additions and 142 deletions

View File

@@ -115,17 +115,12 @@ class _ReplyPageState extends CommonRichTextPubPageState<ReplyPage> {
if (imageList.isNotEmpty) {
return SizedBox(
height: 85,
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
padding: const EdgeInsets.fromLTRB(15, 0, 15, 10),
child: Row(
spacing: 10,
crossAxisAlignment: CrossAxisAlignment.start,
children: List.generate(
imageList.length,
(index) => buildImage(index, 75),
),
),
child: ListView.separated(
scrollDirection: .horizontal,
padding: const .fromLTRB(15, 0, 15, 10),
itemCount: imageList.length,
itemBuilder: (_, index) => buildImage(index, 75),
separatorBuilder: (_, _) => const SizedBox(width: 10),
),
);
} else {
@@ -314,6 +309,7 @@ class _ReplyPageState extends CommonRichTextPubPageState<ReplyPage> {
return SizedBox(
height: height,
child: GridView(
physics: const ClampingScrollPhysics(),
padding: const EdgeInsets.only(left: 12, bottom: 12, right: 12),
gridDelegate: gridDelegate,
children: [