Showing
1 changed file
with
8 additions
and
8 deletions
| 1 | import 'dart:io'; | 1 | import 'dart:io'; |
| 2 | 2 | ||
| 3 | import 'package:flutter/foundation.dart'; | 3 | import 'package:flutter/foundation.dart'; |
| 4 | -import 'package:wakelock/src/windows_stub.dart' | ||
| 5 | - if (dart.library.io) 'package:wakelock_windows/wakelock_windows.dart'; | 4 | +// import 'package:wakelock/src/windows_stub.dart' |
| 5 | +// if (dart.library.io) 'package:wakelock_windows/wakelock_windows.dart'; | ||
| 6 | import 'package:wakelock_macos/wakelock_macos.dart'; | 6 | import 'package:wakelock_macos/wakelock_macos.dart'; |
| 7 | import 'package:wakelock_platform_interface/wakelock_platform_interface.dart'; | 7 | import 'package:wakelock_platform_interface/wakelock_platform_interface.dart'; |
| 8 | 8 | ||
| @@ -36,12 +36,12 @@ WakelockPlatformInterface get _defaultPlatformInstance { | @@ -36,12 +36,12 @@ WakelockPlatformInterface get _defaultPlatformInstance { | ||
| 36 | return WakelockMacOS(); | 36 | return WakelockMacOS(); |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | - if (Platform.isWindows) { | ||
| 40 | - // This does not feel like the correct way to assign the Windows | ||
| 41 | - // implementation, however, the platform channels do not have to be used | ||
| 42 | - // thanks to the win32 package. See https://github.com/flutter/flutter/issues/52267. | ||
| 43 | - return WakelockWindows(); | ||
| 44 | - } | 39 | + // if (Platform.isWindows) { |
| 40 | + // // This does not feel like the correct way to assign the Windows | ||
| 41 | + // // implementation, however, the platform channels do not have to be used | ||
| 42 | + // // thanks to the win32 package. See https://github.com/flutter/flutter/issues/52267. | ||
| 43 | + // return WakelockWindows(); | ||
| 44 | + // } | ||
| 45 | 45 | ||
| 46 | return WakelockPlatformInterface.instance; | 46 | return WakelockPlatformInterface.instance; |
| 47 | } | 47 | } |
-
Please register or login to post a comment