Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Make sound, paint and vibrate when keyboard is pressed #10

Closed
Aidyl98 opened this issue Dec 27, 2021 · 3 comments
Closed

Make sound, paint and vibrate when keyboard is pressed #10

Aidyl98 opened this issue Dec 27, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Aidyl98
Copy link
Contributor

Aidyl98 commented Dec 27, 2021

When de user press one of the letter of the keyboard this one has to be paint according if it is correct or wrong, in green or red. Also has to reproduce a sound and vibrate the phone.

@Aidyl98 Aidyl98 added the enhancement New feature or request label Dec 27, 2021
@Aidyl98 Aidyl98 added this to To do in hangman-kanban via automation Dec 27, 2021
@Aidyl98 Aidyl98 self-assigned this Dec 27, 2021
@Aidyl98 Aidyl98 changed the title Make sound, paint and vibrate when keyborad is pressed Make sound, paint and vibrate when keyboard is pressed Dec 27, 2021
@Aidyl98
Copy link
Contributor Author

Aidyl98 commented Dec 28, 2021

Paint letter:
Right: Colors.lightGreen.shade300
Wrong: Colors.redAccent.shade100

@Aidyl98
Copy link
Contributor Author

Aidyl98 commented Jan 4, 2022

Make Sound:
Package: assets_audio_player
Method:

void playAudio(String audioUrl) {
    AssetsAudioPlayer.newPlayer().open(
      Audio(audioUrl),
      autoStart: true,
      volume: 100,
    );
    update();
  }

@Aidyl98
Copy link
Contributor Author

Aidyl98 commented Jan 4, 2022

Vibrate:
Package:vibration
Method:

 void vibrate(int duration) {
    Vibration.vibrate(
      duration: duration,
    );
  }

@Aidyl98 Aidyl98 closed this as completed Jan 4, 2022
hangman-kanban automation moved this from To do to Done Jan 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant