mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-28 01:58:50 +05:00
185980083a2e488c329e4c02240982fce920d38c
Added extensive logging throughout DownloadsProvider and DownloadsScreen to diagnose why downloads screen appears empty. DownloadsProvider.refreshDownloads(): - 📥 Log function call - 📥 Log state changes (loading, error) - 📥 Log TorrentPlatformService.getAllDownloads() call - 📥 Log number of torrents received - 📥 Log each torrent processing with index - 📥 Log success/failure for each torrent info fetch - 📥 Log final torrents count - 📥 Log completion or error state DownloadsScreen.initState() and Consumer: - 📥 Log initState call - 📥 Log postFrameCallback execution - 📥 Log Consumer builder invocations - 📥 Log provider state (isLoading, error, torrents.length) - 📥 Log which UI is displayed: * CircularProgressIndicator * ErrorDisplay * Empty state message * Torrent list with count All logs prefixed with 📥 for easy filtering in logcat. Example output: --- 📥 DownloadsScreen: initState() called 📥 DownloadsScreen: postFrameCallback, calling refreshDownloads() 📥 DownloadsProvider: refreshDownloads() called 📥 Setting loading=true, error=null 📥 Calling TorrentPlatformService.getAllDownloads()... 📥 Got 0 torrents from platform service 📥 Cleared _torrents list 📥 Final torrents count: 0 📥 Setting loading=false 📥 ✅ refreshDownloads() completed successfully 📥 DownloadsScreen: Consumer builder called 📥 isLoading: false 📥 error: null 📥 torrents.length: 0 📥 → Showing empty state This will help identify: - Is refreshDownloads being called? - Does TorrentPlatformService return any data? - Are torrents parsed correctly? - Is the correct UI state shown? - Where does the process fail? Usage: Run app → Open Downloads screen → Check logcat for 📥 logs
NeoMovies Mobile 🎬
Мобильное приложение для просмотра фильмов и сериалов, созданное на Flutter.
Возможности
- 📱 Кроссплатформенное приложение (Android/iOS(пока не реализовано))
- 🎥 Просмотр фильмов и сериалов через WebView
- 🌙 Поддержка динамической темы
- 💾 Локальное кэширование данных
- 🔒 Безопасное хранение данных
- 🚀 Быстрая загрузка контента
- 🎨 Современный Material Design интерфейс
Технологии
- Flutter - основной фреймворк
- Provider - управление состоянием
- Hive - локальная база данных
- HTTP - сетевые запросы
- WebView - воспроизведение видео
- Cached Network Image - кэширование изображений
- Google Fonts - красивые шрифты
Установка
- Клонируйте репозиторий:
git clone https://gitlab.com/foxixus/neomovies_mobile.git
cd neomovies_mobile
- Установите зависимости:
flutter pub get
- Создайте файл
.envв корне проекта:
API_URL=your_api_url_here
- Запустите приложение:
flutter run
Сборка
Android APK
flutter build apk --release
iOS
flutter build ios --release
Структура проекта
lib/
├── main.dart # Точка входа
├── models/ # Модели данных
├── services/ # API сервисы
├── providers/ # State management
├── screens/ # Экраны приложения
├── widgets/ # Переиспользуемые виджеты
└── utils/ # Утилиты и константы
Системные требования
- Flutter SDK: 3.8.1+
- Dart: 3.8.1+
- Android: API 21+ (Android 5.0+)
- iOS: iOS 11.0+
Участие в разработке
- Форкните репозиторий
- Создайте ветку для новой функции (
git checkout -b feature/amazing-feature) - Внесите изменения и закоммитьте (
git commit -m 'Add amazing feature') - Отправьте изменения в ветку (
git push origin feature/amazing-feature) - Создайте Pull Request
Лицензия
Этот проект лицензирован под Apache 2.0 License - подробности в файле LICENSE.
Контакты
Если у вас есть вопросы или предложения, создайте issue в этом репозитории.
Description
Languages
Dart
80.2%
Kotlin
9.7%
C++
5.1%
CMake
3.9%
Swift
0.6%
Other
0.5%