1. 05 Apr, 2017 1 commit
    • Ian Hickson's avatar
      Update the examples/ README and associated fixes. (#9090) · a52c7b47
      Ian Hickson authored
      This yak shave went as follows:
      
      Fix https://github.com/flutter/flutter/issues/8795 by adding stocks to
      the examples README.
      
      Notice the layers entry in that README isn't quite right either.
      Update that.
      
      Check the layers/README file is worth pointing at.
      
      Update the layers/README.
      
      Let's run some of the layer tests to see if they still work.
      
      Oops, need to update them to gradle.
      
      Ok let's try running them again.
      
      Oops, sector is broken.
      
      Add a test for sector.
      
      Fix sector. Find you need to add an assert to a const constructor.
      
      Notice we need to turn const asserts on for the analyzer.
      
      Notice the analysis_options files are out of sync with each other and
      with the full list of lints.
      
      Turn on the lints that should be on.
      
      Fix the bugs that finds.
      a52c7b47
  2. 02 Apr, 2017 1 commit
    • Adam Barth's avatar
      Rationalize text input widgets (#9119) · ae899486
      Adam Barth authored
      After this patch, there are three major text input widgets:
      
       * EditableText. This widget is a low-level editing control that
         interacts with the IME and displays a blinking cursor.
      
       * TextField. This widget is a Material Design text field, with all the
         bells and whistles. It is highly configurable and can be reduced down
         to a fairly simple control by setting its `decoration` property to
         null.
      
       * TextFormField. This widget is a FormField that wraps a TextField.
      
      This patch also replaces the InputValue data model for these widgets
      with a Listenable TextEditingController, which is much more flexible.
      
      Fixes #7031
      ae899486
  3. 31 Mar, 2017 1 commit
  4. 24 Mar, 2017 1 commit
  5. 21 Mar, 2017 1 commit
  6. 15 Mar, 2017 2 commits
  7. 08 Mar, 2017 1 commit
  8. 04 Mar, 2017 1 commit
  9. 23 Feb, 2017 1 commit
  10. 21 Feb, 2017 1 commit
  11. 14 Feb, 2017 1 commit
  12. 06 Feb, 2017 1 commit
  13. 04 Feb, 2017 1 commit
  14. 02 Feb, 2017 1 commit
  15. 27 Jan, 2017 1 commit
    • Adam Barth's avatar
      Add ScrollView.padding (#7690) · 5ecf8786
      Adam Barth authored
      Uses SliverPadding to implementing paddding in ScrollView. Also, deploy
      ScrollView in more places now that it implements padding.
      
      Finally, remove loader_app.dart because it is not referenced.
      5ecf8786
  16. 26 Jan, 2017 1 commit
  17. 23 Jan, 2017 2 commits
  18. 22 Jan, 2017 1 commit
  19. 19 Jan, 2017 1 commit
    • Adam Barth's avatar
      Migrate from Input to TextField · b2a2ee72
      Adam Barth authored
      We expect TextField to be used much more often than Input. This patch updates
      our old example code to use TextField instead.
      
      See #7031
      b2a2ee72
  20. 09 Jan, 2017 1 commit
  21. 22 Nov, 2016 1 commit
    • Adam Barth's avatar
      Rename Flexible to Expanded and improve docs (#6978) · 8ca4caa4
      Adam Barth authored
      This patch replaces uses of Flexible with Expanded where we're using
      FlexFit.tight. We still need to think of a better name for the
      FlexFit.loose variant.
      
      Also, improve the docs for Row, Column, Flex, and RenderFlex to be more
      problem-oriented and to give a complete account of the layout algorithn.
      
      Fixes #6960
      Fixes #5169
      8ca4caa4
  22. 27 Sep, 2016 1 commit
  23. 19 Aug, 2016 1 commit
  24. 29 Jul, 2016 1 commit
  25. 20 Jul, 2016 1 commit
  26. 25 Jun, 2016 1 commit
  27. 21 Jun, 2016 2 commits
    • Hans Muller's avatar
    • Ian Hickson's avatar
      ImageIcon (#4649) · e502e9c8
      Ian Hickson authored
      Anywhere that accepted IconData now accepts either an Icon or an
      ImageIcon.
      
      Places that used to take an IconData in an `icon` argument, notably
      IconButton and DrawerItem, now take a Widget in that slot. You can wrap
      the value that used to be passed in in an Icon constructor to get the
      same result.
      
      Icon itself now takes the icon as a positional argument, for brevity.
      
      ThemeData now has an iconTheme as well as a primaryIconTheme, the same
      way it has had a textTheme and primaryTextTheme for a while.
      
      IconTheme.of() always returns a value now (though that value itself may
      have nulls in it). It defaults to the ThemeData.iconTheme.
      
      IconThemeData.fallback() is a new method that returns an icon theme data
      structure with all fields filled in.
      
      IconTheme.merge() is a new constructor that takes a context and creates
      a widget that mixes in the new values with the inherited values.
      
      Most places that introduced an IconTheme widget now use IconTheme.merge.
      
      IconThemeData.merge and IconThemeData.copyWith act in a way analogous to
      the similarly-named members of TextStyle.
      
      ImageIcon is introduced. It acts like Icon but takes an ImageProvider
      instead of an IconData.
      
      Also: Fix the analyzer to actually check the stocks app.
      e502e9c8
  28. 20 Jun, 2016 1 commit
  29. 14 Jun, 2016 2 commits
    • pq's avatar
      Added asserts. · f5a4e632
      pq authored
      f5a4e632
    • pq's avatar
      Add missing returns. · 7a955487
      pq authored
      As of `1.18.0-dev-0`, these cases will get flagged.  In the meantime, the
      7a955487
  30. 07 Jun, 2016 1 commit
  31. 24 May, 2016 1 commit
  32. 07 May, 2016 1 commit
    • Adam Barth's avatar
      Move TextAlign out of TextStyle (#3789) · ee903af0
      Adam Barth authored
      TextAlign applies to a whole paragraph instead of applying to an individual
      text span. This patch moves the property out of TextStyle and into a separate
      property on Text and RichText.
      ee903af0
  33. 06 Apr, 2016 1 commit
    • Adam Barth's avatar
      PopupMenuButton should lazily build menu items · 7ab122e5
      Adam Barth authored
      Previously, the client of PopupMenuButton needed to build all the menu times
      
      when building the PopupMenuButton. This can get expensive if, for example, each
      item in a scrollable list has a popup menu associated with it.
      
      Now the client passes a builder function to the PopupMenuButton that gets
      invoked only when its time to show the menu items.
      7ab122e5
  34. 24 Mar, 2016 2 commits
    • Adam Barth's avatar
      Replace EdgeInsets.TRBL with EdgeInsets.fromLTRB · c8c325d0
      Adam Barth authored
      This matches the pattern from Rect. I've left EdgeInsets.TRBL marked as
      deprecated to give clients a chance to update.
      
      Fixes #2860
      c8c325d0
    • Hixie's avatar
      Support hairline borders · 9fc29dbb
      Hixie authored
      Previously, border with '0' was ambiguous. Sometimes we treated it as
      hairline borders, sometimes as "don't show the border", though even in
      the latter case we did some graphics work sometimes. Now we have an
      explicit BorderStyle.none flag to not draw the border efficiently.
      9fc29dbb
  35. 14 Mar, 2016 1 commit