This commit is contained in:
Hamza-Ayed
2024-06-28 19:10:34 +03:00
parent 929ecf39f9
commit 08d31bc4d1
67 changed files with 159 additions and 58 deletions

View File

@@ -23,7 +23,7 @@ class MyElevatedButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
final bool vibrate = box.read(BoxName.isvibrate) ?? true;
bool vibrate = box.read(BoxName.isvibrate) ?? true;
return ElevatedButton(
style: ElevatedButton.styleFrom(
@@ -33,7 +33,7 @@ class MyElevatedButton extends StatelessWidget {
),
),
onPressed: () async {
if (vibrate) {
if (vibrate == true) {
if (Platform.isIOS) {
HapticFeedback.selectionClick();
} else {