mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 09:16:19 +01:00
16 lines
320 B
Dart
16 lines
320 B
Dart
|
import 'package:flutter/widgets.dart';
|
||
|
import 'package:nc_photos/widget/disposable.dart';
|
||
|
import 'package:wakelock/wakelock.dart';
|
||
|
|
||
|
class WakelockControllerDisposable implements Disposable {
|
||
|
@override
|
||
|
init(State state) {
|
||
|
Wakelock.enable();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
dispose(State state) {
|
||
|
Wakelock.disable();
|
||
|
}
|
||
|
}
|