1. 12 Sep, 2018 1 commit
  2. 07 Sep, 2018 1 commit
  3. 02 Aug, 2018 1 commit
  4. 27 Jul, 2018 1 commit
  5. 23 Jul, 2018 1 commit
  6. 16 Jul, 2018 2 commits
  7. 09 Jul, 2018 1 commit
  8. 03 Jul, 2018 2 commits
  9. 10 May, 2018 1 commit
    • Greg Spencer's avatar
      Fix handling of null body2 text style for chip and slider (#17311) · a365c41c
      Greg Spencer authored
      Before this change, if you specified a non-null textTheme, but the theme you specified didn't have a body2 defined, then creating a ChipTheme would assert (which means creating a ThemeData would fail).
      
      This adds handling for this corner case to default to reasonable values in that case. The slider had the same problem, but for accentTextTheme, so I fixed that too.
      
      While I had the patient open, Hans and I noticed that TextTheme.merge wasn't doing the right thing in the case where some members were null either, so I fixed that, and added some examples, since merge/copyWith are common operations that are not always well understood.
      
      Fixes #17251
      a365c41c
  10. 21 Oct, 2017 1 commit
    • Yegor's avatar
      Theme.of provides all TextStyle properties (#12552) · 67d16cd5
      Yegor authored
      * Theme provides all TextStyle properties
      
      * match field declaration order in the test
      
      * Theme.of returns text style with inherit == false
      
      * change TextStyle.inherit logic; docs
      
      * add TextStyle.debugLabel
      
      * address comments
      
      * add debug labels to Typography text styles
      67d16cd5
  11. 05 Jun, 2017 1 commit
  12. 14 May, 2017 1 commit
    • Adam Barth's avatar
      Estimate the brightness of the primary color (#10071) · 49b183c5
      Adam Barth authored
      If the caller doesn't explicitly give the brightness of the primary
      color, we now estimate it using an algorithm from the Web Content
      Accessibility Guidelines.
      
      Also, this patch contains a function that converts RGB colors to
      HSVColors. I was originally going to use that, but the WCAG algorithm
      ended up seeming like a better choice. The patch still includes this
      function because it's generally useful.
      
      Fixes #5718
      49b183c5
  13. 26 Mar, 2017 1 commit
  14. 04 Mar, 2017 1 commit
  15. 20 Jan, 2017 1 commit
  16. 10 Nov, 2016 1 commit
    • Chris Bracken's avatar
      Add accentTextTheme and accentIconTheme to ThemeData (#6808) · d0ff41ec
      Chris Bracken authored
      These define a TextTheme and IconTheme that contrast with the accent
      colour brightness. Also adjust default accentColorBrightness to match
      Material spec examples (dark text/icons on teal in Dark theme).
      
      Update material components to use accentTextTheme, accentIconTheme:
      * DatePicker selection
      * Floating action button icon
      * TimePicker selection
      * Slider label text
      d0ff41ec
  17. 02 Nov, 2016 1 commit