Fix categories UI bug (#2064)

This commit is contained in:
Imran Remtulla
2025-01-14 17:23:49 +03:00
parent aac01885f1
commit e16320f995

View File

@ -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(