Polished context menus on files and grade average calculator
This commit is contained in:
		@@ -114,7 +114,7 @@ class _FilesState extends State<Files> {
 | 
				
			|||||||
                  enabled: e != currentSortDirection,
 | 
					                  enabled: e != currentSortDirection,
 | 
				
			||||||
                  child: Row(
 | 
					                  child: Row(
 | 
				
			||||||
                    children: [
 | 
					                    children: [
 | 
				
			||||||
                      Icon(e ? Icons.text_rotate_up : Icons.text_rotation_down, color: Colors.black),
 | 
					                      Icon(e ? Icons.text_rotate_up : Icons.text_rotation_down, color: Theme.of(context).colorScheme.onSurface),
 | 
				
			||||||
                      const SizedBox(width: 15),
 | 
					                      const SizedBox(width: 15),
 | 
				
			||||||
                      Text(e ? "Aufsteigend" : "Absteigend")
 | 
					                      Text(e ? "Aufsteigend" : "Absteigend")
 | 
				
			||||||
                    ],
 | 
					                    ],
 | 
				
			||||||
@@ -135,7 +135,7 @@ class _FilesState extends State<Files> {
 | 
				
			|||||||
                  enabled: key != currentSort,
 | 
					                  enabled: key != currentSort,
 | 
				
			||||||
                  child: Row(
 | 
					                  child: Row(
 | 
				
			||||||
                    children: [
 | 
					                    children: [
 | 
				
			||||||
                      Icon(SortOptions.getOption(key).icon, color: Colors.black),
 | 
					                      Icon(SortOptions.getOption(key).icon, color: Theme.of(context).colorScheme.onSurface),
 | 
				
			||||||
                      const SizedBox(width: 15),
 | 
					                      const SizedBox(width: 15),
 | 
				
			||||||
                      Text(SortOptions.getOption(key).displayName)
 | 
					                      Text(SortOptions.getOption(key).displayName)
 | 
				
			||||||
                    ],
 | 
					                    ],
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -68,14 +68,14 @@ class _GradeAverageState extends State<GradeAverage> {
 | 
				
			|||||||
            }, icon: const Icon(Icons.delete_forever)),
 | 
					            }, icon: const Icon(Icons.delete_forever)),
 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
          PopupMenuButton<bool>(
 | 
					          PopupMenuButton<bool>(
 | 
				
			||||||
            enableFeedback: true,
 | 
					 | 
				
			||||||
            initialValue: gradeSystem,
 | 
					            initialValue: gradeSystem,
 | 
				
			||||||
            icon: const Icon(Icons.more_horiz),
 | 
					            icon: const Icon(Icons.more_horiz),
 | 
				
			||||||
            itemBuilder: (context) => [true, false].map((e) => PopupMenuItem<bool>(
 | 
					            itemBuilder: (context) => [true, false].map((e) => PopupMenuItem<bool>(
 | 
				
			||||||
              value: e,
 | 
					              value: e,
 | 
				
			||||||
              enabled: e != gradeSystem,
 | 
					 | 
				
			||||||
              child: Row(
 | 
					              child: Row(
 | 
				
			||||||
                children: [
 | 
					                children: [
 | 
				
			||||||
 | 
					                  Icon(e ? Icons.calculate_outlined : Icons.school_outlined, color: Theme.of(context).colorScheme.onSurface),
 | 
				
			||||||
 | 
					                  const SizedBox(width: 15),
 | 
				
			||||||
                  Text(e ? "Notensystem" : "Punktesystem"),
 | 
					                  Text(e ? "Notensystem" : "Punktesystem"),
 | 
				
			||||||
                ],
 | 
					                ],
 | 
				
			||||||
              ),
 | 
					              ),
 | 
				
			||||||
@@ -102,8 +102,6 @@ class _GradeAverageState extends State<GradeAverage> {
 | 
				
			|||||||
              } else {
 | 
					              } else {
 | 
				
			||||||
                switchSystem();
 | 
					                switchSystem();
 | 
				
			||||||
              }
 | 
					              }
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
          ),
 | 
					          ),
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user