💄 Better dashboard

This commit is contained in:
LittleSheep 2024-02-10 22:38:50 +08:00
parent 8f7d50c31f
commit 80a850a7a8

View File

@ -46,7 +46,8 @@ class _DashboardScreenState extends State<DashboardScreen> {
child: InkWell(
onTap: () async {
var link = element["link"];
Navigator.of(context, rootNavigator: true).push(MaterialPageRoute(
Navigator.of(context, rootNavigator: true)
.push(MaterialPageRoute(
builder: (context) => ApplicationScreen(
link: Uri.parse(link),
title: element["name"],
@ -56,10 +57,27 @@ class _DashboardScreenState extends State<DashboardScreen> {
splashColor: Colors.indigo.withAlpha(30),
child: Padding(
padding: const EdgeInsets.all(10),
child: ListTile(
child: Wrap(
spacing: 8.0,
children: [
Padding(
padding: const EdgeInsets.only(left: 6, top: 2),
child: Card(
shape: const CircleBorder(),
elevation: 0,
color: Colors.indigo.withAlpha(70),
child: const Padding(
padding: EdgeInsets.all(16),
child: Icon(Icons.apps),
),
),
),
ListTile(
title: Text(element['name']),
subtitle: Text(element['description']),
),
],
),
),
),
);