💄 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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
content: Text("Swipe from left to back to dashboard."),
));
return Scaffold( return Scaffold(
body: SafeArea( body: SafeArea(
bottom: false,
child: Stack( child: Stack(
children: [ children: [
WebViewWidget( WebViewWidget(
controller: WebViewController() controller: WebViewController()
..setJavaScriptMode(JavaScriptMode.unrestricted) ..setJavaScriptMode(JavaScriptMode.unrestricted)
..setBackgroundColor(Colors.white) ..setBackgroundColor(Colors.white)
..setNavigationDelegate(NavigationDelegate(
onPageStarted: (_) {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
content: Text("Swipe from left to back to dashboard."),
));
}
))
..loadRequest(link) ..loadRequest(link)
..clearCache(), ..clearCache(),
), ),

View File

@ -74,7 +74,10 @@ class _DashboardScreenState extends State<DashboardScreen> {
), ),
ListTile( ListTile(
title: Text(element['name']), 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),
),
), ),
], ],
), ),