Files
PiliPlus/lib/utils/extension/get_ext.dart
2026-03-13 18:38:37 +08:00

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();
}
}