Reduced haptic feedback (consequential actions only)

This commit is contained in:
Imran Remtulla
2022-09-17 16:48:42 -04:00
parent c724b276ab
commit 0f6b6253de
7 changed files with 10 additions and 15 deletions

View File

@@ -45,7 +45,7 @@ class _HomePageState extends State<HomePage> {
NavigationDestination(icon: Icon(e.icon), label: e.title))
.toList(),
onDestinationSelected: (int index) {
HapticFeedback.lightImpact();
HapticFeedback.selectionClick();
setState(() {
if (index == 0) {
selectedIndexHistory.clear();