mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
16 lines
369 B
Dart
16 lines
369 B
Dart
import 'package:PiliPlus/main.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
extension GetExt on GetInterface {
|
|
S putOrFind<S>(InstanceBuilderCallback<S> dep, {String? tag}) =>
|
|
GetInstance().putOrFind(dep, tag: tag);
|
|
|
|
void updateMyAppTheme() {
|
|
final (l, d) = MyApp.getAllTheme();
|
|
rootController
|
|
..theme = l
|
|
..darkTheme = d
|
|
..update();
|
|
}
|
|
}
|