Add the Flutter video editing application with project management, media import, timeline editing, preview, AI assistance, diagnostics and settings. Include shared UI and native host packages, platform runners, application tests and release tooling. Provide usage and contribution guides, the MIT license and third-party notices. Exclude local credentials, build outputs and validation data.
23 lines
684 B
Dart
23 lines
684 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
final platformCapabilitiesProvider = Provider<PlatformCapabilities>(
|
|
(ref) => PlatformCapabilities(
|
|
localFileSelection: !kIsWeb,
|
|
nativeFileDrop:
|
|
!kIsWeb &&
|
|
(defaultTargetPlatform == TargetPlatform.macOS ||
|
|
defaultTargetPlatform == TargetPlatform.windows),
|
|
),
|
|
);
|
|
|
|
/// Describes supported integration paths, never a workspace size class.
|
|
final class PlatformCapabilities {
|
|
const PlatformCapabilities({
|
|
required this.localFileSelection,
|
|
required this.nativeFileDrop,
|
|
});
|
|
final bool localFileSelection;
|
|
final bool nativeFileDrop;
|
|
}
|