mawaqit / android-tv-app

Prayer times App for Android TV
https://mawaqit.net
Other
34 stars 15 forks source link

Fix/not working keyboard #1095

Closed YassinNouh21 closed 2 months ago

YassinNouh21 commented 3 months ago

📝 Summary

This PR fixes the issue where the keyboard is not working and introduces a new custom keyboard for entering the mosque ID in on boarding screen.

This PR addresses issue #1070

Description

The current keyboard implementation in the MosqueInputId widget has some issues and is not functioning as expected. To resolve this, a new custom keyboard (CustomKeyboardWidget) has been introduced.

The changes made in this PR include:

  1. Added a new file custom_keyboard.dart that contains the implementation of the CustomKeyboardWidget.
  2. Updated the MosqueInputId widget to use the CustomKeyboardWidget instead of the default keyboard.
  3. Implemented the custom keyboard UI and functionality, including numeric keys, delete key, and done key.
  4. Added event handling to update the TextEditingController when keys are pressed.
  5. Improved the styling and layout of the custom keyboard to match the app's design.

With these changes, users will be able to enter the mosque ID using the custom keyboard, which provides a better user experience and ensures proper functionality.

Tests

🧪 Use case 1

💬 Description:

  1. Launch the app and navigate to the mosque search screen.
  2. Tap on the mosque ID input field.
  3. Verify that the custom keyboard appears at the bottom of the screen.
  4. Enter a valid mosque ID using the custom keyboard.
  5. Tap the "Done" key on the custom keyboard.
  6. Verify that the entered mosque ID is displayed in the input field.
  7. Tap the search button to perform the mosque search.
  8. Verify that the search results are displayed correctly based on the entered mosque ID.

📷 Screenshots or GIFs (if applicable):

image

Checklist: