1. 02 Nov, 2017 1 commit
    • Greg Spencer's avatar
      Adding proper accommodation for textScaleFactor in chips, and StadiumBorder border. (#12533) · 05e10633
      Greg Spencer authored
      In order to allow chips to be properly drawn when they expand in size (without
      using IntrinsicHeight), I needed a BoxDecoration shape that would be dependent
      upon the rendered height of the widget. This seemed to be pretty generally
      useful, so I added a new ShapeDecoration called StadiumBorder. It uses the
      minimum dimension to adjust the BorderRadius of a rounded rect in the shape
      decoration.
      
      I also converted some uses of BoxShape to be case statements, updated the
      chips to use the StadiumBorder decoration, and updated some of the metrics to match
      the Material spec, as well as implementing lerping to and from StadiumBorder.
      05e10633
  2. 20 Oct, 2017 1 commit
  3. 18 Oct, 2017 1 commit
  4. 17 Oct, 2017 1 commit
  5. 03 Oct, 2017 1 commit
    • Ian Hickson's avatar
      Move Border into its own file (#12364) · ce930db3
      Ian Hickson authored
      I'm about to add the BoxBorder and BorderDirectional classes to
      this new file, but figured it would make review easier if the move
      of the existing class happened first.
      ce930db3
  6. 02 Oct, 2017 1 commit
    • Adam Barth's avatar
      Add Alignment, which will replace FractionalOffset (#12342) · 2b126bcd
      Adam Barth authored
      Unlike FractionalOffset, Alignment uses the center as the zero of the
      coordinate system, which makes the RTL math work out much cleaner.
      
      Also, make FractionalOffset into a subclass of Alignment so that clients
      can continue to use FractionalOffset.
      2b126bcd
  7. 23 Sep, 2017 1 commit
  8. 22 Sep, 2017 1 commit
  9. 21 Sep, 2017 1 commit
  10. 20 Sep, 2017 1 commit
  11. 12 Sep, 2017 1 commit
  12. 21 Aug, 2017 1 commit
    • Jacob Richman's avatar
      Bare bones widget inspector support. (#10332) · 5462ddb9
      Jacob Richman authored
      Bare bones widget inspector support.
      
      Toggle the widget inspector from the flutter tool by pressing 'i'.
      When the widget inspector is select mode:
      Pointer down to to inspect a widget.
      Pointer click to finalize selection of a widget. You can now interact
      with the application as you normally would but with the inspected widget
      highlighted.
      Click the inspect icon in bottom left corner of screen to reactivate
      select mode.
      5462ddb9
  13. 21 Mar, 2017 1 commit
  14. 17 Mar, 2017 1 commit
  15. 23 Feb, 2017 1 commit
  16. 01 Nov, 2016 1 commit
  17. 15 Aug, 2016 1 commit
    • Ian Hickson's avatar
      A Flutter logo widget. (#5382) · 955b3e21
      Ian Hickson authored
      Instead of a PNG, the Flutter gallery widget is now drawn in code.
      
      There's now a FlutterLogoDecoration class that paints the flutter logo
      anywhere you can use a Decoration (e.g. AnimatedContainer).
      
      There's now a FlutterLogo class that honors the IconTheme.
      
      The About dialog box API now takes a Widget for the applicationIcon,
      instead of an ImageProvider. It uses IconTheme to make the icon the
      right size instead of using an Image widget.
      
      Add padding, duration, and curve properties to the DrawerHeader.
      Make the child of a DrawerHeader optional.
      
      Clean up UserAccuntsDrawerHeader a bit.
      
      Add some useful properties and methods to EdgeInsets.
      
      Add some debug logic to RenderDecoratedBox to catch unpaired
      save/restore calls when possible.
      
      Make GestureDetector fill its parent if it has no children. Fixes
      https://github.com/flutter/flutter/issues/5380
      955b3e21
  18. 29 Jul, 2016 1 commit
  19. 29 Apr, 2016 1 commit
    • Adam Barth's avatar
      Improve the TextPainter API (#3621) · e41120bc
      Adam Barth authored
      Instead of using properties, TextPainter now receives min and max width as
      parameters to layout. Also, this patch integrates the intrinsic sizing logic
      into the main layout function, which satisfies all the existing uses cases.
      e41120bc
  20. 27 Apr, 2016 1 commit
  21. 18 Mar, 2016 2 commits
  22. 12 Mar, 2016 1 commit
  23. 11 Feb, 2016 1 commit
    • Ian Hickson's avatar
      Clean up imports and exports. · a94999ba
      Ian Hickson authored
      Each layer is supposed to reexport the parts of the previous layer
      that are part of its API.
      
      - In painting.dart, export from dart:ui all the Canvas-related APIs
        that make sense to be used at higher levels, e.g. PaintingStyle.
      
      - Delete painting/shadows.dart. It was dead code.
      
      - In rendering/object.dart, export all of painting.dart.
      
      - In widgets/basic.dart, export all of painting.dart and
        animation.dart. Some classes in animation/ are renamed to make this
        less disruptive and confusing to the namespace.
      
      - Split out Stocks back into an import model rather than a part model,
        so that it's easier to manage its dependencies on a per-file basis.
      
      - Move Ticker to scheduler library.
      
      - Remove as many redundant imports as possible now.
      
      - Some minor nit picking cleanup in various files.
      a94999ba
  24. 30 Jan, 2016 1 commit
  25. 08 Dec, 2015 1 commit
    • Ian Hickson's avatar
      Make BoxDecoration replaceable. · 2afa87df
      Ian Hickson authored
      Factor out a reusable interface called Decoration from BoxDecoration.
      
      Make all the consumers of BoxDecoration and the erstwhile BoxPainter
      into consumers of Decoration.
      
      Make a BoxPainter be something you get from a Decoration, rather than
      something to which you pass a BoxDecoration.
      
      Rename Shape to BoxShape now that it's documented specifically as
      applying to boxes.
      
      Move EdgeDims to its own file.
      
      Move FractionalOffset up so that it's with the other helper classes in
      its file rather than alone at the end.
      
      Minor change to RenderClipOval's hit testing to avoid taking an
      unnecessary square root.
      
      Rename BoxDecorationPosition to DecorationPosition since
      RenderDecoratedBox now takes any Decoration.
      
      Implement hit testing for rounded rects.
      
      Rename AnimatedBoxDecorationValue to AnimatedDecorationValue, and make
      it support lerping across any Decoration (by deferring to the objects
      involved).
      2afa87df
  26. 22 Nov, 2015 1 commit
  27. 19 Nov, 2015 1 commit
  28. 16 Oct, 2015 1 commit
  29. 09 Oct, 2015 1 commit
    • Adam Barth's avatar
      Rename App to MaterialApp · db3b9e80
      Adam Barth authored
      MaterialApp assumes that you're using material design.
      
      Also move radial reaction and fix imports for stats box.
      db3b9e80
  30. 27 Sep, 2015 1 commit
  31. 26 Sep, 2015 1 commit
  32. 18 Sep, 2015 1 commit
  33. 12 Sep, 2015 1 commit
  34. 08 Sep, 2015 1 commit