Commit Graph

29153 Commits

Author SHA1 Message Date
Hixie
1f5844ea70 Teach Block about padding.
It's common to want a scrolling viewport but with padding around the
contents. Teaching Block about this makes the places that do this
substantially simpler and further buries ScrollableViewport and
BlockBody (they're now only used in scrollable.dart).
2015-11-05 17:14:27 -08:00
Hans Muller
ef866e00a3 Replace Align shrinkWrap parameter with widthFactor and heightFactor 2015-11-05 16:45:05 -08:00
Hixie
aaee3b93da Add more Gesture Arena tests
...and clean them up so it's easier to understand them.
2015-11-05 15:58:53 -08:00
Jason Simmons
6e0b59fc09 Add a flag that selects which Android device ID is the target for Flutter commands 2015-11-05 15:53:32 -08:00
Kris Giesing
6d293b84d4 Remove unneeded flutter.yaml property 2015-11-05 15:25:17 -08:00
Kris Giesing
8a2505b1c8 Add flutter.yaml for address_book example 2015-11-05 15:20:05 -08:00
Hixie
255ed0b951 Make Draggable use gestures
Draggable is now itself a gesture arena member. This means it won't
conflict with other gesture recognisers in the same path.

This also allows variants of Draggable that are triggered by other
gestures.

Also, some cleanup of DoubleTapGestureRecognizer, GestureDetector, and
PrimaryPointerGestureRecognizer.

Also, make MultiTapGestureRecognizer support a timeout for longpress.

Also, make Draggable data be typed.

Also, hide warnings about constructor warnings for now. Analyzer doesn't
support them yet. (Have to do this on a per-line basis)

Directions for future research:
 - animating the avatar (enter/exit transitions)
 - interaction with the navigator (canceling a drag on page navigation, etc)
 - double-tap draggable
2015-11-05 15:16:59 -08:00
Hixie
8831407722 Better asserts for MaterialApp and Navigator
- runApp(new MaterialApp()) was crashing long after the constructor. Now
  it asserts in a more useful location.
- remove the default name for NamedRouteSettings. It was unused anyway.
2015-11-05 15:14:21 -08:00
Matt Perry
5516d12fa1 Merge pull request #1970 from mpcomplete/updater.urls
Fix updater. It was looking for the wrong files.
2015-11-05 18:03:11 -05:00
Matt Perry
72c17afa06 Fix updater. It was looking for the wrong files. 2015-11-05 17:56:50 -05:00
Adam Barth
2fc5a7597c Add the ability to have translucent gesture detectors
A translucent gesture detector still listens for gestures but also lets the
content visually behind the detector receive events.
2015-11-05 12:47:39 -08:00
Adam Barth
043917c5f0 Fix crash in flutter script 2015-11-05 11:14:39 -08:00
Adam Barth
6d1b63cecc Merge pull request #33 from abarth/flutter_bash
Add a bash script for bootstrapping flutter_tools
2015-11-05 10:48:33 -08:00
Adam Barth
dbee5c01e9 Add a bash script for bootstrapping flutter_tools 2015-11-05 00:22:58 -08:00
Adam Barth
8084d3c65d Merge pull request #32 from abarth/flutter_test
Add a command for running unit tests
2015-11-04 23:52:23 -08:00
Adam Barth
fc8cdf4daf Add a command for running unit tests 2015-11-04 23:43:15 -08:00
Adam Barth
f5ce556472 Simplify README 2015-11-04 22:24:53 -08:00
Adam Barth
c8f66a1f6c Merge pull request #31 from abarth/flutter_tools
Flutter tools
2015-11-04 22:10:09 -08:00
Adam Barth
654faaf571 Add flutter_tools to Travis 2015-11-04 22:08:07 -08:00
Adam Barth
a4d0b56072 Merge pull request #30 from syoichi/patch-1
Fix a typo on the README.md
2015-11-04 22:06:32 -08:00
Adam Barth
a06c98ce76 Merge branch 'flutter_tools' 2015-11-04 22:03:51 -08:00
Hans Muller
7bafe54a5e Added LayoutId widget, MultiChildLayoutDelegate.isChild() 2015-11-04 16:58:21 -08:00
Adam Barth
9bc64540c5 Improve hit testing
Now a RenderBox is considered hit if one of its children are hit or it itself
decides that it's hit. In particular, empty space inside a flex won't be hit
because none of the children are located there and a RenderFlex doesn't
consider itself hittable.

Fixes #53
Fixes #1221
2015-11-04 16:51:19 -08:00
Adam Barth
7b36d94455 Use sky_tools 37 2015-11-04 14:50:07 -08:00
Adam Barth
70bd462074 Rev pub specs 2015-11-04 14:49:29 -08:00
Adam Barth
01a6356230 Rev pubspec 2015-11-04 14:26:07 -08:00
Adam Barth
b4fa3fbbf0 Return to the mojo artifacts for Linux 2015-11-04 14:25:47 -08:00
Hans Muller
7a370b8aba Merge pull request #1952 from HansMuller/snack_bottom_fab
One Scaffold layout to rule them all

Expanded the existing CustomMultiChildLayout to handle all of the Scaffold's children.

This change also eliminates the FAB input dead-zone.
2015-11-04 14:00:30 -08:00
Matt Perry
92e3e96ae3 Merge pull request #1949 from mpcomplete/async
Remove use of FakeAsync in signing_test.dart
2015-11-04 16:57:55 -05:00
Hans Muller
875d826294 One Scaffold layout to rule them all. 2015-11-04 13:52:15 -08:00
Hixie
ba3f60f87f Gesture class hierarchy tune-up
Make all the *GestureRecognizer classes inherit from a class called
GestureRecognizer. Give the old GestureRecognizer a name that is more
precise about its purpose. Remove the members of GestureArenaMember that
aren't used by GestureArenas.
2015-11-04 13:18:11 -08:00
Matt Perry
6185fa14d2 Remove use of FakeAsync in signing_test.dart 2015-11-04 16:13:10 -05:00
Viktor Lidholt
e9d5f411ed Merge pull request #1889 from vlidholt/master
Fixes navigation back to main menu in demo game
2015-11-04 13:12:23 -08:00
Matt Perry
84b740a4dd Merge pull request #1946 from mpcomplete/throw
Check platform before opening /dev/urandom
2015-11-04 15:43:56 -05:00
Hixie
6d389722a5 Get more debug info into the rendering layer
- change how we expose settings at the RenderObject layer so that it's
  easier to maintain.
- expose the Widget owner chain in the RenderObject layer debug output
- add debug info to RenderOpacity, RenderIgnorePointer, RenderListener
- make the output for text nodes prettier
2015-11-04 12:37:39 -08:00
Matt Perry
e337b1d2bc Ensure seedRandom doesn't throw if /dev/urandom doesn't exist. 2015-11-04 14:50:04 -05:00
Matt Perry
60fa30a644 Use crypto package for BASE64 encoding.
This means we no longer depend on the dart 1.13 beta SDK.
2015-11-04 14:28:04 -05:00
Matt Perry
4ba8a7f077 Seed the RNG before signing the package. 2015-11-04 14:08:24 -05:00
Matt Perry
d74a7517ef flx: Support for seeding the RNG for package signing.
Add a test for signing/verifying with a random generated key pair.
2015-11-04 14:02:00 -05:00
Matt Perry
f962c0fccf flx: Remove deprecated KeyPair class. 2015-11-04 13:00:57 -05:00
Adam Barth
ef082f7b3c Rev sky_tools dependency 2015-11-04 09:53:19 -08:00
Hans Muller
e12b12e937 Merge pull request #1942 from HansMuller/dropdown_menu
Widen the dropdown menu item InkWells

Previously the horizontal padding on each menu item didn't response to taps.

Fixes #1916
2015-11-04 09:16:44 -08:00
Adam Barth
3ecaeaacd6 Rev flx version 2015-11-04 09:13:21 -08:00
Adam Barth
76c54f148b Rev pubspec 2015-11-04 09:07:29 -08:00
Adam Barth
297e9c33fa Support Jelly Bean 2015-11-04 08:57:33 -08:00
Hans Muller
156645b473 Widen the dropdown menu item InkWells 2015-11-04 08:54:40 -08:00
Adam Barth
ff8e406167 Merge pull request #1912 from aghassemi/master
Adding RawImage component
2015-11-04 08:45:30 -08:00
Ali Ghassemi
1dce2c8591 Updating styles 2015-11-04 08:17:59 -08:00
Adam Barth
c44dd17d47 Always reset parentData when dropping children
Previously, we'd leave the old values in the parent data if the types matches,
but not all render objects would reset these values during layout. For example,
RenderProxyBox doesn't set the position field because it doesn't read the
position field. However, leaving the old data there violates the invariants of
the box protocol and can cause trouble (e.g., localToGlobal giving the wrong
result).

Fixes #1939
2015-11-04 08:02:05 -08:00
Adam Barth
3804107e2d Enable --no-http by default
We still have the --http option as a fallback for now. Once we're confident the
--no-http version works, we'll drop the --http support.

Also, create the FLX in a temp directory and then delete the temp directory
when we're done. Finally, pull the Linux artifacts from the cloud storage
bucket that the buildbot is uploading to.
2015-11-03 19:39:47 -08:00