Skip to content

Commit

Permalink
remove macos sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
David Skelly committed Jan 9, 2023
1 parent b902b5f commit 86fad76
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions macos/Classes/SystemThemePlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ public class SystemThemePlugin: NSObject, FlutterPlugin {

public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
switch call.method {
case "getPlatformVersion":
result("macOS " + ProcessInfo.processInfo.operatingSystemVersionString)
case "SystemTheme.darkMode":
let type = UserDefaults.standard.string(forKey: "AppleInterfaceStyle") ?? "Light"
result(type == "Dark");
Expand Down

0 comments on commit 86fad76

Please sign in to comment.