Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67c6994311 | ||
|
|
a88a8b5050 | ||
|
|
a039f09ec3 | ||
|
|
c7f507836b | ||
|
|
1395cfd414 | ||
|
|
15bebd6e47 | ||
|
|
295499ca4b |
@@ -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.4-8A2BE2?style=for-the-badge&logo=semver&logoColor=white" alt="Version 3.1.4" /></a>
|
<a href="https://github.com/RarDog/Lunaris/releases"><img src="https://img.shields.io/badge/Version-3.3.0-8A2BE2?style=for-the-badge&logo=semver&logoColor=white" alt="Version 3.3.0" /></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>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
const appDisplayVersion = '3.1.4';
|
const appDisplayVersion = '3.3.0';
|
||||||
const appBuildNumber = 65;
|
const appBuildNumber = 72;
|
||||||
const appReleaseChannel = 'Stable';
|
const appReleaseChannel = 'Stable';
|
||||||
|
|||||||
@@ -1,4 +1,75 @@
|
|||||||
const lunarisChangelog = [
|
const lunarisChangelog = [
|
||||||
|
LunarisChange(
|
||||||
|
version: '3.3.0',
|
||||||
|
title: 'Редизайн личных сообщений и рассылок артиста, нативная поддержка текстовых публикаций',
|
||||||
|
bullets: [
|
||||||
|
'Центр сообщений и рассылок автора: полностью переработан диалог по кнопке-рупору на экране артиста — аккуратные карточки сообщений в стиле мессенджера, бейджи сервисов, точное время публикации и кнопка быстрого копирования текста в буфер обмена.',
|
||||||
|
'Нативная поддержка текстовых постов: публикации без медиафайлов больше не вызывают ошибок и пустых плейсхолдеров — в сетке они отображаются как стильные заметки с заголовком и выдержкой текста.',
|
||||||
|
'Удобное чтение статей и заметок: при открытии текстового поста отображается комфортный ридер с форматированным текстом, ссылками автора и тегами.',
|
||||||
|
'Фильтрация по типу контента: на экране автора добавлен фильтр «Текст» с подсчетом количества публикаций наряду с фото, видео и GIF.',
|
||||||
|
'Поддержка анонсов в Kemono и Coomer: API анонсов и персональных сообщений теперь полноценно работает для всех поддерживаемых провайдеров.',
|
||||||
|
],
|
||||||
|
),
|
||||||
|
LunarisChange(
|
||||||
|
version: '3.2.0',
|
||||||
|
title: 'Стабильный полноэкранный режим: сохранение воспроизведения, устранение вылетов плеера и чистый интерфейс',
|
||||||
|
bullets: [
|
||||||
|
'Сохранение воспроизведения видео при повороте экрана: исправлена логика адаптивности на смартфонах — альбомная ориентация больше не сбрасывает мобильный интерфейс и не уничтожает запущенный плеер.',
|
||||||
|
'Защита жизненного цикла Player в фоне: плеер не уничтожается при переходе в полный экран, а кнопки «Пуск/Пауза» и перемотки работают мгновенно и безотказно.',
|
||||||
|
'Чистый кинематографичный интерфейс: удалены старые дублирующиеся кнопки в правом верхнем углу; кнопка смены ориентации (альбомный/портретный режим) аккуратно интегрирована в верхнюю панель управления.',
|
||||||
|
'Быстрое скрытие и показ контролов: касание свободной области видео плавно переключает видимость панели управления, а при нажатии на кнопки таймер автоскрытия автоматически обновляется.',
|
||||||
|
],
|
||||||
|
),
|
||||||
|
LunarisChange(
|
||||||
|
version: '3.1.9',
|
||||||
|
title: 'Полноэкранный плеер 2.0: мгновенный переход без задержек, жесты яркости и скраббинг с превью',
|
||||||
|
bullets: [
|
||||||
|
'Мгновенный переход в полноэкранный режим: убраны промежуточные задержки и наложения текстур, вход и выход происходят без малейших задержек.',
|
||||||
|
'Двухзонное жестовое управление: левая сторона экрана регулирует яркость подсветки с индикатором солнца, правая сторона — громкость звука.',
|
||||||
|
'Плавный скраббинг с плавающим таймингом: перемещение по таймлайну видео теперь отображает интерактивную плашку точного времени, а контролы не исчезают во время удержания ползунка.',
|
||||||
|
'Сброс яркости: при выходе из полноэкранного режима системный уровень яркости экрана аккуратно восстанавливается.',
|
||||||
|
],
|
||||||
|
),
|
||||||
|
LunarisChange(
|
||||||
|
version: '3.1.8',
|
||||||
|
title: 'Безупречный полноэкранный плеер: устранение остановки при развертывании и отзывчивые кнопки управления',
|
||||||
|
bullets: [
|
||||||
|
'Непрерывное воспроизведение при открытии на весь экран: видео больше не останавливается самопроизвольно при входе в полноэкранный режим или смене ориентации устройства.',
|
||||||
|
'Корректный статус воспроизведения: устранен сброс кнопки на «Пуск» при переходе в полный экран — видео продолжает воспроизведение без ложных остановок.',
|
||||||
|
'Мгновенный отклик кнопок «Пуск/Пауза» и перемотки: жесты управления поверхностью (двойной тап, смахивание громкости) перемещены в фоновый слой, исключая перехват и отмену нажатий по кнопкам управления.',
|
||||||
|
'Синхронизация состояния при сворачивании: плеер точно запоминает состояние паузы/воспроизведения при выходе из полноэкранного режима обратно в пост.',
|
||||||
|
],
|
||||||
|
),
|
||||||
|
LunarisChange(
|
||||||
|
version: '3.1.7',
|
||||||
|
title: 'Устранение критического сбоя при открытии видеопоста (SIGSEGV в libmpv)',
|
||||||
|
bullets: [
|
||||||
|
'Устранение нативного вылета: полностью удалены небезопасные прямые FFI-вызовы setProperty к mpv, приводившие к немедленному падению приложения на Android при инициализации видео.',
|
||||||
|
'Безопасная конфигурация декодирования: перевод настроек аппаратного ускорения и фоллбэка кодеков на официальный типобезопасный VideoControllerConfiguration (media_kit_video).',
|
||||||
|
'Надежный фоллбэк при редких ошибках кодека: при несовместимости аппаратного декодера плеер бесшовно переключается на программный FFmpeg-декодер без риска краша.',
|
||||||
|
],
|
||||||
|
),
|
||||||
|
LunarisChange(
|
||||||
|
version: '3.1.6',
|
||||||
|
title: 'Надежный полноэкранный плеер, сохранение провайдеров в поиске, громкость и устранение ошибки кодека',
|
||||||
|
bullets: [
|
||||||
|
'Полноэкранный плеер — отзывчивая кнопка Пуск/Пауза: центральная кнопка управления воспроизведением полностью переработана на непроницаемый GestureDetector со сквиркл-откликом, гарантируя мгновенное срабатывание без перехвата внешними жестами.',
|
||||||
|
'Сохранение источников при нажатии на крестик в поиске: клик по кнопке сброса в строке поиска теперь очищает только поисковый запрос и теги, никогда не сбрасывая выбранные источники до «Все».',
|
||||||
|
'Безупречное сохранение громкости: громкость видеоплеера корректно инициализируется из настроек, сохраняется при регулировках жестом и переходе между постами, не сбрасываясь на 100% при открытии нового видео и перезапуске приложения.',
|
||||||
|
'Автоматический fallback для ошибки Could not open codec: видеоплеер получил безопасные профили декодирования и автопереключение на программный лавк-декодер (FFmpeg software fallback) при редких сбоях аппаратного ускорения.',
|
||||||
|
],
|
||||||
|
),
|
||||||
|
LunarisChange(
|
||||||
|
version: '3.1.5',
|
||||||
|
title: 'Сохранение громкости видео, исправление полноэкранного плеера, фильтрации и удобства комментариев',
|
||||||
|
bullets: [
|
||||||
|
'Сохранение уровня громкости (Persistent Volume): выбранная громкость видеоплеера теперь сохраняется при свайп-регулировке и переключениях между видео и сохраняется даже после перезапуска приложения.',
|
||||||
|
'Исправление кнопок в полноэкранном режиме: кнопки паузы/воспроизведения и быстрой перемотки на ±10 секунд в центре экрана теперь работают мгновенно и надежно с анимацией визуального отклика (Seek Ripple).',
|
||||||
|
'Сохранение выбранных источников при очистке тегов: удаление всех тегов в строке поиска больше не сбрасывает выбранные провайдеры до значения «Все», сохраняя ваши активные источники.',
|
||||||
|
'Плавная строка поиска: при выборе тега из подсказок поле ввода больше не сдвигается слишком далеко в сторону, оставляя тег и курсор в поле зрения.',
|
||||||
|
'Удобный доступ к комментариям в посте: увеличен отступ снизу в деталях поста и расширена зона клика блока комментариев, позволяя комфортно прокрутить их выше системных жестов навигации.',
|
||||||
|
],
|
||||||
|
),
|
||||||
LunarisChange(
|
LunarisChange(
|
||||||
version: '3.1.4',
|
version: '3.1.4',
|
||||||
title: 'Оптимизация видеоплеера — адаптивная высота и идеальное прилегание полосы воспроизведения',
|
title: 'Оптимизация видеоплеера — адаптивная высота и идеальное прилегание полосы воспроизведения',
|
||||||
|
|||||||
+14
-4
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
|
|
||||||
class AppBreakpoints {
|
class AppBreakpoints {
|
||||||
@@ -6,11 +8,19 @@ class AppBreakpoints {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class Responsive {
|
class Responsive {
|
||||||
static bool isMobile(BuildContext context) =>
|
static bool isMobile(BuildContext context) {
|
||||||
MediaQuery.sizeOf(context).width < AppBreakpoints.mobile;
|
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS)) {
|
||||||
|
return MediaQuery.sizeOf(context).shortestSide < 600;
|
||||||
|
}
|
||||||
|
return MediaQuery.sizeOf(context).width < AppBreakpoints.mobile;
|
||||||
|
}
|
||||||
|
|
||||||
static bool isDesktop(BuildContext context) =>
|
static bool isDesktop(BuildContext context) {
|
||||||
MediaQuery.sizeOf(context).width >= AppBreakpoints.desktop;
|
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS)) {
|
||||||
|
return MediaQuery.sizeOf(context).shortestSide >= 600;
|
||||||
|
}
|
||||||
|
return MediaQuery.sizeOf(context).width >= AppBreakpoints.desktop;
|
||||||
|
}
|
||||||
|
|
||||||
static int columnsFor(
|
static int columnsFor(
|
||||||
BuildContext context, {
|
BuildContext context, {
|
||||||
|
|||||||
@@ -60,11 +60,21 @@ class Post {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String? get description => commentary;
|
||||||
|
|
||||||
|
String? get title {
|
||||||
|
final list = tagGroups['copyright'];
|
||||||
|
if (list != null && list.isNotEmpty) {
|
||||||
|
return list.first;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
List<String> get cleanTags {
|
List<String> get cleanTags {
|
||||||
return tags.where((tag) {
|
return tags.where((tag) {
|
||||||
final t = tag.trim();
|
final t = tag.trim();
|
||||||
if (t.isEmpty) return false;
|
if (t.isEmpty) return false;
|
||||||
if (t == 'cloud_mirror') return false;
|
if (t == 'cloud_mirror' || t == 'text_post') return false;
|
||||||
if (t.startsWith('{') && t.endsWith('}')) return false;
|
if (t.startsWith('{') && t.endsWith('}')) return false;
|
||||||
if (t.contains('"url"') || t.contains('"service"')) return false;
|
if (t.contains('"url"') || t.contains('"service"')) return false;
|
||||||
if (t.startsWith('http://') || t.startsWith('https://')) return false;
|
if (t.startsWith('http://') || t.startsWith('https://')) return false;
|
||||||
|
|||||||
@@ -230,8 +230,23 @@ class KemonoProvider
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<List<ArtistAnnouncement>> getArtistAnnouncements(
|
Future<List<ArtistAnnouncement>> getArtistAnnouncements(
|
||||||
String service, String artistId) async =>
|
String service, String artistId) async {
|
||||||
const [];
|
final path = '/api/v1/$service/user/$artistId/announcements';
|
||||||
|
for (final apiBase in _apiBaseCandidates()) {
|
||||||
|
try {
|
||||||
|
final response = await _getFromApiBase<dynamic>(apiBase, path);
|
||||||
|
final items = response.data;
|
||||||
|
if (items is List) {
|
||||||
|
return items
|
||||||
|
.whereType<Map>()
|
||||||
|
.map((item) =>
|
||||||
|
ArtistAnnouncement.fromJson(Map<String, dynamic>.from(item)))
|
||||||
|
.toList(growable: false);
|
||||||
|
}
|
||||||
|
} catch (_) {}
|
||||||
|
}
|
||||||
|
return const [];
|
||||||
|
}
|
||||||
|
|
||||||
String _creatorPath() => _isCoomer ? '/coomer' : '/kemono';
|
String _creatorPath() => _isCoomer ? '/coomer' : '/kemono';
|
||||||
|
|
||||||
@@ -385,17 +400,23 @@ class KemonoProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Support link-only posts where author uploaded files to cloud drives (MEGA, GDrive, etc.)
|
// Support link-only posts where author uploaded files to cloud drives (MEGA, GDrive, etc.)
|
||||||
if (files.isEmpty && (cloudLinks.isNotEmpty || cleanDesc.isNotEmpty)) {
|
// or text-only posts where author wrote an announcement, status or note
|
||||||
|
if (files.isEmpty &&
|
||||||
|
(cloudLinks.isNotEmpty ||
|
||||||
|
cleanDesc.isNotEmpty ||
|
||||||
|
rawContent.trim().isNotEmpty ||
|
||||||
|
title.trim().isNotEmpty)) {
|
||||||
final stableId = '${query.service}:${query.artistId}:$postId:0';
|
final stableId = '${query.service}:${query.artistId}:$postId:0';
|
||||||
final firstStreamable =
|
final firstStreamable =
|
||||||
cloudLinks.where((l) => l.isStreamable).firstOrNull;
|
cloudLinks.where((l) => l.isStreamable).firstOrNull;
|
||||||
final firstLink = cloudLinks.isNotEmpty ? cloudLinks.first : null;
|
final firstLink = cloudLinks.isNotEmpty ? cloudLinks.first : null;
|
||||||
final fileUrl = firstStreamable?.directStreamUrl ?? firstLink?.url ?? '';
|
final fileUrl = firstStreamable?.directStreamUrl ?? firstLink?.url ?? '';
|
||||||
|
final isTextOnly = cloudLinks.isEmpty;
|
||||||
final tags = [
|
final tags = [
|
||||||
query.service,
|
query.service,
|
||||||
query.artistName,
|
query.artistName,
|
||||||
if (title.trim().isNotEmpty) title.trim(),
|
if (title.trim().isNotEmpty) title.trim(),
|
||||||
'cloud_mirror',
|
if (!isTextOnly) 'cloud_mirror' else 'text_post',
|
||||||
];
|
];
|
||||||
return [
|
return [
|
||||||
Post(
|
Post(
|
||||||
@@ -411,14 +432,19 @@ class KemonoProvider
|
|||||||
height: 0,
|
height: 0,
|
||||||
source: postSource,
|
source: postSource,
|
||||||
createdAt: published,
|
createdAt: published,
|
||||||
fileType: firstStreamable != null ? 'video' : 'link',
|
fileType: firstStreamable != null
|
||||||
|
? 'video'
|
||||||
|
: (isTextOnly ? 'text' : 'link'),
|
||||||
score: 0,
|
score: 0,
|
||||||
tagGroups: {
|
tagGroups: {
|
||||||
'artist': [query.artistName],
|
'artist': [query.artistName],
|
||||||
'meta': [query.service],
|
'meta': [query.service],
|
||||||
if (title.trim().isNotEmpty) 'copyright': [title.trim()],
|
if (title.trim().isNotEmpty) 'copyright': [title.trim()],
|
||||||
if (cloudLinksJson.isNotEmpty) 'cloud_links': cloudLinksJson,
|
if (cloudLinksJson.isNotEmpty) 'cloud_links': cloudLinksJson,
|
||||||
if (cleanDesc.isNotEmpty) 'description': [cleanDesc],
|
if (cleanDesc.isNotEmpty)
|
||||||
|
'description': [cleanDesc]
|
||||||
|
else if (rawContent.trim().isNotEmpty)
|
||||||
|
'description': [rawContent.trim()],
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -418,17 +418,23 @@ class PawchiveProvider
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Support link-only posts where author uploaded files to cloud drives (MEGA, GDrive, etc.)
|
// Support link-only posts where author uploaded files to cloud drives (MEGA, GDrive, etc.)
|
||||||
if (files.isEmpty && (cloudLinks.isNotEmpty || cleanDesc.isNotEmpty)) {
|
// or text-only posts where author wrote an announcement, status or note
|
||||||
|
if (files.isEmpty &&
|
||||||
|
(cloudLinks.isNotEmpty ||
|
||||||
|
cleanDesc.isNotEmpty ||
|
||||||
|
rawContent.trim().isNotEmpty ||
|
||||||
|
title.trim().isNotEmpty)) {
|
||||||
final stableId = '${query.service}:${query.artistId}:$postId:0';
|
final stableId = '${query.service}:${query.artistId}:$postId:0';
|
||||||
final firstStreamable =
|
final firstStreamable =
|
||||||
cloudLinks.where((l) => l.isStreamable).firstOrNull;
|
cloudLinks.where((l) => l.isStreamable).firstOrNull;
|
||||||
final firstLink = cloudLinks.isNotEmpty ? cloudLinks.first : null;
|
final firstLink = cloudLinks.isNotEmpty ? cloudLinks.first : null;
|
||||||
final fileUrl = firstStreamable?.directStreamUrl ?? firstLink?.url ?? '';
|
final fileUrl = firstStreamable?.directStreamUrl ?? firstLink?.url ?? '';
|
||||||
|
final isTextOnly = cloudLinks.isEmpty;
|
||||||
final tags = [
|
final tags = [
|
||||||
query.service,
|
query.service,
|
||||||
query.artistName,
|
query.artistName,
|
||||||
if (title.trim().isNotEmpty) title.trim(),
|
if (title.trim().isNotEmpty) title.trim(),
|
||||||
'cloud_mirror',
|
if (!isTextOnly) 'cloud_mirror' else 'text_post',
|
||||||
];
|
];
|
||||||
return [
|
return [
|
||||||
Post(
|
Post(
|
||||||
@@ -444,14 +450,19 @@ class PawchiveProvider
|
|||||||
height: 0,
|
height: 0,
|
||||||
source: postSource,
|
source: postSource,
|
||||||
createdAt: published,
|
createdAt: published,
|
||||||
fileType: firstStreamable != null ? 'video' : 'link',
|
fileType: firstStreamable != null
|
||||||
|
? 'video'
|
||||||
|
: (isTextOnly ? 'text' : 'link'),
|
||||||
score: 0,
|
score: 0,
|
||||||
tagGroups: {
|
tagGroups: {
|
||||||
'artist': [query.artistName],
|
'artist': [query.artistName],
|
||||||
'meta': [query.service],
|
'meta': [query.service],
|
||||||
if (title.trim().isNotEmpty) 'copyright': [title.trim()],
|
if (title.trim().isNotEmpty) 'copyright': [title.trim()],
|
||||||
if (cloudLinksJson.isNotEmpty) 'cloud_links': cloudLinksJson,
|
if (cloudLinksJson.isNotEmpty) 'cloud_links': cloudLinksJson,
|
||||||
if (cleanDesc.isNotEmpty) 'description': [cleanDesc],
|
if (cleanDesc.isNotEmpty)
|
||||||
|
'description': [cleanDesc]
|
||||||
|
else if (rawContent.trim().isNotEmpty)
|
||||||
|
'description': [rawContent.trim()],
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class AppSettings {
|
|||||||
required this.motionRefreshMode,
|
required this.motionRefreshMode,
|
||||||
required this.autoBatterySaver60Hz,
|
required this.autoBatterySaver60Hz,
|
||||||
required this.videoPlayerMuted,
|
required this.videoPlayerMuted,
|
||||||
|
this.videoPlayerVolume = 100.0,
|
||||||
required this.videoPlayerHalfVolume,
|
required this.videoPlayerHalfVolume,
|
||||||
required this.videoPlayerLoop,
|
required this.videoPlayerLoop,
|
||||||
required this.videoPlayerCover,
|
required this.videoPlayerCover,
|
||||||
@@ -94,6 +95,7 @@ class AppSettings {
|
|||||||
final String motionRefreshMode;
|
final String motionRefreshMode;
|
||||||
final bool autoBatterySaver60Hz;
|
final bool autoBatterySaver60Hz;
|
||||||
final bool videoPlayerMuted;
|
final bool videoPlayerMuted;
|
||||||
|
final double videoPlayerVolume;
|
||||||
final bool videoPlayerHalfVolume;
|
final bool videoPlayerHalfVolume;
|
||||||
final bool videoPlayerLoop;
|
final bool videoPlayerLoop;
|
||||||
final bool videoPlayerCover;
|
final bool videoPlayerCover;
|
||||||
@@ -146,6 +148,7 @@ class AppSettings {
|
|||||||
motionRefreshMode: 'auto',
|
motionRefreshMode: 'auto',
|
||||||
autoBatterySaver60Hz: true,
|
autoBatterySaver60Hz: true,
|
||||||
videoPlayerMuted: false,
|
videoPlayerMuted: false,
|
||||||
|
videoPlayerVolume: 100.0,
|
||||||
videoPlayerHalfVolume: false,
|
videoPlayerHalfVolume: false,
|
||||||
videoPlayerLoop: false,
|
videoPlayerLoop: false,
|
||||||
videoPlayerCover: false,
|
videoPlayerCover: false,
|
||||||
@@ -191,6 +194,7 @@ class AppSettings {
|
|||||||
String? motionRefreshMode,
|
String? motionRefreshMode,
|
||||||
bool? autoBatterySaver60Hz,
|
bool? autoBatterySaver60Hz,
|
||||||
bool? videoPlayerMuted,
|
bool? videoPlayerMuted,
|
||||||
|
double? videoPlayerVolume,
|
||||||
bool? videoPlayerHalfVolume,
|
bool? videoPlayerHalfVolume,
|
||||||
bool? videoPlayerLoop,
|
bool? videoPlayerLoop,
|
||||||
bool? videoPlayerCover,
|
bool? videoPlayerCover,
|
||||||
@@ -252,6 +256,7 @@ class AppSettings {
|
|||||||
motionRefreshMode: motionRefreshMode ?? this.motionRefreshMode,
|
motionRefreshMode: motionRefreshMode ?? this.motionRefreshMode,
|
||||||
autoBatterySaver60Hz: autoBatterySaver60Hz ?? this.autoBatterySaver60Hz,
|
autoBatterySaver60Hz: autoBatterySaver60Hz ?? this.autoBatterySaver60Hz,
|
||||||
videoPlayerMuted: videoPlayerMuted ?? this.videoPlayerMuted,
|
videoPlayerMuted: videoPlayerMuted ?? this.videoPlayerMuted,
|
||||||
|
videoPlayerVolume: videoPlayerVolume ?? this.videoPlayerVolume,
|
||||||
videoPlayerHalfVolume:
|
videoPlayerHalfVolume:
|
||||||
videoPlayerHalfVolume ?? this.videoPlayerHalfVolume,
|
videoPlayerHalfVolume ?? this.videoPlayerHalfVolume,
|
||||||
videoPlayerLoop: videoPlayerLoop ?? this.videoPlayerLoop,
|
videoPlayerLoop: videoPlayerLoop ?? this.videoPlayerLoop,
|
||||||
@@ -309,6 +314,7 @@ class AppSettings {
|
|||||||
'motionRefreshMode': motionRefreshMode,
|
'motionRefreshMode': motionRefreshMode,
|
||||||
'autoBatterySaver60Hz': autoBatterySaver60Hz,
|
'autoBatterySaver60Hz': autoBatterySaver60Hz,
|
||||||
'videoPlayerMuted': videoPlayerMuted,
|
'videoPlayerMuted': videoPlayerMuted,
|
||||||
|
'videoPlayerVolume': videoPlayerVolume,
|
||||||
'videoPlayerHalfVolume': videoPlayerHalfVolume,
|
'videoPlayerHalfVolume': videoPlayerHalfVolume,
|
||||||
'videoPlayerLoop': videoPlayerLoop,
|
'videoPlayerLoop': videoPlayerLoop,
|
||||||
'videoPlayerCover': videoPlayerCover,
|
'videoPlayerCover': videoPlayerCover,
|
||||||
@@ -392,6 +398,8 @@ class AppSettings {
|
|||||||
defaults.autoBatterySaver60Hz,
|
defaults.autoBatterySaver60Hz,
|
||||||
videoPlayerMuted:
|
videoPlayerMuted:
|
||||||
(json['videoPlayerMuted'] as bool?) ?? defaults.videoPlayerMuted,
|
(json['videoPlayerMuted'] as bool?) ?? defaults.videoPlayerMuted,
|
||||||
|
videoPlayerVolume: (json['videoPlayerVolume'] as num?)?.toDouble() ??
|
||||||
|
defaults.videoPlayerVolume,
|
||||||
videoPlayerHalfVolume: (json['videoPlayerHalfVolume'] as bool?) ??
|
videoPlayerHalfVolume: (json['videoPlayerHalfVolume'] as bool?) ??
|
||||||
defaults.videoPlayerHalfVolume,
|
defaults.videoPlayerHalfVolume,
|
||||||
videoPlayerLoop:
|
videoPlayerLoop:
|
||||||
@@ -601,6 +609,17 @@ class SettingsService {
|
|||||||
return updateSettings(settings.copyWith(videoPlaybackPositions: positions));
|
return updateSettings(settings.copyWith(videoPlaybackPositions: positions));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<Result<void>> setVideoPlayerVolume(double volume) async {
|
||||||
|
final result = await getSettings();
|
||||||
|
if (result is Error<AppSettings>) return Error(result.failure);
|
||||||
|
final settings = (result as Success<AppSettings>).data;
|
||||||
|
final clamped = volume.clamp(0.0, 100.0);
|
||||||
|
if ((settings.videoPlayerVolume - clamped).abs() < 0.01) {
|
||||||
|
return const Success(null);
|
||||||
|
}
|
||||||
|
return updateSettings(settings.copyWith(videoPlayerVolume: clamped));
|
||||||
|
}
|
||||||
|
|
||||||
Future<Result<void>> appendDiagnosticLog(String message) async {
|
Future<Result<void>> appendDiagnosticLog(String message) async {
|
||||||
final result = await getSettings();
|
final result = await getSettings();
|
||||||
if (result is Error<AppSettings>) return Error(result.failure);
|
if (result is Error<AppSettings>) return Error(result.failure);
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
@@ -191,11 +192,13 @@ class _ArtistPostsScreenState extends ConsumerState<ArtistPostsScreen> {
|
|||||||
if (_selectedTypes.isEmpty) return true;
|
if (_selectedTypes.isEmpty) return true;
|
||||||
final isVid = MediaUrlSelector.isVideo(post);
|
final isVid = MediaUrlSelector.isVideo(post);
|
||||||
final isGif = MediaUrlSelector.isGif(post);
|
final isGif = MediaUrlSelector.isGif(post);
|
||||||
final isPhoto = !isVid && !isGif;
|
final isText = post.fileType == 'text';
|
||||||
|
final isPhoto = !isVid && !isGif && !isText;
|
||||||
|
|
||||||
if (_selectedTypes.contains('video') && isVid) return true;
|
if (_selectedTypes.contains('video') && isVid) return true;
|
||||||
if (_selectedTypes.contains('gif') && isGif) return true;
|
if (_selectedTypes.contains('gif') && isGif) return true;
|
||||||
if (_selectedTypes.contains('photo') && isPhoto) return true;
|
if (_selectedTypes.contains('photo') && isPhoto) return true;
|
||||||
|
if (_selectedTypes.contains('text') && isText) return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -205,68 +208,217 @@ class _ArtistPostsScreenState extends ConsumerState<ArtistPostsScreen> {
|
|||||||
context: context,
|
context: context,
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
showDragHandle: true,
|
showDragHandle: true,
|
||||||
|
backgroundColor: theme.colorScheme.surface,
|
||||||
|
shape: const RoundedRectangleBorder(
|
||||||
|
borderRadius: BorderRadius.vertical(top: Radius.circular(24)),
|
||||||
|
),
|
||||||
builder: (ctx) => DraggableScrollableSheet(
|
builder: (ctx) => DraggableScrollableSheet(
|
||||||
expand: false,
|
expand: false,
|
||||||
initialChildSize: 0.6,
|
initialChildSize: 0.65,
|
||||||
maxChildSize: 0.9,
|
maxChildSize: 0.92,
|
||||||
builder: (_, scroll) => Column(
|
builder: (_, scroll) => Column(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 8),
|
padding: const EdgeInsets.fromLTRB(20, 4, 16, 12),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Icon(Icons.campaign_rounded, color: theme.colorScheme.primary),
|
Container(
|
||||||
const SizedBox(width: 10),
|
width: 44,
|
||||||
|
height: 44,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: theme.colorScheme.primaryContainer,
|
||||||
|
borderRadius: BorderRadius.circular(14),
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.campaign_rounded,
|
||||||
|
color: theme.colorScheme.onPrimaryContainer,
|
||||||
|
size: 24,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 14),
|
||||||
|
Expanded(
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'Анонсы автора (${_announcements.length})',
|
'Личные сообщения и анонсы',
|
||||||
style: theme.textTheme.titleMedium?.copyWith(
|
style: theme.textTheme.titleMedium?.copyWith(
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
|
letterSpacing: -0.2,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 2),
|
||||||
|
Text(
|
||||||
|
'${widget.artistName} • ${widget.service.toUpperCase()}',
|
||||||
|
style: theme.textTheme.bodySmall?.copyWith(
|
||||||
|
color: theme.colorScheme.onSurfaceVariant,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
padding:
|
||||||
|
const EdgeInsets.symmetric(horizontal: 10, vertical: 5),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: theme.colorScheme.secondaryContainer,
|
||||||
|
borderRadius: BorderRadius.circular(20),
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
'${_announcements.length}',
|
||||||
|
style: TextStyle(
|
||||||
|
color: theme.colorScheme.onSecondaryContainer,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
fontSize: 12,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const Divider(),
|
Divider(
|
||||||
|
height: 1,
|
||||||
|
color: theme.colorScheme.outlineVariant.withValues(alpha: 0.4),
|
||||||
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: ListView.separated(
|
child: _announcements.isEmpty
|
||||||
controller: scroll,
|
? Center(
|
||||||
padding: const EdgeInsets.all(16),
|
child: Column(
|
||||||
itemCount: _announcements.length,
|
mainAxisSize: MainAxisSize.min,
|
||||||
separatorBuilder: (_, __) => const Divider(height: 24),
|
|
||||||
itemBuilder: (context, index) {
|
|
||||||
final a = _announcements[index];
|
|
||||||
final cleanContent = CloudLinkExtractor.cleanCommentary(a.content);
|
|
||||||
final detectedCloudLinks = CloudLinkExtractor.extractLinks(content: a.content);
|
|
||||||
final creatorLinks = CreatorLink.extractLinks(a.content);
|
|
||||||
|
|
||||||
return Column(
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
children: [
|
||||||
if (a.added != null)
|
Icon(
|
||||||
|
Icons.mark_email_read_outlined,
|
||||||
|
size: 48,
|
||||||
|
color: theme.colorScheme.outline,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 12),
|
||||||
Text(
|
Text(
|
||||||
'${a.added!.year}-${a.added!.month.toString().padLeft(2, '0')}-${a.added!.day.toString().padLeft(2, '0')}',
|
'Нет сообщений или рассылок',
|
||||||
style: TextStyle(
|
style: theme.textTheme.titleSmall?.copyWith(
|
||||||
fontSize: 12,
|
color: theme.colorScheme.onSurfaceVariant,
|
||||||
color: theme.colorScheme.primary,
|
|
||||||
fontWeight: FontWeight.w600,
|
fontWeight: FontWeight.w600,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 6),
|
],
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: ListView.separated(
|
||||||
|
controller: scroll,
|
||||||
|
padding: const EdgeInsets.fromLTRB(16, 16, 16, 24),
|
||||||
|
itemCount: _announcements.length,
|
||||||
|
separatorBuilder: (_, __) => const SizedBox(height: 12),
|
||||||
|
itemBuilder: (context, index) {
|
||||||
|
final a = _announcements[index];
|
||||||
|
final cleanContent =
|
||||||
|
CloudLinkExtractor.cleanCommentary(a.content);
|
||||||
|
final detectedCloudLinks =
|
||||||
|
CloudLinkExtractor.extractLinks(content: a.content);
|
||||||
|
final creatorLinks =
|
||||||
|
CreatorLink.extractLinks(a.content);
|
||||||
|
final displayContent = cleanContent.isNotEmpty
|
||||||
|
? cleanContent
|
||||||
|
: a.content;
|
||||||
|
|
||||||
|
return Container(
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: theme.colorScheme.surfaceContainer,
|
||||||
|
borderRadius: BorderRadius.circular(18),
|
||||||
|
border: Border.all(
|
||||||
|
color: theme.colorScheme.outlineVariant
|
||||||
|
.withValues(alpha: 0.45),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
padding: const EdgeInsets.all(16),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
horizontal: 8,
|
||||||
|
vertical: 3,
|
||||||
|
),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: theme.colorScheme.primary
|
||||||
|
.withValues(alpha: 0.12),
|
||||||
|
borderRadius: BorderRadius.circular(8),
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
(a.service.isNotEmpty
|
||||||
|
? a.service
|
||||||
|
: widget.service)
|
||||||
|
.toUpperCase(),
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 11,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: theme.colorScheme.primary,
|
||||||
|
letterSpacing: 0.5,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
if (a.added != null) ...[
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
Icon(
|
||||||
|
Icons.access_time_rounded,
|
||||||
|
size: 13,
|
||||||
|
color: theme.colorScheme.onSurfaceVariant,
|
||||||
|
),
|
||||||
|
const SizedBox(width: 4),
|
||||||
|
Text(
|
||||||
|
'${a.added!.day.toString().padLeft(2, '0')}.${a.added!.month.toString().padLeft(2, '0')}.${a.added!.year} ${a.added!.hour.toString().padLeft(2, '0')}:${a.added!.minute.toString().padLeft(2, '0')}',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 11.5,
|
||||||
|
color:
|
||||||
|
theme.colorScheme.onSurfaceVariant,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
const Spacer(),
|
||||||
|
IconButton(
|
||||||
|
icon: const Icon(Icons.copy_rounded,
|
||||||
|
size: 17),
|
||||||
|
tooltip: 'Скопировать текст',
|
||||||
|
visualDensity: VisualDensity.compact,
|
||||||
|
padding: EdgeInsets.zero,
|
||||||
|
constraints: const BoxConstraints(),
|
||||||
|
onPressed: () {
|
||||||
|
Clipboard.setData(
|
||||||
|
ClipboardData(text: displayContent),
|
||||||
|
);
|
||||||
|
ScaffoldMessenger.of(context)
|
||||||
|
.showSnackBar(
|
||||||
|
const SnackBar(
|
||||||
|
content:
|
||||||
|
Text('Текст сообщения скопирован'),
|
||||||
|
duration: Duration(seconds: 2),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10),
|
||||||
FormattedContentText(
|
FormattedContentText(
|
||||||
text: cleanContent.isNotEmpty ? cleanContent : a.content,
|
text: displayContent,
|
||||||
style: theme.textTheme.bodyMedium?.copyWith(
|
style: theme.textTheme.bodyMedium?.copyWith(
|
||||||
height: 1.45,
|
height: 1.5,
|
||||||
|
letterSpacing: 0.15,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (creatorLinks.isNotEmpty) ...[
|
if (creatorLinks.isNotEmpty) ...[
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 12),
|
||||||
CreatorLinkChips(
|
CreatorLinkChips(
|
||||||
links: creatorLinks,
|
links: creatorLinks,
|
||||||
title: 'Ссылки автора',
|
title: 'Ссылки из сообщения',
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
if (detectedCloudLinks.isNotEmpty) ...[
|
if (detectedCloudLinks.isNotEmpty) ...[
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 12),
|
||||||
Wrap(
|
Wrap(
|
||||||
spacing: 8,
|
spacing: 8,
|
||||||
runSpacing: 6,
|
runSpacing: 6,
|
||||||
@@ -278,7 +430,9 @@ class _ArtistPostsScreenState extends ConsumerState<ArtistPostsScreen> {
|
|||||||
color: link.brandColor,
|
color: link.brandColor,
|
||||||
),
|
),
|
||||||
label: Text(
|
label: Text(
|
||||||
link.title.isNotEmpty ? link.title : link.serviceName,
|
link.title.isNotEmpty
|
||||||
|
? link.title
|
||||||
|
: link.serviceName,
|
||||||
style: const TextStyle(fontSize: 12),
|
style: const TextStyle(fontSize: 12),
|
||||||
),
|
),
|
||||||
onPressed: () => launchUrl(
|
onPressed: () => launchUrl(
|
||||||
@@ -290,6 +444,7 @@ class _ArtistPostsScreenState extends ConsumerState<ArtistPostsScreen> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@@ -303,10 +458,14 @@ class _ArtistPostsScreenState extends ConsumerState<ArtistPostsScreen> {
|
|||||||
Widget _buildMediaTypeFilters() {
|
Widget _buildMediaTypeFilters() {
|
||||||
final scheme = Theme.of(context).colorScheme;
|
final scheme = Theme.of(context).colorScheme;
|
||||||
final photoCount = _posts
|
final photoCount = _posts
|
||||||
.where((p) => !MediaUrlSelector.isVideo(p) && !MediaUrlSelector.isGif(p))
|
.where((p) =>
|
||||||
|
p.fileType != 'text' &&
|
||||||
|
!MediaUrlSelector.isVideo(p) &&
|
||||||
|
!MediaUrlSelector.isGif(p))
|
||||||
.length;
|
.length;
|
||||||
final videoCount = _posts.where(MediaUrlSelector.isVideo).length;
|
final videoCount = _posts.where(MediaUrlSelector.isVideo).length;
|
||||||
final gifCount = _posts.where(MediaUrlSelector.isGif).length;
|
final gifCount = _posts.where(MediaUrlSelector.isGif).length;
|
||||||
|
final textCount = _posts.where((p) => p.fileType == 'text').length;
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.fromLTRB(16, 6, 16, 4),
|
padding: const EdgeInsets.fromLTRB(16, 6, 16, 4),
|
||||||
@@ -376,6 +535,27 @@ class _ArtistPostsScreenState extends ConsumerState<ArtistPostsScreen> {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
if (textCount > 0) ...[
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
FilterChip(
|
||||||
|
selected: _selectedTypes.contains('text'),
|
||||||
|
avatar: Icon(Icons.article_outlined,
|
||||||
|
size: 16,
|
||||||
|
color: _selectedTypes.contains('text')
|
||||||
|
? scheme.onPrimaryContainer
|
||||||
|
: scheme.onSurfaceVariant),
|
||||||
|
label: Text('Текст ($textCount)'),
|
||||||
|
onSelected: (selected) {
|
||||||
|
setState(() {
|
||||||
|
if (selected) {
|
||||||
|
_selectedTypes.add('text');
|
||||||
|
} else {
|
||||||
|
_selectedTypes.remove('text');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -374,7 +374,11 @@ class _FeedScreenState extends ConsumerState<FeedScreen>
|
|||||||
void _submitSearch(String query) {
|
void _submitSearch(String query) {
|
||||||
final trimmed = query.trim();
|
final trimmed = query.trim();
|
||||||
if (trimmed.isEmpty) {
|
if (trimmed.isEmpty) {
|
||||||
_clearFilters();
|
if (widget.initialQuery != null) {
|
||||||
|
context.go('/');
|
||||||
|
} else {
|
||||||
|
_applySearchQuery('');
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final location = '/?q=${Uri.encodeQueryComponent(trimmed)}';
|
final location = '/?q=${Uri.encodeQueryComponent(trimmed)}';
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ class _FeedToolbarState extends State<FeedToolbar> {
|
|||||||
},
|
},
|
||||||
onCleared: () {
|
onCleared: () {
|
||||||
_query = '';
|
_query = '';
|
||||||
widget.onClearFilters();
|
widget.onSearch('');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -235,7 +235,7 @@ class _FeedToolbarState extends State<FeedToolbar> {
|
|||||||
},
|
},
|
||||||
onCleared: () {
|
onCleared: () {
|
||||||
_query = '';
|
_query = '';
|
||||||
widget.onClearFilters();
|
widget.onSearch('');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ import '../../../shared/widgets/rating_badge.dart';
|
|||||||
import '../../collections/presentation/collection_form_dialog.dart';
|
import '../../collections/presentation/collection_form_dialog.dart';
|
||||||
import '../../favorites/presentation/favorites_controller.dart';
|
import '../../favorites/presentation/favorites_controller.dart';
|
||||||
import '../../feed/presentation/feed_controller.dart';
|
import '../../feed/presentation/feed_controller.dart';
|
||||||
|
import '../../settings/presentation/settings_controller.dart';
|
||||||
import '../../viewed/presentation/viewed_controller.dart';
|
import '../../viewed/presentation/viewed_controller.dart';
|
||||||
import 'post_details_controller.dart';
|
import 'post_details_controller.dart';
|
||||||
import 'widgets/cloud_mirrors_card.dart';
|
import 'widgets/cloud_mirrors_card.dart';
|
||||||
@@ -249,6 +250,10 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
initialCoverVideo: settings.videoPlayerCover,
|
initialCoverVideo: settings.videoPlayerCover,
|
||||||
initialHalfVolume:
|
initialHalfVolume:
|
||||||
settings.videoPlayerHalfVolume,
|
settings.videoPlayerHalfVolume,
|
||||||
|
initialVolume: settings.videoPlayerVolume,
|
||||||
|
onVolumeChanged: (vol) => ref
|
||||||
|
.read(settingsControllerProvider.notifier)
|
||||||
|
.setVideoPlayerVolume(vol),
|
||||||
onPlaybackSnapshot: (snapshot) =>
|
onPlaybackSnapshot: (snapshot) =>
|
||||||
_saveVideoSnapshot(ref, post, snapshot),
|
_saveVideoSnapshot(ref, post, snapshot),
|
||||||
onPlaybackPreferencesChanged: (snapshot) =>
|
onPlaybackPreferencesChanged: (snapshot) =>
|
||||||
@@ -278,6 +283,10 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
initialCoverVideo: settings.videoPlayerCover,
|
initialCoverVideo: settings.videoPlayerCover,
|
||||||
initialHalfVolume:
|
initialHalfVolume:
|
||||||
settings.videoPlayerHalfVolume,
|
settings.videoPlayerHalfVolume,
|
||||||
|
initialVolume: settings.videoPlayerVolume,
|
||||||
|
onVolumeChanged: (vol) => ref
|
||||||
|
.read(settingsControllerProvider.notifier)
|
||||||
|
.setVideoPlayerVolume(vol),
|
||||||
onPlaybackSnapshot: (snapshot) =>
|
onPlaybackSnapshot: (snapshot) =>
|
||||||
_saveVideoSnapshot(ref, post, snapshot),
|
_saveVideoSnapshot(ref, post, snapshot),
|
||||||
onPlaybackPreferencesChanged: (snapshot) =>
|
onPlaybackPreferencesChanged: (snapshot) =>
|
||||||
@@ -392,6 +401,7 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
_CommentsSection(post: post),
|
_CommentsSection(post: post),
|
||||||
|
const SizedBox(height: 80),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -436,7 +446,12 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
if ((details.primaryVelocity ?? 0) > 900) _close(context);
|
if ((details.primaryVelocity ?? 0) > 900) _close(context);
|
||||||
},
|
},
|
||||||
child: ListView(
|
child: ListView(
|
||||||
padding: const EdgeInsets.fromLTRB(8, 8, 8, 16),
|
padding: EdgeInsets.fromLTRB(
|
||||||
|
8,
|
||||||
|
8,
|
||||||
|
8,
|
||||||
|
120 + MediaQuery.paddingOf(context).bottom,
|
||||||
|
),
|
||||||
children: [
|
children: [
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
behavior: HitTestBehavior.deferToChild,
|
behavior: HitTestBehavior.deferToChild,
|
||||||
@@ -473,6 +488,10 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
initialMuted: settings.videoPlayerMuted,
|
initialMuted: settings.videoPlayerMuted,
|
||||||
initialCoverVideo: settings.videoPlayerCover,
|
initialCoverVideo: settings.videoPlayerCover,
|
||||||
initialHalfVolume: settings.videoPlayerHalfVolume,
|
initialHalfVolume: settings.videoPlayerHalfVolume,
|
||||||
|
initialVolume: settings.videoPlayerVolume,
|
||||||
|
onVolumeChanged: (vol) => ref
|
||||||
|
.read(settingsControllerProvider.notifier)
|
||||||
|
.setVideoPlayerVolume(vol),
|
||||||
onPlaybackSnapshot: (snapshot) =>
|
onPlaybackSnapshot: (snapshot) =>
|
||||||
_saveVideoSnapshot(ref, post, snapshot),
|
_saveVideoSnapshot(ref, post, snapshot),
|
||||||
onPlaybackPreferencesChanged: (snapshot) =>
|
onPlaybackPreferencesChanged: (snapshot) =>
|
||||||
@@ -503,6 +522,10 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
initialMuted: settings.videoPlayerMuted,
|
initialMuted: settings.videoPlayerMuted,
|
||||||
initialCoverVideo: settings.videoPlayerCover,
|
initialCoverVideo: settings.videoPlayerCover,
|
||||||
initialHalfVolume: settings.videoPlayerHalfVolume,
|
initialHalfVolume: settings.videoPlayerHalfVolume,
|
||||||
|
initialVolume: settings.videoPlayerVolume,
|
||||||
|
onVolumeChanged: (vol) => ref
|
||||||
|
.read(settingsControllerProvider.notifier)
|
||||||
|
.setVideoPlayerVolume(vol),
|
||||||
onPlaybackSnapshot: (snapshot) =>
|
onPlaybackSnapshot: (snapshot) =>
|
||||||
_saveVideoSnapshot(ref, post, snapshot),
|
_saveVideoSnapshot(ref, post, snapshot),
|
||||||
onPlaybackPreferencesChanged: (snapshot) =>
|
onPlaybackPreferencesChanged: (snapshot) =>
|
||||||
@@ -609,6 +632,7 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
_CommentsSection(post: post),
|
_CommentsSection(post: post),
|
||||||
|
const SizedBox(height: 24),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
@@ -855,7 +879,8 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
if (settings.videoPlayerMuted == snapshot.muted &&
|
if (settings.videoPlayerMuted == snapshot.muted &&
|
||||||
settings.videoPlayerHalfVolume == snapshot.halfVolume &&
|
settings.videoPlayerHalfVolume == snapshot.halfVolume &&
|
||||||
settings.videoPlayerLoop == snapshot.loopVideo &&
|
settings.videoPlayerLoop == snapshot.loopVideo &&
|
||||||
settings.videoPlayerCover == snapshot.coverVideo) {
|
settings.videoPlayerCover == snapshot.coverVideo &&
|
||||||
|
(settings.videoPlayerVolume - snapshot.volume).abs() < 0.01) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await ref.read(settingsServiceProvider).updateSettings(
|
await ref.read(settingsServiceProvider).updateSettings(
|
||||||
@@ -864,6 +889,7 @@ class PostDetailsScreen extends ConsumerWidget {
|
|||||||
videoPlayerHalfVolume: snapshot.halfVolume,
|
videoPlayerHalfVolume: snapshot.halfVolume,
|
||||||
videoPlayerLoop: snapshot.loopVideo,
|
videoPlayerLoop: snapshot.loopVideo,
|
||||||
videoPlayerCover: snapshot.coverVideo,
|
videoPlayerCover: snapshot.coverVideo,
|
||||||
|
videoPlayerVolume: snapshot.volume,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
ref.invalidate(appSettingsProvider);
|
ref.invalidate(appSettingsProvider);
|
||||||
@@ -1160,7 +1186,7 @@ class _CommentsSectionState extends ConsumerState<_CommentsSection> {
|
|||||||
),
|
),
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
child: ExpansionTile(
|
child: ExpansionTile(
|
||||||
tilePadding: const EdgeInsets.symmetric(horizontal: 14, vertical: 2),
|
tilePadding: const EdgeInsets.symmetric(horizontal: 16, vertical: 6),
|
||||||
childrenPadding: const EdgeInsets.fromLTRB(14, 0, 14, 14),
|
childrenPadding: const EdgeInsets.fromLTRB(14, 0, 14, 14),
|
||||||
initiallyExpanded: false,
|
initiallyExpanded: false,
|
||||||
shape: const Border(),
|
shape: const Border(),
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -23,6 +23,16 @@ class SettingsController extends AsyncNotifier<AppSettings> {
|
|||||||
ref.invalidate(appSettingsProvider);
|
ref.invalidate(appSettingsProvider);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> setVideoPlayerVolume(double volume) async {
|
||||||
|
final current = state.value ?? AppSettings.defaults;
|
||||||
|
final clamped = volume.clamp(0.0, 100.0);
|
||||||
|
if ((current.videoPlayerVolume - clamped).abs() < 0.01) return;
|
||||||
|
final updated = current.copyWith(videoPlayerVolume: clamped);
|
||||||
|
state = AsyncData(updated);
|
||||||
|
await ref.read(settingsServiceProvider).setVideoPlayerVolume(clamped);
|
||||||
|
ref.invalidate(appSettingsProvider);
|
||||||
|
}
|
||||||
|
|
||||||
Future<void> clearCache() async {
|
Future<void> clearCache() async {
|
||||||
await ref.read(cacheServiceProvider).clear();
|
await ref.read(cacheServiceProvider).clear();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -167,8 +167,10 @@ class _TagInputSearchBarState extends State<TagInputSearchBar> {
|
|||||||
void _scrollToEnd() {
|
void _scrollToEnd() {
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
if (_tagScrollController.hasClients) {
|
if (_tagScrollController.hasClients) {
|
||||||
|
final max = _tagScrollController.position.maxScrollExtent;
|
||||||
|
final target = (max - 40).clamp(0.0, max);
|
||||||
_tagScrollController.animateTo(
|
_tagScrollController.animateTo(
|
||||||
_tagScrollController.position.maxScrollExtent,
|
target,
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 200),
|
||||||
curve: Curves.easeOut,
|
curve: Curves.easeOut,
|
||||||
);
|
);
|
||||||
@@ -286,8 +288,8 @@ class _TagInputSearchBarState extends State<TagInputSearchBar> {
|
|||||||
const SizedBox(width: 6),
|
const SizedBox(width: 6),
|
||||||
],
|
],
|
||||||
ConstrainedBox(
|
ConstrainedBox(
|
||||||
constraints: const BoxConstraints(
|
constraints: BoxConstraints(
|
||||||
minWidth: 120,
|
minWidth: _tags.isEmpty ? 120 : 64,
|
||||||
maxWidth: 300,
|
maxWidth: 300,
|
||||||
),
|
),
|
||||||
child: Focus(
|
child: Focus(
|
||||||
|
|||||||
@@ -117,9 +117,14 @@ class _PostCardState extends ConsumerState<PostCard>
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final post = _resolvedPost ?? widget.post;
|
final post = _resolvedPost ?? widget.post;
|
||||||
final sensitive = _isSensitive(post.rating);
|
final sensitive = _isSensitive(post.rating);
|
||||||
|
final isTextPost = post.fileType == 'text' ||
|
||||||
|
(post.previewUrl.trim().isEmpty &&
|
||||||
|
post.sampleUrl.trim().isEmpty &&
|
||||||
|
post.fileUrl.trim().isEmpty &&
|
||||||
|
!MediaUrlSelector.isVideo(post));
|
||||||
final aspect = post.width > 0 && post.height > 0
|
final aspect = post.width > 0 && post.height > 0
|
||||||
? post.width / post.height
|
? post.width / post.height
|
||||||
: _fallbackAspect(post.fileType);
|
: _fallbackAspect(isTextPost ? 'text' : post.fileType);
|
||||||
final mobile = MediaQuery.sizeOf(context).width < 700;
|
final mobile = MediaQuery.sizeOf(context).width < 700;
|
||||||
final urls = _feedUrls(post, mobile: mobile);
|
final urls = _feedUrls(post, mobile: mobile);
|
||||||
final imageUrl = urls.isEmpty ? post.previewUrl : urls.first;
|
final imageUrl = urls.isEmpty ? post.previewUrl : urls.first;
|
||||||
@@ -202,6 +207,12 @@ class _PostCardState extends ConsumerState<PostCard>
|
|||||||
enabled: widget.blurExplicit && sensitive,
|
enabled: widget.blurExplicit && sensitive,
|
||||||
child: LayoutBuilder(
|
child: LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
|
if (isTextPost) {
|
||||||
|
return _TextPostCardPreview(
|
||||||
|
post: post,
|
||||||
|
hovered: _hovered && !mobile,
|
||||||
|
);
|
||||||
|
}
|
||||||
final dpr = MediaQuery.devicePixelRatioOf(context);
|
final dpr = MediaQuery.devicePixelRatioOf(context);
|
||||||
final cacheWidth =
|
final cacheWidth =
|
||||||
(constraints.maxWidth * dpr).round().clamp(320, 1800);
|
(constraints.maxWidth * dpr).round().clamp(320, 1800);
|
||||||
@@ -239,7 +250,8 @@ class _PostCardState extends ConsumerState<PostCard>
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// Bottom cinematic gradient overlay for badges and favorite
|
// Bottom cinematic gradient overlay for badges and favorite (only on media posts)
|
||||||
|
if (!isTextPost)
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
@@ -269,11 +281,14 @@ class _PostCardState extends ConsumerState<PostCard>
|
|||||||
if (post.fileType.toLowerCase().contains('video') ||
|
if (post.fileType.toLowerCase().contains('video') ||
|
||||||
post.fileType.toLowerCase().contains('webm') ||
|
post.fileType.toLowerCase().contains('webm') ||
|
||||||
post.fileType.toLowerCase().contains('mp4') ||
|
post.fileType.toLowerCase().contains('mp4') ||
|
||||||
post.fileType.toLowerCase().contains('gif'))
|
post.fileType.toLowerCase().contains('gif') ||
|
||||||
|
isTextPost)
|
||||||
Positioned(
|
Positioned(
|
||||||
right: 8,
|
right: 8,
|
||||||
top: 8,
|
top: 8,
|
||||||
child: _MediaBadge(fileType: post.fileType),
|
child: _MediaBadge(
|
||||||
|
fileType: isTextPost ? 'text' : post.fileType,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 8,
|
left: 8,
|
||||||
@@ -434,6 +449,7 @@ class _PostCardState extends ConsumerState<PostCard>
|
|||||||
|
|
||||||
double _fallbackAspect(String fileType) {
|
double _fallbackAspect(String fileType) {
|
||||||
final normalized = fileType.toLowerCase();
|
final normalized = fileType.toLowerCase();
|
||||||
|
if (normalized == 'text') return 0.95;
|
||||||
if (normalized.contains('video') || normalized.contains('webm')) {
|
if (normalized.contains('video') || normalized.contains('webm')) {
|
||||||
return 16 / 9;
|
return 16 / 9;
|
||||||
}
|
}
|
||||||
@@ -596,6 +612,8 @@ class _FeedVideoPreviewState extends State<_FeedVideoPreview> {
|
|||||||
controller: _controller,
|
controller: _controller,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
controls: null,
|
controls: null,
|
||||||
|
pauseUponEnteringBackgroundMode: false,
|
||||||
|
resumeUponEnteringForegroundMode: false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -773,7 +791,7 @@ class _MediaBadge extends StatelessWidget {
|
|||||||
Icon(_icon(type), size: 13, color: Colors.white),
|
Icon(_icon(type), size: 13, color: Colors.white),
|
||||||
const SizedBox(width: 3.5),
|
const SizedBox(width: 3.5),
|
||||||
Text(
|
Text(
|
||||||
type,
|
_label(type),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 10.5,
|
fontSize: 10.5,
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
@@ -794,14 +812,159 @@ class _MediaBadge extends StatelessWidget {
|
|||||||
return 'video';
|
return 'video';
|
||||||
}
|
}
|
||||||
if (value.contains('gif')) return 'gif';
|
if (value.contains('gif')) return 'gif';
|
||||||
|
if (value.contains('text')) return 'text';
|
||||||
return 'photo';
|
return 'photo';
|
||||||
}
|
}
|
||||||
|
|
||||||
IconData _icon(String type) => switch (type) {
|
IconData _icon(String type) => switch (type) {
|
||||||
'video' => Icons.play_arrow_rounded,
|
'video' => Icons.play_arrow_rounded,
|
||||||
'gif' => Icons.gif_box_rounded,
|
'gif' => Icons.gif_box_rounded,
|
||||||
|
'text' => Icons.article_rounded,
|
||||||
_ => Icons.image_rounded,
|
_ => Icons.image_rounded,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
String _label(String type) => switch (type) {
|
||||||
|
'video' => 'VIDEO',
|
||||||
|
'gif' => 'GIF',
|
||||||
|
'text' => 'ТЕКСТ',
|
||||||
|
_ => 'PHOTO',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
class _TextPostCardPreview extends StatelessWidget {
|
||||||
|
const _TextPostCardPreview({
|
||||||
|
required this.post,
|
||||||
|
required this.hovered,
|
||||||
|
});
|
||||||
|
|
||||||
|
final Post post;
|
||||||
|
final bool hovered;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final theme = Theme.of(context);
|
||||||
|
final title = (post.title ?? '').trim();
|
||||||
|
final cleanContent =
|
||||||
|
CloudLinkExtractor.cleanCommentary(post.description ?? '');
|
||||||
|
final hasTitle = title.isNotEmpty;
|
||||||
|
final snippet = cleanContent.isNotEmpty
|
||||||
|
? cleanContent
|
||||||
|
: (hasTitle ? '' : 'Текстовая публикация автора без вложений');
|
||||||
|
final cloudCount = post.cloudLinks.length;
|
||||||
|
|
||||||
|
return Container(
|
||||||
|
padding: const EdgeInsets.fromLTRB(14, 14, 14, 14),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
gradient: LinearGradient(
|
||||||
|
begin: Alignment.topLeft,
|
||||||
|
end: Alignment.bottomRight,
|
||||||
|
colors: [
|
||||||
|
theme.colorScheme.surfaceContainerHigh,
|
||||||
|
theme.colorScheme.surfaceContainer,
|
||||||
|
],
|
||||||
|
),
|
||||||
|
border: Border.all(
|
||||||
|
color: hovered
|
||||||
|
? theme.colorScheme.primary.withValues(alpha: 0.5)
|
||||||
|
: theme.colorScheme.outlineVariant.withValues(alpha: 0.35),
|
||||||
|
width: 1,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
|
children: [
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
padding: const EdgeInsets.all(5),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: theme.colorScheme.primary.withValues(alpha: 0.14),
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.notes_rounded,
|
||||||
|
size: 15,
|
||||||
|
color: theme.colorScheme.primary,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
Expanded(
|
||||||
|
child: Text(
|
||||||
|
'${post.createdAt.day.toString().padLeft(2, '0')}.${post.createdAt.month.toString().padLeft(2, '0')}.${post.createdAt.year}',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 11,
|
||||||
|
color: theme.colorScheme.onSurfaceVariant,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
const SizedBox(height: 10),
|
||||||
|
if (hasTitle) ...[
|
||||||
|
Text(
|
||||||
|
title,
|
||||||
|
maxLines: 2,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
style: theme.textTheme.titleSmall?.copyWith(
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
height: 1.25,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 6),
|
||||||
|
],
|
||||||
|
if (snippet.isNotEmpty)
|
||||||
|
Expanded(
|
||||||
|
child: Text(
|
||||||
|
snippet,
|
||||||
|
maxLines: hasTitle ? 5 : 7,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
style: theme.textTheme.bodySmall?.copyWith(
|
||||||
|
color: theme.colorScheme.onSurfaceVariant,
|
||||||
|
height: 1.42,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
else
|
||||||
|
const Spacer(),
|
||||||
|
if (cloudCount > 0) ...[
|
||||||
|
const SizedBox(height: 6),
|
||||||
|
Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
padding:
|
||||||
|
const EdgeInsets.symmetric(horizontal: 7, vertical: 3),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: theme.colorScheme.primaryContainer,
|
||||||
|
borderRadius: BorderRadius.circular(6),
|
||||||
|
),
|
||||||
|
child: Row(
|
||||||
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
children: [
|
||||||
|
Icon(
|
||||||
|
Icons.cloud_download_outlined,
|
||||||
|
size: 12,
|
||||||
|
color: theme.colorScheme.onPrimaryContainer,
|
||||||
|
),
|
||||||
|
const SizedBox(width: 4),
|
||||||
|
Text(
|
||||||
|
'Вложения ($cloudCount)',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 10,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
color: theme.colorScheme.onPrimaryContainer,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class _SeenBadge extends StatelessWidget {
|
class _SeenBadge extends StatelessWidget {
|
||||||
|
|||||||
+4
-4
@@ -899,18 +899,18 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: screen_brightness_android
|
name: screen_brightness_android
|
||||||
sha256: "2df5e0488a22a73271a43d92dbcd80643df6910cf69690faacaf9929ae9ade3b"
|
sha256: "2008ad8e9527cc968f7a4de1ec58b476d495b3c612a149dbd6550c4f046da147"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.4"
|
version: "2.1.6"
|
||||||
screen_brightness_platform_interface:
|
screen_brightness_platform_interface:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: screen_brightness_platform_interface
|
name: screen_brightness_platform_interface
|
||||||
sha256: "59d50850d6735d677780fc7359c8e997d0ff6df91c8465161c9e617a7b0a11d8"
|
sha256: "2de60c0ba569b898950029cc1f7e9dd72bda44a22beb5054aac331cb6fce2ff2"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.1"
|
version: "2.1.2"
|
||||||
share_plus:
|
share_plus:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
+1
-2
@@ -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.4+65
|
version: 3.3.0+72
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.3.0 <4.0.0"
|
sdk: ">=3.3.0 <4.0.0"
|
||||||
@@ -33,7 +33,6 @@ dependencies:
|
|||||||
media_kit_libs_android_video: ^1.3.8
|
media_kit_libs_android_video: ^1.3.8
|
||||||
share_plus: ^10.0.0
|
share_plus: ^10.0.0
|
||||||
dynamic_color: ^1.7.0
|
dynamic_color: ^1.7.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|||||||
Reference in New Issue
Block a user