1. 13 Jun, 2019 2 commits
  2. 10 Jun, 2019 1 commit
    • Anthony's avatar
      [Material] Fix slider track shape to rounded (#34178) · 0bbac725
      Anthony authored
      The slider track shape for the onPrimaryColors constructor should be rounded, but it was accidentally changed to rectangular in #31681. This change restores the original behavior. This only affects sliders that are themed with SliderThemeData.onPrimaryColors().
      0bbac725
  3. 06 Jun, 2019 1 commit
    • Anthony's avatar
      [Material] Create a themable Range Slider (continuous and discrete) (#31681) · e1d0ded9
      Anthony authored
      Creates a Material Design range slider.
      
      The range slider is based off the updated slider, with the main difference being that it has 2 thumbs.
      By default, the thumbs cannot pass each other and both the thumb and the value indicator create a stroke when they are overlapping for better visibility.
      e1d0ded9
  4. 29 Apr, 2019 1 commit
  5. 24 Apr, 2019 1 commit
    • Anthony's avatar
      [Material] Update slider and slider theme with new sizes, shapes, and color... · 96f15c74
      Anthony authored
      [Material] Update slider and slider theme with new sizes, shapes, and color mappings (2nd attempt) (#31564)
      
      #30390 was rolled back. This PR will re-roll it forward.
      
      This PR makes a number of changes to the visual appearance of material sliders:
      
      Sizes/Shapes
      ** enabled thumb radius from 6 to 10
      ** disabled thumb radius from 4 to 10 with no gap
      ** default track shape is a rounded rect rather than a rect
      **
      Colors
      ** all of the colors now use the new color scheme
      ** overlay opacity has been reduce from 16% to 12%
      ** value indicator text color now respects the indicator it is on by using onPrimary
      ** disabledThumb color no respects the surface it is on by using onSurface
      The slider theme is also now constructed consistently with other theme objects within the ThemeData. By default, all values are null, and have default values that are resolved in the slider itself, rather than in the slider theme.
      96f15c74
  6. 20 Apr, 2019 1 commit
  7. 18 Apr, 2019 1 commit
    • Anthony's avatar
      [Material] Update slider and slider theme with new sizes, shapes, and color mappings (#30390) · b1039f0f
      Anthony authored
      This PR makes a number of changes to the visual appearance of material sliders:
      
      Sizes/Shapes
      ** enabled thumb radius from 6 to 10
      ** disabled thumb radius from 4 to 10 with no gap
      ** default track shape is a rounded rect rather than a rect
      **
      Colors
      ** all of the colors now use the new color scheme
      ** overlay opacity has been reduce from 16% to 12%
      ** value indicator text color now respects the indicator it is on by using onPrimary
      ** disabledThumb color no respects the surface it is on by using onSurface
      The slider theme is also now constructed consistently with other theme objects within the ThemeData. By default, all values are null, and have default values that are resolved in the slider itself, rather than in the slider theme.
      b1039f0f
  8. 09 Mar, 2019 1 commit
  9. 06 Mar, 2019 1 commit
  10. 01 Mar, 2019 1 commit
    • Alexandre Ardhuin's avatar
      Add missing trailing commas (#28673) · 387f8854
      Alexandre Ardhuin authored
      * add trailing commas on list/map/parameters
      
      * add trailing commas on Invocation with nb of arg>1
      
      * add commas for widget containing widgets
      
      * add trailing commas if instantiation contains trailing comma
      
      * revert bad change
      387f8854
  11. 21 Feb, 2019 1 commit
  12. 11 Feb, 2019 1 commit
  13. 06 Feb, 2019 1 commit
  14. 01 Feb, 2019 1 commit
  15. 12 Sep, 2018 1 commit
  16. 02 Aug, 2018 1 commit
  17. 27 Jul, 2018 1 commit
  18. 23 Jul, 2018 1 commit
  19. 16 Jul, 2018 2 commits
  20. 20 Jun, 2018 1 commit
  21. 19 Jun, 2018 1 commit
  22. 05 Jun, 2018 1 commit
  23. 12 Apr, 2018 4 commits
  24. 19 Mar, 2018 1 commit
  25. 13 Mar, 2018 1 commit
    • Greg Spencer's avatar
      Add neck stretch (#15445) · fc96326b
      Greg Spencer authored
      During the review, we determined that it would be good for the value indicator to stretch when the text scale was smaller, and the shrink when it was larger, to keep the value visible over the finger at small sizes, and closer to the finger at large sizes. This implements that change.
      fc96326b
  26. 09 Mar, 2018 1 commit
    • Greg Spencer's avatar
      Adding edge avoidance, painting tests, general cleanup (#15078) · 7fab7f6d
      Greg Spencer authored
      Fixed the real repaint problem the Slider had (missing addListener), and added tests for it.
      
      Added GlobalKey reparenting test.
      
      Added the ability for the value indicator to slide left and right to avoid falling off the edge of the screen.
      It only shifts as much as it can without deforming, but even at large text scales, that is enough to keep the text on the screen.
      
      Updated the formatting on theme_data.dart and others to use longer line length.
      
      Also, removed a color tween that faded the value indicator in as it scaled, since that wasn't to spec.
      7fab7f6d
  27. 01 Mar, 2018 1 commit
    • Greg Spencer's avatar
      Slider Visual Update (#14901) · 701eff4a
      Greg Spencer authored
      This implements an update to the look of the Slider widget.
      
      Specifically, it does the following:
      
      * Adds the ability to customize the colors of all components of the slider
      * Adds the ability to customize the shape of the slider thumb and value indicator
      * Adds the ability to show the value indicator on continuous sliders
      * Updates the default value indicator to be a "paddle" shape with new animations.
      * Changes the tick marks to be visible all the time on discrete sliders
      * Fixes a memory leak of an animation controller.
      * Removes "thumbOpenAtMin" flag, which is no longer needed, and can be emulated by the
      custom thumb shape support. It was not widely used.
      * Adds tests for all of the new features.
      701eff4a