mirror of
https://github.com/Ujwal223/FocusGram.git
synced 2026-04-01 17:10:23 +02:00
- Reordered Settings Page. - Added "Click to Unblur" for posts. - Added Persistent Notification - Improved Grayscale Scheduling. and more.
13 lines
384 B
Dart
13 lines
384 B
Dart
const String kHapticBridgeScript = '''
|
|
(function() {
|
|
// Trigger native haptic feedback on double-tap (like gesture on posts)
|
|
// Uses flutter_inappwebview's callHandler instead of postMessage
|
|
document.addEventListener('dblclick', function(e) {
|
|
if (window.flutter_inappwebview) {
|
|
window.flutter_inappwebview.callHandler('Haptic', 'light');
|
|
}
|
|
}, true);
|
|
})();
|
|
''';
|
|
|