mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 13:26:43 +02:00
Fix categories UI bug (#2064)
This commit is contained in:
@ -524,12 +524,12 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
var transparent =
|
var transparent =
|
||||||
Theme.of(context).colorScheme.surface.withAlpha(0).value;
|
Theme.of(context).colorScheme.surface.withAlpha(0).value;
|
||||||
List<double> stops = [
|
List<double> stops = [
|
||||||
...listedApps[index].app.categories.asMap().entries.map(
|
...listedApps[index].app.categories.asMap().entries.map((e) =>
|
||||||
(e) => ((e.key / (listedApps[index].app.categories.length - 1)))),
|
((e.key / (listedApps[index].app.categories.length - 1)) - 0.0001)),
|
||||||
1
|
1
|
||||||
];
|
];
|
||||||
if (stops.length == 2) {
|
if (stops.length == 2) {
|
||||||
stops[0] = 1;
|
stops[0] = 0.9999;
|
||||||
}
|
}
|
||||||
return Container(
|
return Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
Reference in New Issue
Block a user