mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 13:33:28 +01:00 
			
		
		
		
	| @@ -242,11 +242,11 @@ class _AppPageState extends State<AppPage> { | |||||||
|       ); |       ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     getFullInfoColumn() => Column( |     getFullInfoColumn({bool small = false}) => Column( | ||||||
|           mainAxisAlignment: MainAxisAlignment.center, |           mainAxisAlignment: MainAxisAlignment.center, | ||||||
|           crossAxisAlignment: CrossAxisAlignment.stretch, |           crossAxisAlignment: CrossAxisAlignment.stretch, | ||||||
|           children: [ |           children: [ | ||||||
|             const SizedBox(height: 20), |             SizedBox(height: small ? 5 : 20), | ||||||
|             FutureBuilder( |             FutureBuilder( | ||||||
|                 future: |                 future: | ||||||
|                     appsProvider.updateAppIcon(app?.app.id, ignoreCache: true), |                     appsProvider.updateAppIcon(app?.app.id, ignoreCache: true), | ||||||
| @@ -261,24 +261,28 @@ class _AppPageState extends State<AppPage> { | |||||||
|                                     : () => pm.openApp(app.app.id), |                                     : () => pm.openApp(app.app.id), | ||||||
|                                 child: Image.memory( |                                 child: Image.memory( | ||||||
|                                   app!.icon!, |                                   app!.icon!, | ||||||
|                                   height: 150, |                                   height: small ? 70 : 150, | ||||||
|                                   gaplessPlayback: true, |                                   gaplessPlayback: true, | ||||||
|                                 ), |                                 ), | ||||||
|                               ) |                               ) | ||||||
|                             ]) |                             ]) | ||||||
|                       : Container(); |                       : Container(); | ||||||
|                 }), |                 }), | ||||||
|             const SizedBox( |             SizedBox( | ||||||
|               height: 25, |               height: small ? 10 : 25, | ||||||
|             ), |             ), | ||||||
|             Text( |             Text( | ||||||
|               app?.name ?? tr('app'), |               app?.name ?? tr('app'), | ||||||
|               textAlign: TextAlign.center, |               textAlign: TextAlign.center, | ||||||
|               style: Theme.of(context).textTheme.displayLarge, |               style: small | ||||||
|  |                   ? Theme.of(context).textTheme.displaySmall | ||||||
|  |                   : Theme.of(context).textTheme.displayLarge, | ||||||
|             ), |             ), | ||||||
|             Text(tr('byX', args: [app?.app.author ?? tr('unknown')]), |             Text(tr('byX', args: [app?.app.author ?? tr('unknown')]), | ||||||
|                 textAlign: TextAlign.center, |                 textAlign: TextAlign.center, | ||||||
|                 style: Theme.of(context).textTheme.headlineMedium), |                 style: small | ||||||
|  |                     ? Theme.of(context).textTheme.headlineSmall | ||||||
|  |                     : Theme.of(context).textTheme.headlineMedium), | ||||||
|             const SizedBox( |             const SizedBox( | ||||||
|               height: 24, |               height: 24, | ||||||
|             ), |             ), | ||||||
| @@ -496,11 +500,8 @@ class _AppPageState extends State<AppPage> { | |||||||
|                                   builder: (BuildContext ctx) { |                                   builder: (BuildContext ctx) { | ||||||
|                                     return AlertDialog( |                                     return AlertDialog( | ||||||
|                                       scrollable: true, |                                       scrollable: true, | ||||||
|                                       content: getInfoColumn(), |                                       content: getFullInfoColumn(small: true), | ||||||
|                                       title: Text( |                                       title: Text(app.name), | ||||||
|                                           '${app.name} ${tr('byX', args: [ |  | ||||||
|                                             app.app.author |  | ||||||
|                                           ])}'), |  | ||||||
|                                       actions: [ |                                       actions: [ | ||||||
|                                         TextButton( |                                         TextButton( | ||||||
|                                             onPressed: () { |                                             onPressed: () { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user