Skip to content

Conversation

psygo
Copy link

@psygo psygo commented May 7, 2020

Some notes:

  • I'm using a MaterialApp wrapper because the WidgetTester often complains if it isn't testing a Material widget, I don't know why.
  • The first test tests that the contraints inside the LayoutBuilder don't take into account the artificial padding on top (artificial Status Bar). The second one shows that the ResponsiveSafeArea does recognize that difference.
  • I think it would be nicer to have the ResponsiveSafeArea's contraints to be of the same type as the LayoutBuilder's, i.e., BoxConstraints instead of Size, for standardization.

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.

1 participant