3702 Commits

Author SHA1 Message Date
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
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
Devon Carew
073ac691a7 Merge pull request #1329 from devoncarew/refactor_commands
refactor commands to move out re-usable functionality
2016-01-21 10:06:16 -08:00
Devon Carew
5daf58ce1e refactor commands to move out re-usable functionality 2016-01-21 09:38:46 -08:00
Adam Barth
b5a098399a Merge pull request #1328 from abarth/mv_scroll_behavior
Move scroll_behavior into widgets
2016-01-21 09:07:20 -08:00
Adam Barth
5065339ce3 Move scroll_behavior into widgets
Previously this code was in the animation layer, which didn't make much
sense because scrolling is a widget concern.
2016-01-20 23:21:11 -08:00
Devon Carew
5776c6e3a7 Merge pull request #1327 from devoncarew/ios_simulator_name
parse out the ios simulator device name
2016-01-20 22:12:29 -08:00
Devon Carew
a14c2d219e parse out the ios simulator device name 2016-01-20 22:01:57 -08:00
Adam Barth
51e2a0a2fe Merge pull request #1325 from abarth/use_parent
Minor animation renames
2016-01-20 21:11:13 -08:00
Adam Barth
89320ee233 Rename Performance to Animation in a couple more places
These should be the last references to the old "performance" name.
2016-01-20 20:51:43 -08:00
Adam Barth
d59da41bfc Use parent consistently for parent animation
Some of the Animation classes that we converted from performances use
the term "master" to refer to the animation upon which they're based.
This patch changes them to use the term "parent", which is consistent
with the rest of the animation classes.
2016-01-20 20:47:15 -08:00
Eric Seidel
bdb52ce081 Merge pull request #1324 from eseidelGoogle/master
Make `flutter start` not report erroneous failure
2016-01-20 18:17:17 -08:00
Eric Seidel
f9c7a8f606 Make flutter start not report erroneous failure
Was failing when starting in the iOS Simulator

@chinmaygarde
2016-01-20 17:57:28 -08:00
Adam Barth
67c4ff99e8 Fix analyzer warning 2016-01-20 17:55:24 -08:00
Adam Barth
d1f0b86c1e Merge pull request #1323 from abarth/rm_simulation_stepper
Merge simulationStepper into AnimationController
2016-01-20 16:57:38 -08:00
Adam Barth
fc8ac4ebdf Merge simulationStepper into AnimationController
Now that we've decided that Animation<double> isn't confined to the interval
0.0 to 1.0, we can expand AnimationController to cover the use cases that used
to require SimulationStepper.

This patch merges SimulationStepper into AnimationController and ports the one
stand-alone client of simulation stepper over to using AnimationController.
2016-01-20 16:42:15 -08:00
Hans Muller
7ca8608a06 Merge pull request #1315 from HansMuller/gallery_section_graphics
Add section images to the gallery home page
2016-01-20 16:39:30 -08:00
Adam Barth
3825c037e7 Merge pull request #1320 from abarth/animation_cleanup
Move ClampedSimulation into newton
2016-01-20 16:05:27 -08:00
Devon Carew
cdf7ad4d32 Merge pull request #1319 from devoncarew/refactor_build_command
refactor build command into two files
2016-01-20 16:02:27 -08:00
Adam Barth
87ab798daf Move ClampedSimulation into newton
ClampedSimulation makes more sense at the newton layer because it's dealing
entirely with newton concepts.
2016-01-20 15:58:05 -08:00
Devon Carew
70fb49fb14 refactor build command into two files 2016-01-20 15:45:34 -08:00
Adam Barth
ecb72f976a Merge pull request #1318 from abarth/finish_port
Port the remainder of the framework to AnimationController
2016-01-20 14:04:36 -08:00
Adam Barth
b988a875ad Remove Performance and AnimatedValue
This patch removes Performance and AnimationValue now that we've ported the
framework over to AnimationController and Tween. This patch also cleans up the
names of the AnimationController classes now that they don't have to avoid
conflicts with the old animation API. Specifically, I've made the following
renames:

 * Animated -> Animation
 * Evaluatable -> Animatable
 * PerformanceStatus -> AnimationStatus

This patch is just renames and moving code around. There aren't any changes in
behavior.
2016-01-20 13:49:35 -08:00
Adam Barth
e459e7124a Port the remainder of the framework to AnimationController
There should be no more uses of Performance or AnimatedValue in the framework
or the examples.
2016-01-20 13:29:05 -08:00
Adam Barth
aabd1ce457 Merge pull request #1317 from abarth/port_widgets
Port most of widgets to AnimationController
2016-01-20 13:25:15 -08:00
Adam Barth
24872f6931 Port most of widgets to AnimationController
I've left transitions and enter_exit_transition out of this patch, but I've
converted the rest.
2016-01-20 13:24:43 -08:00
Hans Muller
e1c53b65f7 Added section images to the gallery home page 2016-01-20 12:15:13 -08:00
Adam Barth
e4940a0114 Merge pull request #1314 from abarth/port_material2
Finish porting material.dart to AnimationController
2016-01-20 10:47:37 -08:00