• Hixie's avatar
    Improve exceptions and asserts for rendering lib. · 1a0484cc
    Hixie authored
    * Use actual exceptions rather than assertions containing code
      containing strings when trying to give messages to authors.
    * Introduce RenderingError which is an AssertionError that takes a
      string argument, to support the above.
    * Provide a BoxDimensions.hasBoundedWidth/hasBoundedHeight API.
    * Document BoxDimensions.isNormalized.
    * Provide more useful information when we assert isNormalized and find
      that it is false.
    * When finding the size is infinite, crawl the tree to figure out which
      render box is likely responsible for the infinite constraints.
    * Provide more information when size doesn't match the constraints.
    * Provide more information when intrinsic dimension methods violate the
      constraints.
    * Only spam a huge amount of information for the first exception from
      the rendering library. I've noticed a lot of people looking at the
      last exception printed rather than the first and that's very
      misleading -- after the rendering library hits an exception, all bets
      are off regarding what'll happen in the future. All kinds of asserts
      might fire.
    * Improve docs around the debug methods and flags for the above.
    * Make Block default to have no children. Previously, giving no children
      crashed with a confusing message about a null deref in an assert.
    1a0484cc
Name
Last commit
Last update
..
asset_vendor.dart Loading commit data...
basic.dart Loading commit data...
binding.dart Loading commit data...
child_view.dart Loading commit data...
dismissable.dart Loading commit data...
drag_target.dart Loading commit data...
editable.dart Loading commit data...
enter_exit_transition.dart Loading commit data...
focus.dart Loading commit data...
framework.dart Loading commit data...
gesture_detector.dart Loading commit data...
gridpaper.dart Loading commit data...
heroes.dart Loading commit data...
homogeneous_viewport.dart Loading commit data...
implicit_animations.dart Loading commit data...
locale_query.dart Loading commit data...
media_query.dart Loading commit data...
mimic.dart Loading commit data...
mixed_viewport.dart Loading commit data...
modal_barrier.dart Loading commit data...
navigator.dart Loading commit data...
notification_listener.dart Loading commit data...
overlay.dart Loading commit data...
page_storage.dart Loading commit data...
pageable_list.dart Loading commit data...
pages.dart Loading commit data...
performance_overlay.dart Loading commit data...
placeholder.dart Loading commit data...
raw_keyboard_listener.dart Loading commit data...
routes.dart Loading commit data...
scroll_behavior.dart Loading commit data...
scrollable.dart Loading commit data...
scrollable_grid.dart Loading commit data...
scrollable_list.dart Loading commit data...
semantics_debugger.dart Loading commit data...
status_transitions.dart Loading commit data...
title.dart Loading commit data...
transitions.dart Loading commit data...
unique_component.dart Loading commit data...
virtual_viewport.dart Loading commit data...