Skip to content

[flutter_adaptive_scaffold] : 🐛 [FIX] : Issue: 121392.#3297

Merged
auto-submit[bot] merged 39 commits intoflutter:mainfrom
aliasgar4558:fix_121392_adaptive_scaffold
Mar 20, 2023
Merged

[flutter_adaptive_scaffold] : 🐛 [FIX] : Issue: 121392.#3297
auto-submit[bot] merged 39 commits intoflutter:mainfrom
aliasgar4558:fix_121392_adaptive_scaffold

Conversation

@aliasgar4558
Copy link
Contributor

Changes included in PR are listed as follows.

List which issues are fixed by this PR. You must list at least one issue.


Screenshot evidence PRIOR fix:

image

Screenshot evidence POST fix:
image


Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

- CHANGELOG.md updated.
- Version updated to 0.1.1.
- ✅ : Test case updated as per changes in /example.
@@ -1,9 +1,13 @@
## 0.1.1

* 🐛 : FIX - Navigation Rail items not considering `NavigationRailTheme` values - [121135](https://github.com/flutter/flutter/issues/121135)
Copy link
Contributor

@gspencergoog gspencergoog Feb 28, 2023

Choose a reason for hiding this comment

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

Can you remove the emoji here to format it as the others?

Suggested change
* 🐛 : FIX - Navigation Rail items not considering `NavigationRailTheme` values - [121135](https://github.com/flutter/flutter/issues/121135)
* Fixes `NavigationRail` items not considering `NavigationRailTheme` values - [flutter/flutter#121135](https://github.com/flutter/flutter/issues/121135)

Also, see the style guide for this: https://github.com/flutter/flutter/wiki/Contributing-to-Plugins-and-Packages#changelog-style

## 0.1.1

* 🐛 : FIX - Navigation Rail items not considering `NavigationRailTheme` values - [121135](https://github.com/flutter/flutter/issues/121135)
* When `NavigationRailTheme` is provided, it shall that consider that if user has not given theme related data explicitly.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* When `NavigationRailTheme` is provided, it shall that consider that if user has not given theme related data explicitly.
* When `NavigationRailTheme` is provided, it will use the theme for values that the user has not given explicit theme-related values for.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

change log updated .

padding: const EdgeInsets.all(8.0),
child: Container(
color: const Color.fromARGB(255, 255, 201, 197),
color: Colors.grey,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this color change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

TextStyle? unSelectedLabelTextStyle,
NavigationRailLabelType labelType = NavigationRailLabelType.none,
}) {
final NavigationRailThemeData navRailTheme =
Copy link
Contributor

@gspencergoog gspencergoog Feb 28, 2023

Choose a reason for hiding this comment

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

Why can't this logic be inside of the returned builder? It's odd to pass a context to this function, and if the logic can be in the returned builder, that makes more sense, since the inherited widget for the theme is then going to rebuild that context based on theme changes, not the context that was passed in.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved logic to returned builder as suggested.

return Builder(
builder: (_) {
return BottomNavigationBar(
type: BottomNavigationBarType.fixed,
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this remove the animation of the bar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Type shall be considered from theme.

Copy link
Contributor

Choose a reason for hiding this comment

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

The changes in this file need to have unit tests written for them so that they don't regress later.

Copy link
Contributor

Choose a reason for hiding this comment

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

The changes in this file also need a test added in adaptive_layout_demo_test.dart.

aliasgar4558 and others added 8 commits March 16, 2023 08:06
# Conflicts:
#	packages/flutter_adaptive_scaffold/CHANGELOG.md
#	packages/flutter_adaptive_scaffold/README.md
#	packages/flutter_adaptive_scaffold/example/lib/adaptive_layout_demo.dart
#	packages/flutter_adaptive_scaffold/example/lib/adaptive_scaffold_demo.dart
#	packages/flutter_adaptive_scaffold/example/test/adaptive_layout_demo_test.dart
@aliasgar4558
Copy link
Contributor Author

@gspencergoog : PR has been updated as per suggested changes and test cases.

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

Thanks so much for the PR!

@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 20, 2023
@auto-submit auto-submit bot merged commit 558b6e3 into flutter:main Mar 20, 2023
@aliasgar4558 aliasgar4558 deleted the fix_121392_adaptive_scaffold branch March 20, 2023 16:17
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 21, 2023
nploi pushed a commit to nploi/packages that referenced this pull request Jul 16, 2023
[flutter_adaptive_scaffold] : � [FIX] : Issue: 121392.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: flutter_adaptive_scaffold

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants