fix: 平板错误样式修改

This commit is contained in:
orz12
2024-03-22 21:09:19 +08:00
parent 6830f6b724
commit 27d9fa05f5

View File

@@ -59,17 +59,14 @@ class _WhisperPageState extends State<WhisperPage> {
return Padding( return Padding(
padding: const EdgeInsets.only(left: 20, right: 20), padding: const EdgeInsets.only(left: 20, right: 20),
child: SizedBox( child: SizedBox(
height: constraints.maxWidth / 4 + 10, height: 90,
child: Obx( child: Obx(
() => GridView.count( () => Row(
primary: false,
crossAxisCount: 4,
padding: const EdgeInsets.fromLTRB(0, 7, 0, 0),
childAspectRatio: 1.2,
children: Iterable<int>.generate( children: Iterable<int>.generate(
_whisperController.msgFeedTop.length) _whisperController.msgFeedTop.length)
.map((idx) { .map((idx) {
return GestureDetector( return Expanded(
child: GestureDetector(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
@@ -112,7 +109,7 @@ class _WhisperPageState extends State<WhisperPage> {
Get.toNamed( Get.toNamed(
_whisperController.msgFeedTop[idx]['route']); _whisperController.msgFeedTop[idx]['route']);
}, },
); ));
}).toList(), }).toList(),
), ),
), ),