-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #1381 Forcing App in portrait mode. #1382
Fixes #1381 Forcing App in portrait mode. #1382
Conversation
@Ayush0Chaudhary Please update the test cases for this file based on your updates. We need to keep increasing our test code coverage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are looking fine to be merged. We also need to update the tests for this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ayush0Chaudhary Please update the test cases for this file based on your updates. We need to keep increasing our test code coverage.
Adding the changes asap! |
I am not able to add test for portrait mode, can you help or direct me to some resource I can refer to Couldn't find proper method on google too. |
Hi, you can refer to exisiting test files. Also keep an on coverage if it's 100 percent then no need to add further tests |
orientation setter is only used by me in whole app I read 8-9 tests @palisadoes @SiddheshKukade can you help with this?? |
@Ayush0Chaudhary We have decided that it will be best to disable landscape completely as it will make the app more difficult to use. However we should think of ways to have a standard error when overflows like this occur. Please also work with @TheHazeEffect as he says he knows of a potential solution. This will be a good addition to the code base. There is another PR #1380 where we are working on a widget to create standardized error messages. Coordinating with that PR would be good too so that you don't duplicate work. |
There won't be duplicate work, as I am also the author of #1380 @palisadoes. I will disable the landscape in my next Commit ASAP! |
@palisadoes can you merge the PR now?? |
@TheHazeEffect @SiddheshKukade please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why you've deleted the set_url_view_model_test.dart
file. I think It was just a test file to check if the QR works.
Also, I will suggest renaming the PR to something like "Forcing Portrait Mode on the app"
fs.SystemChrome.setPreferredOrientations( | ||
[ | ||
fs.DeviceOrientation.portraitUp, | ||
fs.DeviceOrientation.portraitDown, | ||
], | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks OK to lock the app in portrait mode. 👍🏻
01046e2
to
1a57bfc
Compare
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## develop #1382 +/- ##
===========================================
- Coverage 70.82% 70.80% -0.02%
===========================================
Files 146 146
Lines 7207 7209 +2
===========================================
Hits 5104 5104
- Misses 2103 2105 +2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
I made the changes, @SiddheshKukade , I am new to GitHub, apologies. |
@Ayush0Chaudhary Our code coverage levels have decreased with this PR. Please add tests that cover the changes you made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ayush0Chaudhary Please update the test cases for this file based on your updates. We need to keep increasing our test code coverage.
@palisadoes @SiddheshKukade All test are passed!! |
Please update the code as the tests here are failing. |
@SiddheshKukade please check, code coverage is 68.3% now. |
@Ayush0Chaudhary the code coverage for |
Ok got it |
@noman2002 Can we make this file unit-test as different issue?? I am facing difficulties, I cannot examples for main.dart test anywhere?? |
@palisadoes what you say ? |
Yes, please create a separate issue for the tests |
So can we merge this PR ??@noman2002 |
test/widget_tests/after_auth_screens/app_settings/app_setting_page_test.dart
Show resolved
Hide resolved
@noman2002 made the changes you asked for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve the conflicts.
@noman2002 please review. |
@palisadoes @SiddheshKukade @TheHazeEffect please approve the changes!! |
@palisadoes is there a problem you see with PR, I can change it if you want |
There is a huge time difference between India and Jamaica. Wait for him to review the changes. |
ok @noman2002, thank you |
What kind of change does this PR introduce?
Issue Number:
Fixes #1381
Did you add tests for your changes?
no
Snapshots/Videos:
overflow.mp4
If relevant, did you update the documentation?
Summary
fixed the overflow of the qr in landscape mode. I used LayoutBuilder to manage the constraints
Does this PR introduce a breaking change?
NO
Other information
NO
Have you read the contributing guide?
yes