fix: settings vertical text wrapping and pinned quick navigation v2.0.15
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="https://img.shields.io/badge/Version-2.0.14-blueviolet?style=for-the-badge" alt="Version 2.0.14" />
|
||||
<img src="https://img.shields.io/badge/Version-2.0.15-blueviolet?style=for-the-badge" alt="Version 2.0.15" />
|
||||
<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-brightgreen?style=for-the-badge" alt="Platforms" />
|
||||
<img src="https://img.shields.io/badge/Gitea-RarDog%2FLunaris-orange?style=for-the-badge&logo=gitea&logoColor=white" alt="Gitea" />
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
const appDisplayVersion = '2.0.14';
|
||||
const appBuildNumber = 36;
|
||||
const appDisplayVersion = '2.0.15';
|
||||
const appBuildNumber = 37;
|
||||
const appReleaseChannel = 'Stable';
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
const lunarisChangelog = [
|
||||
LunarisChange(
|
||||
version: '2.0.15',
|
||||
title: 'Settings 2.0 Layout Fixes & Pinned Quick Navigation',
|
||||
bullets: [
|
||||
'Fixed vertical text wrapping on mobile: separated title and full-width SegmentedButtons for Theme, Language, and Media Quality so text never collapses.',
|
||||
'Pinned Category Quick Navigation: bar now stays at the top of the screen and reliably scrolls to all 7 sections.',
|
||||
'SingleChildScrollView Migration: ensures all section keys remain mounted and scrollable on demand.',
|
||||
'Full-width Folder Structure Tile: added clean monospace path card with dedicated change button.',
|
||||
'Header text overflow protections: wrapped title texts in Expanded across all settings cards.',
|
||||
],
|
||||
),
|
||||
LunarisChange(
|
||||
version: '2.0.14',
|
||||
title: 'Settings 2.0: Modern Grouped Design & Quick Ergonomics',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,7 +1,7 @@
|
||||
name: gel_rule_app
|
||||
description: Local backend/core layer for a Flutter booru browser app.
|
||||
publish_to: "none"
|
||||
version: 2.0.14+36
|
||||
version: 2.0.15+37
|
||||
|
||||
environment:
|
||||
sdk: ">=3.3.0 <4.0.0"
|
||||
|
||||
@@ -6,8 +6,9 @@ import 'package:gel_rule_app/features/settings/presentation/settings_controller.
|
||||
import 'package:gel_rule_app/features/settings/presentation/settings_screen.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('SettingsScreen renders category quick nav and sections', (tester) async {
|
||||
tester.view.physicalSize = const Size(1200, 2400);
|
||||
testWidgets('SettingsScreen renders category quick nav and sections without overflow', (tester) async {
|
||||
// Test on typical mobile viewport: 390x844
|
||||
tester.view.physicalSize = const Size(390, 844);
|
||||
tester.view.devicePixelRatio = 1.0;
|
||||
addTearDown(() {
|
||||
tester.view.resetPhysicalSize();
|
||||
@@ -34,22 +35,25 @@ void main() {
|
||||
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Verify Category Quick Nav renders
|
||||
// Verify pinned Category Quick Nav renders
|
||||
expect(find.text('Основное'), findsWidgets);
|
||||
expect(find.text('Внешний вид'), findsWidgets);
|
||||
expect(find.text('Лента и раскладка'), findsWidgets);
|
||||
expect(find.text('Фильтры'), findsWidgets);
|
||||
expect(find.text('Хранилище'), findsWidgets);
|
||||
|
||||
// Verify Theme mode segment buttons
|
||||
expect(find.text('Темная'), findsOneWidget);
|
||||
expect(find.text('Светлая'), findsOneWidget);
|
||||
// Both ThemeMode and MediaQualityMode have 'Авто'
|
||||
expect(find.text('Авто'), findsNWidgets(2));
|
||||
|
||||
// Verify Language segmented buttons
|
||||
expect(find.text('🇷🇺 RU'), findsOneWidget);
|
||||
expect(find.text('🇬🇧 EN'), findsOneWidget);
|
||||
// Tap a quick nav chip to test scrolling
|
||||
await tester.tap(find.text('Внешний вид').first);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
// Verify language segment is visible and tappable
|
||||
expect(find.text('🇷🇺 Русский'), findsOneWidget);
|
||||
expect(find.text('🇬🇧 English'), findsOneWidget);
|
||||
|
||||
// Tap English to test selection
|
||||
await tester.tap(find.text('🇬🇧 English'));
|
||||
await tester.pumpAndSettle();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user