implemented a central haptic feedback system with configurable levels (off, reduced, full), added a Haptics facade providing semantic feedback methods, integrated haptic cues across navigation, settings toggles, and async action results, and updated version to 1.1.0+54
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'haptic_settings.g.dart';
|
||||
|
||||
enum HapticLevel { off, reduced, full }
|
||||
|
||||
@JsonSerializable()
|
||||
class HapticSettings {
|
||||
HapticLevel level;
|
||||
|
||||
HapticSettings({required this.level});
|
||||
|
||||
factory HapticSettings.fromJson(Map<String, dynamic> json) =>
|
||||
_$HapticSettingsFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$HapticSettingsToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user