mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 13:33:28 +01:00 
			
		
		
		
	App page now scrollable when categories overflow
This commit is contained in:
		| @@ -1,7 +1,6 @@ | |||||||
| import 'package:easy_localization/easy_localization.dart'; | import 'package:easy_localization/easy_localization.dart'; | ||||||
| import 'package:flutter/material.dart'; | import 'package:flutter/material.dart'; | ||||||
| import 'package:flutter/services.dart'; | import 'package:flutter/services.dart'; | ||||||
| import 'package:obtainium/components/generated_form.dart'; |  | ||||||
| import 'package:obtainium/components/generated_form_modal.dart'; | import 'package:obtainium/components/generated_form_modal.dart'; | ||||||
| import 'package:obtainium/custom_errors.dart'; | import 'package:obtainium/custom_errors.dart'; | ||||||
| import 'package:obtainium/main.dart'; | import 'package:obtainium/main.dart'; | ||||||
| @@ -35,7 +34,6 @@ class _AppPageState extends State<AppPage> { | |||||||
|       }); |       }); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     var categories = settingsProvider.categories; |  | ||||||
|     var sourceProvider = SourceProvider(); |     var sourceProvider = SourceProvider(); | ||||||
|     AppInMemory? app = appsProvider.apps[widget.appId]; |     AppInMemory? app = appsProvider.apps[widget.appId]; | ||||||
|     var source = app != null ? sourceProvider.getSource(app.app.url) : null; |     var source = app != null ? sourceProvider.getSource(app.app.url) : null; | ||||||
| @@ -72,11 +70,12 @@ class _AppPageState extends State<AppPage> { | |||||||
|                   : Container() |                   : Container() | ||||||
|               : CustomScrollView( |               : CustomScrollView( | ||||||
|                   slivers: [ |                   slivers: [ | ||||||
|                     SliverFillRemaining( |                     SliverToBoxAdapter( | ||||||
|                         child: Column( |                         child: Column( | ||||||
|                       mainAxisAlignment: MainAxisAlignment.center, |                       mainAxisAlignment: MainAxisAlignment.center, | ||||||
|                       crossAxisAlignment: CrossAxisAlignment.stretch, |                       crossAxisAlignment: CrossAxisAlignment.stretch, | ||||||
|                       children: [ |                       children: [ | ||||||
|  |                         const SizedBox(height: 100), | ||||||
|                         app?.installedInfo != null |                         app?.installedInfo != null | ||||||
|                             ? Row( |                             ? Row( | ||||||
|                                 mainAxisAlignment: MainAxisAlignment.center, |                                 mainAxisAlignment: MainAxisAlignment.center, | ||||||
| @@ -168,7 +167,8 @@ class _AppPageState extends State<AppPage> { | |||||||
|                                     : null; |                                     : null; | ||||||
|                                 appsProvider.saveApps([app.app]); |                                 appsProvider.saveApps([app.app]); | ||||||
|                               } |                               } | ||||||
|                             }) |                             }), | ||||||
|  |                         const SizedBox(height: 100) | ||||||
|                       ], |                       ], | ||||||
|                     )), |                     )), | ||||||
|                   ], |                   ], | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user