Fixed App webpage scrolling issue

This commit is contained in:
Imran Remtulla
2022-09-18 13:59:26 -04:00
parent 6c1ad94b4f
commit 90fa0e06ce

View File

@@ -26,11 +26,9 @@ class _AppPageState extends State<AppPage> {
appsProvider.getUpdate(app!.app.id); appsProvider.getUpdate(app!.app.id);
} }
return Scaffold( return Scaffold(
appBar: settingsProvider.showAppWebpage ? AppBar() : null,
backgroundColor: Theme.of(context).colorScheme.surface, backgroundColor: Theme.of(context).colorScheme.surface,
body: CustomScrollView(slivers: <Widget>[ body: settingsProvider.showAppWebpage
CustomAppBar(title: '${app?.app.name}'),
SliverFillRemaining(
child: settingsProvider.showAppWebpage
? WebView( ? WebView(
initialUrl: app?.app.url, initialUrl: app?.app.url,
javascriptMode: JavascriptMode.unrestricted, javascriptMode: JavascriptMode.unrestricted,
@@ -82,8 +80,6 @@ class _AppPageState extends State<AppPage> {
), ),
], ],
), ),
),
]),
bottomSheet: Padding( bottomSheet: Padding(
padding: EdgeInsets.fromLTRB( padding: EdgeInsets.fromLTRB(
0, 0, 0, MediaQuery.of(context).padding.bottom), 0, 0, 0, MediaQuery.of(context).padding.bottom),