perf: optimize post tags scrolling performance and eliminate frame drops (v3.1.2)
Build and Release / Build Windows x64 (push) Has been cancelled

This commit is contained in:
2026-09-04 21:11:03 +03:00
parent d58b512020
commit 5a568a3df9
7 changed files with 121 additions and 136 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
</p> </p>
<p align="center"> <p align="center">
<a href="https://github.com/RarDog/Lunaris/releases"><img src="https://img.shields.io/badge/Version-3.1.1-8A2BE2?style=for-the-badge&logo=semver&logoColor=white" alt="Version 3.1.1" /></a> <a href="https://github.com/RarDog/Lunaris/releases"><img src="https://img.shields.io/badge/Version-3.1.2-8A2BE2?style=for-the-badge&logo=semver&logoColor=white" alt="Version 3.1.2" /></a>
<img src="https://img.shields.io/badge/Flutter-3.47+-02569B?style=for-the-badge&logo=flutter&logoColor=white" alt="Flutter" /> <img src="https://img.shields.io/badge/Flutter-3.47+-02569B?style=for-the-badge&logo=flutter&logoColor=white" alt="Flutter" />
<img src="https://img.shields.io/badge/Platform-Android%20%7C%20Linux%20%7C%20Windows-00C853?style=for-the-badge" alt="Platforms" /> <img src="https://img.shields.io/badge/Platform-Android%20%7C%20Linux%20%7C%20Windows-00C853?style=for-the-badge" alt="Platforms" />
<a href="https://github.com/RarDog/Lunaris/wiki"><img src="https://img.shields.io/badge/Wiki-Documentation-FF6F00?style=for-the-badge&logo=gitbook&logoColor=white" alt="Wiki" /></a> <a href="https://github.com/RarDog/Lunaris/wiki"><img src="https://img.shields.io/badge/Wiki-Documentation-FF6F00?style=for-the-badge&logo=gitbook&logoColor=white" alt="Wiki" /></a>
+2 -2
View File
@@ -1,3 +1,3 @@
const appDisplayVersion = '3.1.1'; const appDisplayVersion = '3.1.2';
const appBuildNumber = 62; const appBuildNumber = 63;
const appReleaseChannel = 'Stable'; const appReleaseChannel = 'Stable';
+10
View File
@@ -1,4 +1,14 @@
const lunarisChangelog = [ const lunarisChangelog = [
LunarisChange(
version: '3.1.2',
title: 'Оптимизация производительности: устранение лагов при скролле к тегам',
bullets: [
'Устранение лагов при прокрутке тегов: полностью ликвидирован тяжелый GPU-оверхед BackdropFilter на повторяющихся чипах тегов, вызывавший просадки FPS и микрофризы при скролле постов с десятками и сотнями тегов.',
'Высокопроизводительный стеклянный стиль чипов (TagChip): чипы переведены на эффективные аппаратные альфа-слои и зеркальные контуры без потери премиального неонового Liquid Glass вида и цветных индикаторов категорий.',
'Облегчение контейнеров блока тегов: на мобильных и десктоп экранах контейнеры тегов оптимизированы для мгновенного плавного 120 FPS скроллинга.',
'Интеллектуальный лимит начального отображения: оптимизировано первоначальное количество отображаемых тегов в огромных категориях с удобной кнопкой быстрого раскрытия.',
],
),
LunarisChange( LunarisChange(
version: '3.1.1', version: '3.1.1',
title: 'Деление тегов по стилю e621/Gelbooru/Rule34 и исправление поиска тегов со скобками', title: 'Деление тегов по стилю e621/Gelbooru/Rule34 и исправление поиска тегов со скобками',
@@ -314,20 +314,16 @@ class PostDetailsScreen extends ConsumerWidget {
), ),
], ],
const SizedBox(height: 16), const SizedBox(height: 16),
ClipRRect( Container(
borderRadius: BorderRadius.circular(20),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 16, sigmaY: 16),
child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).brightness == Brightness.dark color: Theme.of(context).brightness == Brightness.dark
? Theme.of(context).colorScheme.surfaceContainerHigh.withValues(alpha: 0.55) ? Theme.of(context).colorScheme.surfaceContainerHigh.withValues(alpha: 0.70)
: Colors.white.withValues(alpha: 0.85), : Theme.of(context).colorScheme.surfaceContainerLow,
borderRadius: BorderRadius.circular(20), borderRadius: BorderRadius.circular(20),
border: Border.all( border: Border.all(
color: Theme.of(context).brightness == Brightness.dark color: Theme.of(context).brightness == Brightness.dark
? Colors.white.withValues(alpha: 0.12) ? Colors.white.withValues(alpha: 0.12)
: Colors.white.withValues(alpha: 0.8), : Theme.of(context).colorScheme.outlineVariant.withValues(alpha: 0.40),
width: 1.1, width: 1.1,
), ),
), ),
@@ -357,8 +353,6 @@ class PostDetailsScreen extends ConsumerWidget {
], ],
), ),
), ),
),
),
const SizedBox(height: 16), const SizedBox(height: 16),
_CommentsSection(post: post), _CommentsSection(post: post),
], ],
@@ -498,23 +492,20 @@ class PostDetailsScreen extends ConsumerWidget {
), ),
], ],
const SizedBox(height: 12), const SizedBox(height: 12),
ClipRRect( Container(
borderRadius: BorderRadius.circular(20),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 16, sigmaY: 16),
child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Theme.of(context).brightness == Brightness.dark color: Theme.of(context).brightness == Brightness.dark
? Theme.of(context).colorScheme.surfaceContainerHigh.withValues(alpha: 0.55) ? Theme.of(context).colorScheme.surfaceContainerHigh.withValues(alpha: 0.70)
: Colors.white.withValues(alpha: 0.85), : Theme.of(context).colorScheme.surfaceContainerLow,
borderRadius: BorderRadius.circular(20), borderRadius: BorderRadius.circular(20),
border: Border.all( border: Border.all(
color: Theme.of(context).brightness == Brightness.dark color: Theme.of(context).brightness == Brightness.dark
? Colors.white.withValues(alpha: 0.12) ? Colors.white.withValues(alpha: 0.12)
: Colors.white.withValues(alpha: 0.8), : Theme.of(context).colorScheme.outlineVariant.withValues(alpha: 0.40),
width: 1.1, width: 1.1,
), ),
), ),
clipBehavior: Clip.antiAlias,
child: ExpansionTile( child: ExpansionTile(
tilePadding: tilePadding:
const EdgeInsets.symmetric(horizontal: 14, vertical: 2), const EdgeInsets.symmetric(horizontal: 14, vertical: 2),
@@ -540,8 +531,6 @@ class PostDetailsScreen extends ConsumerWidget {
], ],
), ),
), ),
),
),
const SizedBox(height: 12), const SizedBox(height: 12),
_CommentsSection(post: post), _CommentsSection(post: post),
], ],
@@ -298,7 +298,7 @@ class _TagGroupBlock extends StatelessWidget {
required this.onLongPress, required this.onLongPress,
}); });
static const _collapsedLimit = 36; static const _collapsedLimit = 28;
final String label; final String label;
final String group; final String group;
+3 -17
View File
@@ -1,4 +1,3 @@
import 'dart:ui';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import '../../backend/models/tag_suggestion.dart'; import '../../backend/models/tag_suggestion.dart';
@@ -41,16 +40,12 @@ class TagChip extends StatelessWidget {
final (Color baseColor, Color textColor) = _colorsForCategory(cat, scheme, isDark); final (Color baseColor, Color textColor) = _colorsForCategory(cat, scheme, isDark);
final chipWidget = ClipRRect( final chipWidget = Container(
borderRadius: BorderRadius.circular(10),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 8, sigmaY: 8),
child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: baseColor.withValues(alpha: isDark ? 0.18 : 0.12), color: baseColor.withValues(alpha: isDark ? 0.16 : 0.10),
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
border: Border.all( border: Border.all(
color: baseColor.withValues(alpha: isDark ? 0.45 : 0.32), color: baseColor.withValues(alpha: isDark ? 0.40 : 0.28),
width: 1.0, width: 1.0,
), ),
), ),
@@ -71,13 +66,6 @@ class TagChip extends StatelessWidget {
decoration: BoxDecoration( decoration: BoxDecoration(
color: baseColor, color: baseColor,
shape: BoxShape.circle, shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: baseColor.withValues(alpha: 0.6),
blurRadius: 4,
spreadRadius: 1,
),
],
), ),
), ),
Text( Text(
@@ -94,8 +82,6 @@ class TagChip extends StatelessWidget {
), ),
), ),
), ),
),
),
); );
if (onLongPress == null) return chipWidget; if (onLongPress == null) return chipWidget;
+1 -1
View File
@@ -1,7 +1,7 @@
name: gel_rule_app name: gel_rule_app
description: Local backend/core layer for a Flutter booru browser app. description: Local backend/core layer for a Flutter booru browser app.
publish_to: "none" publish_to: "none"
version: 3.1.1+62 version: 3.1.2+63
environment: environment:
sdk: ">=3.3.0 <4.0.0" sdk: ">=3.3.0 <4.0.0"