- GeminiService (integrations/gemini, @Global): extractDocument (OCR fields) + faceMatch; graceful if no GEMINI_API_KEY - documents: face-match now real via Gemini; POST /admin/documents/:id/ocr extracts fields for CS auto-fill - roles: PATCH /admin/users/:id/role (admin) + POST /platform/users/role (bootstrap via x-platform-secret) - config: gemini + platform.secret; .env.example entries Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
388 B
Dart
Executable File
16 lines
388 B
Dart
Executable File
import 'package:get/get.dart';
|
|
|
|
import '../../constant/box_name.dart';
|
|
import '../../main.dart';
|
|
|
|
class HomePageController extends GetxController {
|
|
late bool isVibrate = box.read(BoxName.isvibrate) ?? true;
|
|
|
|
void changeVibrateOption(bool value) {
|
|
isVibrate = box.read(BoxName.isvibrate) ?? true;
|
|
isVibrate = value;
|
|
box.write(BoxName.isvibrate, value);
|
|
update();
|
|
}
|
|
}
|