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