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