widgetbook / widgetbook

Widgetbook is the custom widget library and collaboration platform for Flutter frontend teams.

Home Page:https://widgetbook.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android hardware button quit widgetbook application

mjablecnik opened this issue · comments

Description
When I run Widgetbook in mobile device, I have a bottom panel with 3 icons (Navigation, Addons, Knobs).
When I click on one icon so modal popup is showed with content. For close this modal you can swipe it down or click outside.
But when you accidentally click on Hardware button in Android, whole application is closed.

Steps To Reproduce

  1. Start Widgetbook in Android mobile
  2. Click on Addons icon in bottom panel
  3. Click on hardware android button
  4. Whole application is closed

Expected Behavior
When is opened modal popup, close this popup.
When is not opened modal popup, show dialog with question if I really want to quit whole application.

Hello @mjablecnik 👋

As this issue might be a low-priority to us compared to other issues that affect web/desktop,
do you want to work on fix for this?

Hello ! I want to contribute to Widgetbook. Can I work on this issue ?

@YoussefRaafatNasry Now I do not have a time so @IvanGael if you want to work on this issue you can do it ;)

Hello @IvanGael 👋

Great to hear that you want to contribute on Widgetbook! 💙
I am assigning this issue to you, and let me know if you need any help.

Our mobile layout is managed in this file, so it can be a good starting point.

Okay good @YoussefRaafatNasry . I'll start to work on it soon.
I will get back to you if I have any questions.

Hello @YoussefRaafatNasry @mjablecnik ! I just submit a PR for this issue. Let me know your thoughts.

Here is a link : #1200