- 21 Jun, 2016 1 commit
-
-
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.
-
- 07 Jun, 2016 1 commit
-
-
Todd Volkert authored
Fixes 3544
-
- 04 May, 2016 3 commits
-
-
Matt Perry authored
* First pass at a material-style copy/paste toolbar. This mimics the toolbar you see when selecting text in an Android material app. There's still more to do (like integration with the system clipboard), but this seemed like a good stopping point. BUG=https://github.com/flutter/flutter/issues/1567
-
pq authored
The `flutter` package gets more types! Follow-up from: https://github.com/flutter/flutter/pull/3727.
-
Adam Barth authored
Making progress towards document all public APIs in material.dart. We're still missing a few odds and ends (as well as missing docs in tabs.dart, tooltip.dart, and two_level_list.dart).
-
- 21 Apr, 2016 2 commits
-
-
Matt Perry authored
Also simplify handle drawing. All 3 cases are the same, just rotated. Also fix selection changes on iOS.
-
Matt Perry authored
Only partially works. Editing the selected text doesn't work very well, which probably will require engine changes. Currently only draws the selected text and allows you to manipulate the selection with draggable selection handles.
-
- 05 Apr, 2016 1 commit
-
-
Ian Hickson authored
- Rename unselectedColor to unselectedWidgetColor. - Rename selectionColor to textSelectionColor. - Add selectedRowColor. - Remove hintOpacity since it's not tested and has no demo clients. - Add some docs.
-
- 01 Apr, 2016 1 commit
-
-
Adam Barth authored
-
- 31 Mar, 2016 1 commit
-
-
Adam Barth authored
Also, fill out other documentation for these widgets. Fixes #967
-
- 25 Mar, 2016 1 commit
-
-
Matt Perry authored
-
- 14 Mar, 2016 1 commit
-
-
Hixie authored
-
- 13 Mar, 2016 1 commit
-
-
Adam Barth authored
* justifyContent -> mainAxisAlignment * alignItems -> crossAxisAlignment * FlexJustifyContent -> MainAxisAlignment * FlexAlignItems -> CrossAxisAlignment Fixes #231
-
- 12 Mar, 2016 3 commits
-
-
Adam Barth authored
This patch renames StatelessComponent to StatelessWidget and StatefulComponent to StatefulWidget. Fixes #2308
-
Adam Barth authored
Fixes #1382
-
Adam Barth authored
Fixes #1278
-
- 02 Mar, 2016 1 commit
-
-
Adam Barth authored
Rather than managing all the Material Design icons manually, we now manage them using an icon font. The icon font contains glyphs for each icon in an efficient vector format. This patch updates the FLX tooling to include the MaterialIcons font and updates the Icon widget to use the font instead of asset images. Fixes #2313 Fixes #2218 Fixes #2009 Fixes #994
-
- 22 Feb, 2016 1 commit
-
-
Adam Barth authored
In the dark theme, there isn't really a primary swatch, so this API was a sandtrap. Instead, be explicit about the colors we need for various widgets in the theme. Fixes #1277
-
- 13 Feb, 2016 1 commit
-
-
Collin Jackson authored
-
- 11 Feb, 2016 2 commits
-
-
Jason Simmons authored
(see https://github.com/flutter/flutter/issues/1586)
-
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.
-
- 02 Feb, 2016 1 commit
-
-
Adam Barth authored
Now the keyboard is responsible for maintaining the state of the text field.
-
- 31 Jan, 2016 1 commit
-
-
Adam Barth authored
Now the text input control knows how to move the caret when you tap inside the string. There's still some rough edges to polish up, but this patch is the first step. Fixes #108
-
- 30 Jan, 2016 1 commit
-
-
Adam Barth authored
This patch teaches the editing system to paint reasonable selections for single-line text fields, including for bidirectional text. Requires https://github.com/flutter/engine/pull/2318
-
- 26 Jan, 2016 2 commits
-
-
Adam Barth authored
Now we recreate the stub every time we try to connect to the keyboard. The underlying message pipe in the stub cannot be re-used, which is why we previously asserted. Fixes #776
-
Adam Barth authored
Previously, EditableString had many public members because it needed to implement the KeyboardClient interface. However, that's confusing because these methods cannot be called directly. Now EditableString holds a private implementation of the KeyboardClient, which hides the implementation details. Fixes #208 Fixes #209
-
- 25 Jan, 2016 1 commit
-
-
Adam Barth authored
We were getting the proper values, but we thought we were still composing, so the text was still underlined. Fixes #115
-
- 24 Jan, 2016 1 commit
-
-
Adam Barth authored
That way folks can customize it if they want (and it makes the code a bit more self-documenting).
-
- 23 Jan, 2016 3 commits
-
-
Adam Barth authored
Now the label animates from its inline position to above the text and the focus highlight grows into place.
-
Adam Barth authored
RawEditableLine is now responsible for the scrolling behavior, which removes the need for callbacks between RawEditableLine and Input. It also fixes a bug whereby the whole Input widget (including its icon) would scroll when the text got long.
-
Adam Barth authored
Properly support labels, hints, icons, and custom typography.
-
- 22 Jan, 2016 2 commits
-
-
Adam Barth authored
Fixes #1308
-
Adam Barth authored
This patch restructures how we size the editing region of the Input widget. Now RenderEditableLine understands that it's a single-line editing widget and sizes itself correctly.
-
- 21 Jan, 2016 2 commits
-
-
Adam Barth authored
Instead, require the developer to opt-in to autofocusing because autofocusing can be disruptive. Fixes #1307
-
Adam Barth authored
Previously this code was in the animation layer, which didn't make much sense because scrolling is a widget concern.
-
- 16 Jan, 2016 1 commit
-
-
Hixie authored
The dart bindings changed semantics in a non-compatible way.
-
- 11 Jan, 2016 2 commits
-
-
Adam Barth authored
Previously we used a positional argument for widgets that had multiple children. Now we use a named argument that defaults to an empty list. Fixes #241
-
Adam Barth authored
We use the ScrollDirection for more than just scrolling. Fixes #151
-
- 28 Dec, 2015 1 commit
-
-
Ian Hickson authored
Require a Key on Input. Simplify the API for Focus.at() and Focus.moveTo(). Fixes #236. This will require an e-mail to flutter-dev. Make Input grab focus onTap not onPointerDown. Fixes #189. Complain when you use Focus.at() with two different GlobalKeys that are both in the tree at the same time. Fixes #181. Add dartdocs for Focus.moveTo() and Focus.moveScopeTo().
-
- 08 Dec, 2015 1 commit
-
-
Adam Barth authored
After this patch, if you try to use a widget that depends on being enclosed in a material, you now get an assert and a debugPrint if you're not inside a material. Fixes #243
-