сборка: APK (Android) + Linux Desktop
- Исправлены ошибки Flutter анализа (withOpacity, pbkdf2, импорты) - Упрощён pubspec.yaml (только нужные зависимости) - Android APK собран: build/app/outputs/flutter-apk/app-release.apk (22MB) - Linux Desktop собран: build/linux/x64/release/bundle/jam_client Для Windows: кросс-компиляция невозможна с Linux. Нужен Windows хост для flutter build windows.
This commit is contained in:
@@ -8,7 +8,6 @@ import '../services/api_service.dart';
|
||||
import '../services/theme_service.dart';
|
||||
import '../models/message.dart';
|
||||
import '../models/channel.dart';
|
||||
import '../models/guild.dart';
|
||||
import '../widgets/message_bubble.dart';
|
||||
import '../widgets/chat_input.dart';
|
||||
|
||||
@@ -28,7 +27,6 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
bool _atBottom = true;
|
||||
|
||||
late Channel _channel;
|
||||
late Guild _guild;
|
||||
|
||||
@override
|
||||
void didChangeDependencies() {
|
||||
@@ -36,7 +34,6 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
final args = ModalRoute.of(context)?.settings.arguments as Map?;
|
||||
if (args != null) {
|
||||
_channel = args['channel'] as Channel;
|
||||
_guild = args['guild'] as Guild;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -201,7 +198,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
Icon(
|
||||
_channel.isText ? Icons.tag : Icons.volume_up,
|
||||
size: 48,
|
||||
color: ThemeService.textMuted.withValues(alpha: 0.5),
|
||||
color: ThemeService.textMuted.withOpacity(0.5),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
Text(
|
||||
@@ -226,7 +223,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
Text(
|
||||
'No messages yet. Start the conversation!',
|
||||
style: TextStyle(
|
||||
color: ThemeService.textMuted.withValues(alpha: 0.8),
|
||||
color: ThemeService.textMuted.withOpacity(0.8),
|
||||
fontSize: 14,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -207,7 +207,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
color: ThemeService.surfacePrimary,
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
border: Border.all(
|
||||
color: ThemeService.success.withValues(alpha: 0.5),
|
||||
color: ThemeService.success.withOpacity(0.5),
|
||||
width: 2,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -120,10 +120,10 @@ class _LoginScreenState extends State<LoginScreen> {
|
||||
Container(
|
||||
padding: const EdgeInsets.all(12),
|
||||
decoration: BoxDecoration(
|
||||
color: ThemeService.danger.withValues(alpha: 0.1),
|
||||
color: ThemeService.danger.withOpacity(0.1),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
border: Border.all(
|
||||
color: ThemeService.danger.withValues(alpha: 0.3)),
|
||||
color: ThemeService.danger.withOpacity(0.3)),
|
||||
),
|
||||
child: Row(
|
||||
children: [
|
||||
|
||||
@@ -62,7 +62,7 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: ThemeService.primary.withValues(alpha: 0.4),
|
||||
color: ThemeService.primary.withOpacity(0.4),
|
||||
blurRadius: 30,
|
||||
spreadRadius: 5,
|
||||
),
|
||||
@@ -94,7 +94,7 @@ class _SplashScreenState extends State<SplashScreen>
|
||||
Text(
|
||||
'Lightweight · Decentralized · Secure',
|
||||
style: TextStyle(
|
||||
color: ThemeService.textSecondary.withValues(alpha: 0.7),
|
||||
color: ThemeService.textSecondary.withOpacity(0.7),
|
||||
fontSize: 14,
|
||||
letterSpacing: 0.5,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user