Commit Graph

18842 Commits

Author SHA1 Message Date
Chinmay Garde
4bd35cdbe9 Minor update to the message logged when multiple devices are connected with no device ID specified 2016-01-26 12:10:46 -08:00
Adam Barth
2ba9687766 Input asserts while keyboard is dismissed
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
2016-01-26 12:03:33 -08:00
Chinmay Garde
9e089f237f Avoid launching Xcode after "flutter ios --init" 2016-01-26 11:56:29 -08:00
Adam Barth
dc7451d642 Merge pull request #1380 from abarth/raw_keyboard_listener
Add RawKeyboardListener
2016-01-25 20:48:46 -08:00
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
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 b240cda819.
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
fa91b3ff75 get a bug fix for multi-line command descriptions 2016-01-25 09:28:42 -08:00
Ian Hickson
fae41c223d _getPadding was ignoring its argument 2016-01-23 20:20:44 -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
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 ab30063458.
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
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
5bce2fbdec refactor platform specific code out of device.dart
remove device type specific checks
2016-01-22 10:51:49 -08: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
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
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
Adam Barth
72931955c8 Merge pull request #1332 from abarth/no_autofocus
Don't autofocus Input widgets by default
2016-01-21 14:53:37 -08:00
krisgiesing
740b612205 Merge pull request #1335 from krisgiesing/asset_close
Remove unused close method from AssetBundle
2016-01-21 14:50:30 -08:00
kgiesing
dab7dde3dd Remove unused close method from AssetBundle 2016-01-21 14:27:51 -08:00
Adam Barth
f176ed27de Don't autofocus Input widgets by default
Instead, require the developer to opt-in to autofocusing because autofocusing
can be disruptive.

Fixes #1307
2016-01-21 14:11:50 -08:00
Adam Barth
d10c5628dc Merge pull request #1330 from abarth/bottom_padding
Scaffold should respect window.padding.bottom
2016-01-21 13:36:51 -08:00
Adam Barth
da7e1e5d4d Scaffold should respect window.padding.bottom
The space for the keyboard is now represented as bottom padding for the window.
By teaching the scaffold to respect the bottom window padding, we move the
floating action button and snackbars out of the way of the keyboard.

This currently works on Android. I'll need to see how to get the keyboard
geometry on iOS for a similar effect.

Fixes #103
2016-01-21 13:30:16 -08:00