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

Optional content for Expander #239

Closed
wants to merge 1 commit into from

Conversation

tobiasht
Copy link
Contributor

Made the content parameter optional for Expander. An Expander with no content will not be able to be expanded, but will still have the same theming as the a regular Expander

Pre-launch Checklist

  • I have updated CHANGELOG.md with my changes
  • I have run "optimize/organize imports" on all changed files
  • I have added/updated relevant documentation

@tobiasht tobiasht changed the title Made content optional Made content optional for Expander Mar 24, 2022
@tobiasht tobiasht changed the title Made content optional for Expander Optional content for Expander Mar 24, 2022
@@ -198,6 +198,52 @@ class ExpanderState extends State<Expander>
Widget build(BuildContext context) {
assert(debugCheckHasFluentTheme(context));
theme = FluentTheme.of(context);
if (widget.content == null) {
Copy link
Owner

Choose a reason for hiding this comment

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

Would this be some boilerplate code? Isn't it better to check if content is null on SizeTransition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You might be right, but I haven't used SizeTransition before. Would the use of SizeTransition still hide the handle and prevent any actions on the object? (Hover color etc)

@h3x4d3c1m4l
Copy link
Contributor

I think this would fix #220.

@bdlukaa
Copy link
Owner

bdlukaa commented Mar 27, 2022

I don't like the idea of this. It'd be better to re-style ListTile to match the new Win UI 3 instead. Closing

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