💄 Optimized UX
This commit is contained in:
parent
ef0e7f02da
commit
f3da8f5349
@ -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(),
|
||||
),
|
||||
|
@ -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),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user