mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-11-03 23:03:29 +01:00 
			
		
		
		
	Added selection count on Apps page
This commit is contained in:
		@@ -337,7 +337,17 @@ class AppsPageState extends State<AppsPage> {
 | 
				
			|||||||
      persistentFooterButtons: [
 | 
					      persistentFooterButtons: [
 | 
				
			||||||
        Row(
 | 
					        Row(
 | 
				
			||||||
          children: [
 | 
					          children: [
 | 
				
			||||||
            IconButton(
 | 
					            selectedApps.isEmpty
 | 
				
			||||||
 | 
					                ? IconButton(
 | 
				
			||||||
 | 
					                    onPressed: () {
 | 
				
			||||||
 | 
					                      selectThese(sortedApps.map((e) => e.app).toList());
 | 
				
			||||||
 | 
					                    },
 | 
				
			||||||
 | 
					                    icon: Icon(
 | 
				
			||||||
 | 
					                      Icons.select_all_outlined,
 | 
				
			||||||
 | 
					                      color: Theme.of(context).colorScheme.primary,
 | 
				
			||||||
 | 
					                    ),
 | 
				
			||||||
 | 
					                    tooltip: tr('selectAll'))
 | 
				
			||||||
 | 
					                : TextButton.icon(
 | 
				
			||||||
                    onPressed: () {
 | 
					                    onPressed: () {
 | 
				
			||||||
                      selectedApps.isEmpty
 | 
					                      selectedApps.isEmpty
 | 
				
			||||||
                          ? selectThese(sortedApps.map((e) => e.app).toList())
 | 
					                          ? selectThese(sortedApps.map((e) => e.app).toList())
 | 
				
			||||||
@@ -349,9 +359,7 @@ class AppsPageState extends State<AppsPage> {
 | 
				
			|||||||
                          : Icons.deselect_outlined,
 | 
					                          : Icons.deselect_outlined,
 | 
				
			||||||
                      color: Theme.of(context).colorScheme.primary,
 | 
					                      color: Theme.of(context).colorScheme.primary,
 | 
				
			||||||
                    ),
 | 
					                    ),
 | 
				
			||||||
                tooltip: selectedApps.isEmpty
 | 
					                    label: Text(selectedApps.length.toString())),
 | 
				
			||||||
                    ? tr('selectAll')
 | 
					 | 
				
			||||||
                    : tr('deselectN', args: [selectedApps.length.toString()])),
 | 
					 | 
				
			||||||
            const VerticalDivider(),
 | 
					            const VerticalDivider(),
 | 
				
			||||||
            Expanded(
 | 
					            Expanded(
 | 
				
			||||||
                child: Row(
 | 
					                child: Row(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user