• Ian Hickson's avatar
    Fix crash when dumping the app if it uses RichText · 7cf2dbdf
    Ian Hickson authored
    Specifically:
    
    * Handle null styles in TextSpan without crashing in toString().
    
    * Handle null children in TextSpan child lists without crashing in
      toString().
    
    * Handle entirely empty TextSpans in toString() explicitly.
    
    * Assert that TextSpans don't contain nulls in various places. This is
      done more often than one might think necessary, because it turns out
      that TextSpan takes a (mutable) List for one of its arguments, so
      who knows what it will contain at any given time. By asserting all
      over the place, hopefully we'll catch it near the change if they do
      change it.
    
    * Add a RichText example to Stocks to exercise RichText and TextSpans.
    
    See also: https://github.com/flutter/flutter/issues/2514, https://github.com/flutter/flutter/issues/2519
    7cf2dbdf
Name
Last commit
Last update
bin Loading commit data...
dev Loading commit data...
doc Loading commit data...
examples Loading commit data...
infra Loading commit data...
packages Loading commit data...
travis Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
ISSUE_TEMPLATE.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...