Merge branch 'main' of krille-chan/fluffychat
This commit is contained in:
commit
b93b263427
200 changed files with 1285 additions and 943 deletions
|
|
@ -1,14 +1,13 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:fluffychat/config/setting_keys.dart';
|
||||
import 'package:fluffychat/l10n/l10n.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
import 'package:url_launcher/url_launcher_string.dart';
|
||||
|
||||
import 'package:fluffychat/config/setting_keys.dart';
|
||||
import 'package:fluffychat/l10n/l10n.dart';
|
||||
import '../config/app_config.dart';
|
||||
|
||||
abstract class PlatformInfos {
|
||||
|
|
@ -33,8 +32,8 @@ abstract class PlatformInfos {
|
|||
static bool get supportsCustomImageResizer =>
|
||||
PlatformInfos.isWeb || PlatformInfos.isMobile;
|
||||
|
||||
/// Web could also record in theory but currently only wav which is too large
|
||||
static bool get platformCanRecord => (isMobile || isMacOS || isWeb || isLinux);
|
||||
/// Web could also record in theory but currently creates broken opus
|
||||
static bool get platformCanRecord => (isMobile || isMacOS || isLinux);
|
||||
|
||||
static String get clientName =>
|
||||
'${AppSettings.applicationName.value} ${isWeb ? 'web' : Platform.operatingSystem}${kReleaseMode ? '' : 'Debug'}';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue