Skip to content
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

Fixed the right overflow of small cards in the cards section. #199

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

jaivsh
Copy link

@jaivsh jaivsh commented May 25, 2023

Pull Request Template

Description:

I've modified the card-design in such a way such that it doesn't overflow on any screen size, ranging from a large sized tablet to a small sized smartphone.

Changes Made:

-Modified the design of the card so as to allow itself to be more accomodative while adhering to the basic layout of all the cards.

  • Changed the width and height of affected cards to prevent the overflow.

Related Issue:

fixed #196

Screenshots/GIFs:

ss1

Testing Done:

I've tested the modification in the following emulators in android studio:

  • Pixel 4
  • Nexus 10
  • Pixel XL

Checklist:

  • The code follows the project's coding style guidelines.
  • Unit tests have been added or updated to cover the changes.
  • Documentation, if applicable, has been updated to reflect the changes.
  • All new and existing tests pass successfully.

Please review and merge this PR at your earliest convenience.

Thank you!

@jaivsh jaivsh changed the title Fixed the right overflow of small cards in the cards section. Fixed the right overflow of small cards in the cards section. #196 May 25, 2023
@jaivsh jaivsh changed the title Fixed the right overflow of small cards in the cards section. #196 Fixed the right overflow of small cards in the cards section. May 25, 2023
@jaivsh jaivsh closed this May 25, 2023
@jaivsh jaivsh reopened this May 25, 2023
8,
child: const Column(
32,
child: Column(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use const before Column as there is not dynamic data associated with it .

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Sir, I've modified the PR and implemented the const wherever possible. However, im using the latest version of flutter, and as per it, there have been modifications made by the dart and flutter in its new versions, which does not allow const in specific places, like in line 17-18 above as you mentioned. Thank you!

@@ -11,11 +11,11 @@ class SixthCard extends StatelessWidget {
Container(
color: Colors.black,
padding: const EdgeInsets.only(left: 5, top: 2, bottom: 2),
height: (MediaQuery.of(context).size.width / 2.4) * 0.83,
height: (MediaQuery.of(context).size.width / 2.4) * 0.95,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cards are still overflowing in my phone . Please fix it .

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
image
image
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After fixing these let me know

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ashdude1401 Sir, I've implemented the changed for each specific card. Have confirmed it by running the app on smaller sized emulators. Please have a review!!

Also, I've implemented the const wherever possible. However, im using the latest version of flutter, and as per it, there have been modifications made by the dart and flutter in its new versions, which does not allow const in specific places, like in line 17 above as you mentioned. Thanks!

Screenshot_20230526_110707
Screenshot_20230526_110714
Screenshot_20230526_110721
Screenshot_20230526_110659
Screenshot_20230526_110648
Screenshot_20230526_104308

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaivsh I have checked again it is still overflowing in phone, you have make make it responsive for all the screen .All phone screen are not covered by emulator I think mine is one of them .My screen screen size is 6.8 inch. Some screen you have to handle separately and secondly , I on the latest version of flutter and dart , it is still showing me the suggestion of adding const at line 17 .So, please these issue again and let me know once you are done.

@Debajyoti14
Copy link
Member

@jaivsh There are a lot of merge conflicts due to the merge of a similar PR. Can you make a new commit to fix all these conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Right overflow in 'Cards' section by several dips
3 participants