Skip to content

Conversation

@abarth
Copy link
Contributor

@abarth abarth commented Dec 8, 2015

After this patch, if you try to use a widget that depends on being enclosed in
a material, you now get an assert and a debugPrint if you're not inside a
material.

Fixes #243

@abarth abarth force-pushed the check_material branch 2 times, most recently from 8c85ac8 to d15f220 Compare December 8, 2015 21:26
Copy link
Contributor

Choose a reason for hiding this comment

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

debugShortDescription?

After this patch, if you try to use a widget that depends on being enclosed in
a material, you now get an assert and a debugPrint if you're not inside a
material.

Fixes flutter#243
@Hixie
Copy link
Contributor

Hixie commented Dec 8, 2015

LGTM. I didn't check if there were widgets that should get this that you didn't put it in.

abarth added a commit that referenced this pull request Dec 8, 2015
Widgets that depend on Material should assert that
@abarth abarth merged commit c130dff into flutter:master Dec 8, 2015
@abarth abarth deleted the check_material branch December 8, 2015 21:50
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using a RaisedButton in a non-material app doesn't hint as to what is wrong

2 participants