💄 Optimized UX

This commit is contained in:
LittleSheep 2024-02-12 17:50:06 +08:00
parent ef0e7f02da
commit f3da8f5349
2 changed files with 12 additions and 5 deletions

View File

@ -9,18 +9,22 @@ class ApplicationScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
content: Text("Swipe from left to back to dashboard."),
));
return Scaffold(
body: SafeArea(
bottom: false,
child: Stack(
children: [
WebViewWidget(
controller: WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted)
..setBackgroundColor(Colors.white)
..setNavigationDelegate(NavigationDelegate(
onPageStarted: (_) {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
content: Text("Swipe from left to back to dashboard."),
));
}
))
..loadRequest(link)
..clearCache(),
),

View File

@ -74,7 +74,10 @@ class _DashboardScreenState extends State<DashboardScreen> {
),
ListTile(
title: Text(element['name']),
subtitle: Text(element['description']),
subtitle: Padding(
padding: const EdgeInsets.only(top: 2),
child: Text(element['description'], style: Theme.of(context).textTheme.bodySmall),
),
),
],
),