flutter-desktop-config

Solid

Configure Flutter for desktop platforms with platform channels and native integrations

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
75
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# flutter-desktop-config Configure Flutter for desktop platforms (Windows, macOS, Linux) with platform channels, native integrations, and platform-specific configurations. ## Capabilities - Enable Flutter desktop support - Configure platform channels for native code - Set up platform-specific runners - Configure window management - Set up menu bar and system tray - Configure app icons and metadata - Set up MSIX/DMG/DEB packaging - Configure plugin support ## Input Schema ```json { "type": "object", "properties": { "projectPath": { "type": "string" }, "platforms": { "type": "array", "items": { "enum": ["windows", "macos", "linux"] } }, "windowConfig": { "type": "object" }, "nativeChannels": { "type": "array" } }, "required": ["projectPath"] } ``` ## Platform Channel Example ```dart // Dart side class NativeService { static const platform = MethodChannel('com.example/native'); Future<String> getSystemInfo() async { return await platform.invokeMethod('getSystemInfo'); } } ``` ```swift // macOS (Swift) let controller = FlutterViewController() let channel = FlutterMethodChannel(name: "com.example/native", binaryMessenger: controller.engine.binaryMessenger) channel.setMethodCallHandler { call, result in if call.method == "getSystemInfo" { result(ProcessInfo.processInfo.operatingSystemVersionString) } } ``` ## Related Skills - `cross-platform-test-matrix` - `desktop-build-pipeline` proces...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills