mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: hotword widget
This commit is contained in:
@@ -30,15 +30,16 @@ class HotKeyword extends StatelessWidget {
|
||||
onTap: () => onClick!(i.keyword),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
left: 2,
|
||||
right: hotSearchList!.indexOf(i) % 2 == 1 ? 10 : 0),
|
||||
left: 2,
|
||||
right: 10,
|
||||
),
|
||||
child: Tooltip(
|
||||
message: i.keyword!,
|
||||
child: Row(
|
||||
children: [
|
||||
Flexible(
|
||||
Expanded(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(6, 5, 4, 5),
|
||||
padding: const EdgeInsets.fromLTRB(6, 5, 0, 5),
|
||||
child: Text(
|
||||
i.keyword!,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -47,7 +48,8 @@ class HotKeyword extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
if (i.icon != null && i.icon != '')
|
||||
if (i.icon != null && i.icon != '') ...[
|
||||
const SizedBox(width: 4),
|
||||
SizedBox(
|
||||
height: 15,
|
||||
child: CachedNetworkImage(
|
||||
@@ -55,6 +57,7 @@ class HotKeyword extends StatelessWidget {
|
||||
height: 15.0,
|
||||
),
|
||||
),
|
||||
]
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user