mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
fix: ssh card tap area (#448)
This commit is contained in:
@@ -108,16 +108,27 @@ class _SSHTabPageState extends State<SSHTabPage>
|
|||||||
}
|
}
|
||||||
return GridView.builder(
|
return GridView.builder(
|
||||||
padding: const EdgeInsets.all(7),
|
padding: const EdgeInsets.all(7),
|
||||||
itemBuilder: (_, idx) {
|
itemBuilder: (context, idx) {
|
||||||
final spi = Pros.server.pick(id: pro.serverOrder[idx])?.spi;
|
final spi = Pros.server.pick(id: pro.serverOrder[idx])?.spi;
|
||||||
if (spi == null) return UIs.placeholder;
|
if (spi == null) return UIs.placeholder;
|
||||||
return CardX(
|
return CardX(
|
||||||
child: ListTile(
|
child: InkWell(
|
||||||
contentPadding: const EdgeInsets.only(left: 17, right: 7),
|
|
||||||
title: Text(spi.name),
|
|
||||||
trailing: const Icon(Icons.chevron_right),
|
|
||||||
onTap: () => _onTapInitCard(spi),
|
onTap: () => _onTapInitCard(spi),
|
||||||
).center(),
|
child: Container(
|
||||||
|
alignment: Alignment.centerLeft,
|
||||||
|
padding: const EdgeInsets.only(left: 17, right: 7),
|
||||||
|
child: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
spi.name,
|
||||||
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
|
),
|
||||||
|
const Icon(Icons.chevron_right)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
itemCount: pro.servers.length,
|
itemCount: pro.servers.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user