1. 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
  2. 02 Mar, 2018 1 commit
    • Greg Spencer's avatar
      Fix render problem on Slider (#15039) · a1d2443e
      Greg Spencer authored
      Fixes a small rendering problem when dragging the slider, as well as a couple of small bugs (de-duping of value changes, and actually using a parameter passed to _unlerp).
      a1d2443e
  3. 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
  4. 25 Jan, 2018 1 commit
  5. 13 Dec, 2017 1 commit
  6. 18 Oct, 2017 1 commit
    • Michael Goderbauer's avatar
      Redesign Semantic Tree Compilation Algorithm (#12605) · f8a2bd20
      Michael Goderbauer authored
      * Oct 12 10:12am
      
      * implicit_semantics_test.dart passes
      
      * refactoring
      
      * works in nice
      
      * minor rename
      
      * more doc comments
      
      * to be explicit check better
      
      * fix test
      
      * ++
      
      * ++
      
      * semantics_9_test (BlockSemantics) and implicit_semantics_test are passing
      
      * doc updates
      
      * tiny refactor
      
      * fix static errors in tests
      
      * fix gesture detector
      
      * ++
      
      * ++
      
      * geometry
      
      * ++
      
      * remove noGeometry
      
      * revert test
      
      * +
      
      * all tests but scrolling/clipping pass
      
      * clipping works
      
      * scrolling halfway
      
      * sliver tests pass
      
      * ALL TESTS PASS
      
      * SemanticsNode changed
      
      * docs and tiny fixes
      
      * card test
      
      * more doc comments
      
      * remove missed print
      
      * more tests
      
      * make test pass on Linux
      
      * remove changes to intellij proj file
      
      * review comments
      f8a2bd20
  7. 12 Oct, 2017 1 commit
  8. 07 Sep, 2017 1 commit
  9. 30 Aug, 2017 1 commit
  10. 24 Aug, 2017 1 commit
  11. 03 Aug, 2017 1 commit
  12. 25 Jul, 2017 1 commit
  13. 20 Jul, 2017 1 commit
    • Mary's avatar
      Add slider customizations (#11185) · bb15e346
      Mary authored
      * adds inactiveColor and showThumb to Slider
      
      * add customizable color and showThumb tests
      
      * remove showThumb, add negative tests
      bb15e346
  14. 03 Jun, 2017 1 commit
  15. 27 May, 2017 1 commit
    • Ian Hickson's avatar
      Much work on the documentation (#10331) · f50caddf
      Ian Hickson authored
      Minor fixes throughout, e.g. removing trailing commas from the end of sample code expressions, changing headings to "sample code" more consistently, removing stale todos, fix typos in a private method name, minor grammar fixes, added some clarifications to CircularProgressIndicator, LinearProgressIndicator, CrossAxisAlignment, added some cross-references to various members, made it slightly clearer that layout algorithms are implementation details.
      
      Clarified "elevation" throughout.
      
      Added docs to InkResponse and InkWell.
      
      Added sample code for: SliverAppBar, Card, ListTile, EdgeInsets, Row, Column, CustomScrollView, ListView, SliverFixedExtentList, and SliverGrid.
      
      Fixes #10317.
      Fixes #10316.
      Fixes #10267. (sort of, see comment therein)
      Fixes #9331. (sort of, see comment therein)
      Fixes #9407. (sort of, see comment therein)
      f50caddf
  16. 17 May, 2017 2 commits
  17. 03 May, 2017 1 commit
  18. 23 Apr, 2017 1 commit
  19. 21 Apr, 2017 1 commit
  20. 12 Apr, 2017 1 commit
    • Ian Hickson's avatar
      Move Point to Offset (#9277) · bf017b79
      Ian Hickson authored
      * Manually fix every use of Point.x and Point.y
      
      Some of these were moved to dx/dy, but not all.
      
      * Manually convert uses of the old gradient API
      
      * Remove old reference to Point.
      
      * Mechanical changes
      
      I applied the following at the root of the Flutter repository:
      
      git ls-files -z | xargs -0 sed -i 's/\bPoint[.]origin\b/Offset.zero/g'
      git ls-files -z | xargs -0 sed -i 's/\bPoint[.]lerp\b/Offset.lerp/g'
      git ls-files -z | xargs -0 sed -i 's/\bnew Point\b/new Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\bconst Point\b/const Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\bstatic Point /static Offset /g'
      git ls-files -z | xargs -0 sed -i 's/\bfinal Point /final Offset /g'
      git ls-files -z | xargs -0 sed -i 's/^\( *\)Point /\1Offset /g'
      git ls-files -z | xargs -0 sed -i 's/ui[.]Point\b/ui.Offset/g'
      git ls-files -z | xargs -0 sed -i 's/(Point\b/(Offset/g'
      git ls-files -z | xargs -0 sed -i 's/\([[{,]\) Point\b/\1 Offset/g'
      git ls-files -z | xargs -0 sed -i 's/@required Point\b/@required Offset/g'
      git ls-files -z | xargs -0 sed -i 's/<Point>/<Offset>/g'
      git ls-files -z | xargs -0 sed -i 's/[.]toOffset()//g'
      git ls-files -z | xargs -0 sed -i 's/[.]toPoint()//g'
      git ls-files -z | xargs -0 sed -i 's/\bshow Point, /show /g'
      git ls-files -z | xargs -0 sed -i 's/\bshow Point;/show Offset;/g'
      
      * Mechanical changes - dartdocs
      
      I applied the following at the root of the Flutter repository:
      
      git ls-files -z | xargs -0 sed -i 's/\ba \[Point\]/an [Offset]/g'
      git ls-files -z | xargs -0 sed -i 's/\[Point\]/[Offset]/g'
      
      * Further improvements and a test
      
      * Fix minor errors from rebasing...
      
      * Roll engine
      bf017b79
  21. 11 Apr, 2017 1 commit
    • xster's avatar
      Rename State.config to widget everywhere (#9273) · 89a7fdfc
      xster authored
      Rename State.config to State.widget
      Rename State.didUpdateConfig to State.didUpdateWidget
      Renamed all State subclasses' local variables named config to something else
      89a7fdfc
  22. 31 Mar, 2017 1 commit
  23. 21 Mar, 2017 1 commit
  24. 10 Mar, 2017 1 commit
  25. 04 Mar, 2017 1 commit
  26. 13 Feb, 2017 1 commit
  27. 13 Jan, 2017 1 commit
    • Adam Barth's avatar
      Add GestureArenaTeam (#7481) · 0139c69c
      Adam Barth authored
      Previously, the Slider used a drag gesture recognizer to move the head
      of the slider, but when the slider was in a vertical scroller, the
      recognizer would wait until the user moved the pointer by enough pixels
      to disambiguate between sliding the slider and scrolling the scroller.
      
      That worked fine for actual drags, but the slider should also move when
      the user taps the track. This patch introduces a tap recognizer to
      handle that behavior.
      
      To avoid the slider's drag and tap recognizers from competing with each
      other in the arena, this patch introduces the notion of a
      GestureArenaTeam, which lets several recognizers combine to form one
      entry in the arena.  If that entry wins, the team picks the first of its
      recognizers as the winner, avoiding latency.
      
      Fixes #7454
      0139c69c
  28. 05 Jan, 2017 2 commits
    • Adam Barth's avatar
      Slider shouldn't be open at min (#7342) · 0c6dc598
      Adam Barth authored
      This patch changes the default appearance of Slider to not have the
      thumb be an open circle at its minimum position. The `thumbOpenAtMin`
      property can enable drawing an open thumb at the min position, which was
      the previous behavior.
      
      Fixes #6941
      0c6dc598
    • Adam Barth's avatar
      Add CupertinoSlider (#7336) · 3176921d
      Adam Barth authored
      This widget matches the style of the iOS slider widget. We don't yet
      have the proper visual design for the disabled state.
      3176921d
  29. 19 Nov, 2016 1 commit
  30. 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
  31. 01 Nov, 2016 1 commit
  32. 23 Oct, 2016 1 commit
  33. 21 Oct, 2016 1 commit
  34. 06 Oct, 2016 1 commit
  35. 26 Sep, 2016 1 commit
    • Ian Hickson's avatar
      Turn off AnimationControllers when not in use (#5902) · 9e673853
      Ian Hickson authored
      This requires all AnimationController objects to be given a
      TickerProvider, a class that can create the Ticker.
      
      It also provides some nice mixins for people who want to have their
      State provide a TickerProvider. And a schedulerTickerProvider for those
      cases where you just want to see your battery burn.
      
      Also, we now enforce destruction order for elements.
      9e673853
  36. 20 Sep, 2016 1 commit
  37. 02 Sep, 2016 1 commit
  38. 16 Aug, 2016 1 commit