opt pub img panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-23 18:09:55 +08:00
parent 0b495f100f
commit 0a9897f6a4
2 changed files with 4 additions and 0 deletions

View File

@@ -91,11 +91,13 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
Widget _buildImageList(ThemeData theme) => Obx( Widget _buildImageList(ThemeData theme) => Obx(
() => SizedBox( () => SizedBox(
height: 100, height: 100,
width: double.infinity,
child: SingleChildScrollView( child: SingleChildScrollView(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
padding: const EdgeInsets.symmetric(horizontal: 16), padding: const EdgeInsets.symmetric(horizontal: 16),
child: Row( child: Row(
spacing: 10, spacing: 10,
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
...List.generate( ...List.generate(
pathList.length, (index) => buildImage(index, 100)), pathList.length, (index) => buildImage(index, 100)),

View File

@@ -92,12 +92,14 @@ class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
if (pathList.isNotEmpty) { if (pathList.isNotEmpty) {
return Container( return Container(
height: 85, height: 85,
width: double.infinity,
padding: const EdgeInsets.only(bottom: 10), padding: const EdgeInsets.only(bottom: 10),
child: SingleChildScrollView( child: SingleChildScrollView(
scrollDirection: Axis.horizontal, scrollDirection: Axis.horizontal,
padding: const EdgeInsets.symmetric(horizontal: 15), padding: const EdgeInsets.symmetric(horizontal: 15),
child: Row( child: Row(
spacing: 10, spacing: 10,
crossAxisAlignment: CrossAxisAlignment.start,
children: List.generate( children: List.generate(
pathList.length, pathList.length,
(index) => buildImage(index, 75), (index) => buildImage(index, 75),