mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 19:51:11 +08:00
opt: replace SizedBox with spacing (#863)
This commit is contained in:
committed by
GitHub
parent
218e829fd4
commit
1efd62803a
@@ -269,6 +269,7 @@ class ChatItem extends StatelessWidget {
|
||||
padding: const EdgeInsets.all(12),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
spacing: 6,
|
||||
children: [
|
||||
Text(
|
||||
content['main_title'],
|
||||
@@ -279,8 +280,7 @@ class ChatItem extends StatelessWidget {
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
for (var i in content['sub_cards']) ...[
|
||||
const SizedBox(height: 6),
|
||||
for (var i in content['sub_cards'])
|
||||
GestureDetector(
|
||||
onTap: () async {
|
||||
RegExp bvRegex =
|
||||
@@ -309,13 +309,13 @@ class ChatItem extends StatelessWidget {
|
||||
}
|
||||
},
|
||||
child: Row(
|
||||
spacing: 6,
|
||||
children: [
|
||||
NetworkImgLayer(
|
||||
width: 130,
|
||||
height: 130 * 9 / 16,
|
||||
src: i['cover_url'],
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Expanded(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
@@ -354,7 +354,6 @@ class ChatItem extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user