mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 13:33:28 +01:00 
			
		
		
		
	Fixed App webpage scrolling issue
This commit is contained in:
		| @@ -26,64 +26,60 @@ class _AppPageState extends State<AppPage> { | ||||
|       appsProvider.getUpdate(app!.app.id); | ||||
|     } | ||||
|     return Scaffold( | ||||
|       appBar: settingsProvider.showAppWebpage ? AppBar() : null, | ||||
|       backgroundColor: Theme.of(context).colorScheme.surface, | ||||
|       body: CustomScrollView(slivers: <Widget>[ | ||||
|         CustomAppBar(title: '${app?.app.name}'), | ||||
|         SliverFillRemaining( | ||||
|           child: settingsProvider.showAppWebpage | ||||
|               ? WebView( | ||||
|                   initialUrl: app?.app.url, | ||||
|                   javascriptMode: JavascriptMode.unrestricted, | ||||
|                 ) | ||||
|               : Column( | ||||
|                   mainAxisAlignment: MainAxisAlignment.center, | ||||
|                   crossAxisAlignment: CrossAxisAlignment.stretch, | ||||
|                   children: [ | ||||
|                     Text( | ||||
|                       app?.app.name ?? 'App', | ||||
|                       textAlign: TextAlign.center, | ||||
|                       style: Theme.of(context).textTheme.displayLarge, | ||||
|                     ), | ||||
|                     Text( | ||||
|                       'By ${app?.app.author ?? 'Unknown'}', | ||||
|                       textAlign: TextAlign.center, | ||||
|                       style: Theme.of(context).textTheme.headlineMedium, | ||||
|                     ), | ||||
|                     const SizedBox( | ||||
|                       height: 32, | ||||
|                     ), | ||||
|                     GestureDetector( | ||||
|                         onTap: () { | ||||
|                           if (app?.app.url != null) { | ||||
|                             launchUrlString(app?.app.url ?? '', | ||||
|                                 mode: LaunchMode.externalApplication); | ||||
|                           } | ||||
|                         }, | ||||
|                         child: Text( | ||||
|                           app?.app.url ?? '', | ||||
|                           textAlign: TextAlign.center, | ||||
|                           style: const TextStyle( | ||||
|                               decoration: TextDecoration.underline, | ||||
|                               fontStyle: FontStyle.italic, | ||||
|                               fontSize: 12), | ||||
|                         )), | ||||
|                     const SizedBox( | ||||
|                       height: 32, | ||||
|                     ), | ||||
|                     Text( | ||||
|                       'Latest Version: ${app?.app.latestVersion ?? 'Unknown'}', | ||||
|                       textAlign: TextAlign.center, | ||||
|                       style: Theme.of(context).textTheme.bodyLarge, | ||||
|                     ), | ||||
|                     Text( | ||||
|                       'Installed Version: ${app?.app.installedVersion ?? 'None'}', | ||||
|                       textAlign: TextAlign.center, | ||||
|                       style: Theme.of(context).textTheme.bodyLarge, | ||||
|                     ), | ||||
|                   ], | ||||
|       body: settingsProvider.showAppWebpage | ||||
|           ? WebView( | ||||
|               initialUrl: app?.app.url, | ||||
|               javascriptMode: JavascriptMode.unrestricted, | ||||
|             ) | ||||
|           : Column( | ||||
|               mainAxisAlignment: MainAxisAlignment.center, | ||||
|               crossAxisAlignment: CrossAxisAlignment.stretch, | ||||
|               children: [ | ||||
|                 Text( | ||||
|                   app?.app.name ?? 'App', | ||||
|                   textAlign: TextAlign.center, | ||||
|                   style: Theme.of(context).textTheme.displayLarge, | ||||
|                 ), | ||||
|         ), | ||||
|       ]), | ||||
|                 Text( | ||||
|                   'By ${app?.app.author ?? 'Unknown'}', | ||||
|                   textAlign: TextAlign.center, | ||||
|                   style: Theme.of(context).textTheme.headlineMedium, | ||||
|                 ), | ||||
|                 const SizedBox( | ||||
|                   height: 32, | ||||
|                 ), | ||||
|                 GestureDetector( | ||||
|                     onTap: () { | ||||
|                       if (app?.app.url != null) { | ||||
|                         launchUrlString(app?.app.url ?? '', | ||||
|                             mode: LaunchMode.externalApplication); | ||||
|                       } | ||||
|                     }, | ||||
|                     child: Text( | ||||
|                       app?.app.url ?? '', | ||||
|                       textAlign: TextAlign.center, | ||||
|                       style: const TextStyle( | ||||
|                           decoration: TextDecoration.underline, | ||||
|                           fontStyle: FontStyle.italic, | ||||
|                           fontSize: 12), | ||||
|                     )), | ||||
|                 const SizedBox( | ||||
|                   height: 32, | ||||
|                 ), | ||||
|                 Text( | ||||
|                   'Latest Version: ${app?.app.latestVersion ?? 'Unknown'}', | ||||
|                   textAlign: TextAlign.center, | ||||
|                   style: Theme.of(context).textTheme.bodyLarge, | ||||
|                 ), | ||||
|                 Text( | ||||
|                   'Installed Version: ${app?.app.installedVersion ?? 'None'}', | ||||
|                   textAlign: TextAlign.center, | ||||
|                   style: Theme.of(context).textTheme.bodyLarge, | ||||
|                 ), | ||||
|               ], | ||||
|             ), | ||||
|       bottomSheet: Padding( | ||||
|           padding: EdgeInsets.fromLTRB( | ||||
|               0, 0, 0, MediaQuery.of(context).padding.bottom), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user