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

Fix issue where passing 1 tab in would error out #10

Merged
merged 2 commits into from
Dec 4, 2024
Merged

Conversation

LegendAF
Copy link
Collaborator

@LegendAF LegendAF commented Dec 4, 2024

Fix #9

Copy link

coveralls-official bot commented Dec 4, 2024

Pull Request Test Coverage Report for Build 12164951316

Details

  • 23 of 28 (82.14%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 60.96%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/src/components/sheet.dart 23 28 82.14%
Totals Coverage Status
Change from base Build 11889690691: 0.3%
Covered Lines: 292
Relevant Lines: 479

💛 - Coveralls

length: widget.tabs.length,
vsync: this,
);
if (widget.tabs.length > 1) {

Choose a reason for hiding this comment

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

low priority suggestion: might make sense to make a convenience function for this since it's used a few times. the function name could maybe go a little way to explain the reason for the requirement, like if it's a validation check for the control or if it only needs a tab controller if there's more than one tab.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree I was just being lazy. I have updated to have a variable for this canShowTabs.

@LegendAF LegendAF merged commit c8191b7 into main Dec 4, 2024
2 checks passed
@LegendAF LegendAF deleted the issues/9 branch December 4, 2024 17:28
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.

Possible to use only gif section? Error index with tabs.
2 participants