Skip to content

Fixed device size calculation #4

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

Merged
merged 5 commits into from
Apr 2, 2024
Merged

Conversation

ebabhi
Copy link
Contributor

@ebabhi ebabhi commented Apr 2, 2024

Description

Fixed device size calculation
Reduced SnackBar bottom padding

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@@ -28,7 +28,7 @@ enum SnackbarPosition {
double? bottomMargin(BuildContext context, double position) {
return switch (this) {
top => null,
bottom => position + 40 + context.bottomBarHeight,
bottom => position + 20 + context.bottomBarHeight,
Copy link
Owner

Choose a reason for hiding this comment

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

@ebabhi why you are reducing to 20?

Copy link
Contributor Author

@ebabhi ebabhi Apr 2, 2024

Choose a reason for hiding this comment

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

@kishormainali i thought 40 was too much space for snack bar .. already reverted this commit

@kishormainali kishormainali merged commit 3e06eb7 into kishormainali:main Apr 2, 2024
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.

3 participants