4285 Commits

Author SHA1 Message Date
Adam Barth
58c7fdef36 Add RawKeyboardListener
RawKeyboardListener makes it easier to listen for raw keyboard events.

Fixes #787
2016-01-25 20:37:22 -08:00
Adam Barth
19ae1e783b Merge pull request #1371 from abarth/silence_xcodebuild
flutter start shouldn't log xcodebuild output
2016-01-25 18:59:37 -08:00
Adam Barth
b7396ba13e Merge pull request #1379 from abarth/protect_editable_string
Hide EditableString implementation details
2016-01-25 16:43:04 -08:00
Adam Barth
f0ea0eafbb Hide EditableString implementation details
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
2016-01-25 16:10:51 -08:00
Adam Barth
4a01299827 flutter start shouldn't log xcodebuild output
Xcodebuild produces a lot of output that isn't relevant to developers. We
should hide it by default.
2016-01-25 14:09:11 -08:00
Devon Carew
7737117a20 Merge pull request #1369 from devoncarew/improve_device_support
improve device notification support
2016-01-25 13:59:36 -08:00
Devon Carew
080896a305 improve device notification support 2016-01-25 13:50:59 -08:00
Adam Barth
a46fb2c4db Merge pull request #1370 from abarth/commit_on_release
Keyboard service doesn't commit the last edit when it's dismissed
2016-01-25 13:48:30 -08:00
Adam Barth
008af64cce Keyboard service doesn't commit the last edit when it's dismissed
We were getting the proper values, but we thought we were still composing, so
the text was still underlined.

Fixes #115
2016-01-25 13:29:17 -08:00
Matt Perry
b43bd0b1ec Merge pull request #1365 from mpcomplete/apk2
Support local paths to third-party jars in flutter apk.
2016-01-25 16:10:30 -05:00
Adam Barth
9862605f8c Merge pull request #1367 from abarth/better_errors
Improve error messages for iOS workflow
2016-01-25 13:05:28 -08:00
Collin Jackson
dbd39523ce Re-land update to engine
This reverts commit b240cda819627024d5fd54a886b503ed339baed7.
2016-01-25 12:36:44 -08:00
Adam Barth
91e6b21ea6 Improve error messages for iOS workflow
We now check that you've got an "ios" directory and that you have the proper
version of Xcode.
2016-01-25 12:21:13 -08:00
Matt Perry
6610b7ea04 Support local paths to third-party jars in flutter apk.
Also improve the error message a bit if a download fails.
2016-01-25 15:05:06 -05:00
Seth Ladd
dc74fe3d6c Merge pull request #1362 from sethladd/listenhelptext
get a bug fix for multi-line command descriptions
2016-01-25 10:58:10 -08:00
Seth Ladd
fa91b3ff75 get a bug fix for multi-line command descriptions 2016-01-25 09:28:42 -08:00
Ian Hickson
2d6dd63e37 Merge pull request #1361 from Hixie/getPadding
_getPadding was ignoring its argument
2016-01-23 22:05:27 -08:00
Ian Hickson
fae41c223d _getPadding was ignoring its argument 2016-01-23 20:20:44 -08:00
Ian Hickson
63962d2cea Merge pull request #1299 from Hixie/inherited-perf
Reimplement Inherited.notifyDescendants to use a registration list
2016-01-23 18:31:11 -08:00
Ian Hickson
0903cb5fef Refactor Inherited to avoid all the tree walks during build. 2016-01-23 18:21:02 -08:00
Ian Hickson
5494323db9 Move us to HashSet to avoid the overhead of tracking the order 2016-01-23 18:13:13 -08:00
Ian Hickson
b9716b84db Reimplement Inherited.notifyDescendants to use a registration list
...instead of a deep walk.
2016-01-23 18:13:13 -08:00
Adam Barth
0911e5d368 Merge pull request #1352 from abarth/input_features
Add material design features to Input
2016-01-23 17:57:39 -08:00
Adam Barth
5f3b2d4835 Add errorColor to ThemeData
That way folks can customize it if they want (and it makes the code a
bit more self-documenting).
2016-01-23 17:47:09 -08:00
Adam Barth
7faee3e18e Add implicit animations to Input
Now the label animates from its inline position to above the text and
the focus highlight grows into place.
2016-01-23 12:22:15 -08:00
Adam Barth
61f82ee18c Improve the factoring between Input and RawEditableLine
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.
2016-01-23 01:09:22 -08:00
Adam Barth
432bfb4729 Add material design features to Input
Properly support labels, hints, icons, and custom typography.
2016-01-23 00:21:18 -08:00
Collin Jackson
b240cda819 Revert "Update engine"
This reverts commit ab3006345823b1ef8f25046e0a2b054ea4123e12.
2016-01-22 19:31:14 -08:00
Collin Jackson
ab30063458 Update engine 2016-01-22 19:07:59 -08:00
Eric Seidel
4eb4dab543 Merge pull request #1350 from eseidelGoogle/list_linux
Make `flutter list` not crash on linux.
2016-01-22 15:21:28 -08:00
Eric Seidel
7f3ae43b7f Make flutter list not crash on linux.
Turns out linux does have an ideviceinstaller package
however it doesn't contain idevice_id or any of the
other tools we use.  Furthermore we don't have
xcrun or the rest of xcode on linux so we can't
manipulate simulators either.

No sense in printing out a warning that ios isn't supported
every time on linux, so I wrapped that block in osx only.

@chinmaygarde @devoncarew
2016-01-22 14:58:13 -08:00
Adam Barth
ed34622214 Merge pull request #1348 from abarth/focus_blur
Add the ability to lose focus
2016-01-22 14:13:22 -08:00
Adam Barth
4e83a5ccdb Add the ability to lose focus
Fixes #1308
2016-01-22 14:01:51 -08:00
Adam Barth
d081dc677b Merge pull request #1347 from abarth/editable_line
Input widget shrinks when typing a space
2016-01-22 13:35:06 -08:00
Adam Barth
bdef1038e9 Input widget shrinks when typing a space
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.
2016-01-22 13:18:24 -08:00
Adam Barth
4357d08714 Merge pull request #1344 from abarth/icon_color
Simplify colorizing icons
2016-01-22 12:53:41 -08:00
Adam Barth
82e30c8649 Simplify colorizing icons
Now you can colorize an Icon simply by proving a Color for the Icon.
2016-01-22 12:07:45 -08:00
Devon Carew
caf5b7eabd Merge pull request #1334 from devoncarew/refactor_device.dart
Refactor device.dart
2016-01-22 11:22:40 -08:00
Devon Carew
5bce2fbdec refactor platform specific code out of device.dart
remove device type specific checks
2016-01-22 10:51:49 -08:00
Matt Perry
0f505fbf20 Merge pull request #1263 from mpcomplete/apk.tool
'flutter apk' now supports dynamically registered services.
2016-01-22 13:27:10 -05:00
Matt Perry
dcbb4960eb 'flutter apk' now supports dynamically registered services.
Third-party libraries can now provide their own mojo services. They do
so by adding a config.yaml file to their pub package which contains
- a list of service names and java classes which handles that service's
  registration.
- a list of pre-built .jar files to statically link with the app's shell
  when building the app.
2016-01-22 13:20:54 -05:00
Hans Muller
f88c945e05 Merge pull request #1338 from HansMuller/block_children
Change Block children to be a named parameter

This is a backwards incompatible change.
2016-01-22 08:05:10 -08:00
Hans Muller
8218ff683f Change Block children to be a named parameter 2016-01-22 08:04:21 -08:00
Hans Muller
05f79b4e45 Merge pull request #1333 from HansMuller/sublist
Added TwoLevelList et al, a Material Expand/Collapse List Control

A TwoLevelList can can contain TwoLevelListItems, essentially ordinary list items, or TwoLevelSublists which have a list of items of their own. Tapping on a TwoLevelSublist causes it to expand, showing its items. Tapping again causes it to collapse.
2016-01-21 16:36:50 -08:00
Adam Barth
7c8e504eb2 Merge pull request #1337 from abarth/scroll_focus_into_view
Scroll focused input widgets into view
2016-01-21 16:27:50 -08:00
Hans Muller
5ae1b41ca4 Added TwoLevelList 2016-01-21 16:27:18 -08:00
krisgiesing
869d13c18d Merge pull request #1336 from krisgiesing/mediaquery
Add device pixel ratio to MediaQuery
2016-01-21 16:23:47 -08:00
Adam Barth
dd5df79e7b Scroll focused input widgets into view
When opening the keyboard or focusing an input widget, we should scroll the
widget into view so that the user can see what they're typing.
2016-01-21 16:20:54 -08:00
kgiesing
964c155014 Fix up MediaQuery's operator= and hashCode 2016-01-21 16:17:01 -08:00
kgiesing
4d73cf5cba Add device pixel ratio to MediaQuery 2016-01-21 16:03:04 -08:00