mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-06 01:19:34 +00:00
feat: add shake detection functionality (#36)
* feat: add shake detection functionality and integrate vibration support * feat: add shake detector settings page
This commit is contained in:
parent
2e3b1de529
commit
b229c4f2f5
25 changed files with 1423 additions and 158 deletions
|
|
@ -16,6 +16,16 @@ extension DurationFormat on Duration {
|
|||
return '${seconds}s';
|
||||
}
|
||||
}
|
||||
|
||||
String get smartSingleFormat {
|
||||
if (inHours > 0) {
|
||||
return '${inHours}h';
|
||||
} else if (inMinutes > 0) {
|
||||
return '${inMinutes}m';
|
||||
} else {
|
||||
return '${inSeconds}s';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension OnlyTime on DateTime {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue