379 Commits

Author SHA1 Message Date
krisgiesing
d923a8c35f Merge pull request #1617 from krisgiesing/arena_sweep
Arena sweep
2015-10-15 13:08:34 -07:00
Jason Simmons
21d74257cd Merge pull request #1610 from jason-simmons/slice_border_warning
Fix warnings seen when running skyanalyzer in strong mode
2015-10-15 12:59:28 -07:00
Hixie
1f40d96fbf Improve debugging output
Teach dumpRenderTree() to draw actual trees.
Make the TextStyle output terser so it doesn't overflow the output.
Make debugDumpApp() say what mode we're in (checked vs release).
Hide lifecycle state from release mode dumps (since it's checked-only state).
2015-10-15 11:23:23 -07:00
Jason Simmons
5b72a2fdaf Fix warnings seen when running skyanalyzer in strong mode 2015-10-15 10:56:03 -07:00
Adam Barth
0442b642fe Fix TextDecoration.lineThrough
We had a typo in our CSS translation.
2015-10-14 21:30:00 -07:00
Jason Simmons
6bdd288379 Merge pull request #1615 from jason-simmons/edit_text_action_button_2
Implement better synchronization between the state of the input widget and the keyboard IME
2015-10-14 17:36:33 -07:00
Adam Barth
3c94991c96 Merge pull request #1624 from abarth/list_item
Add a ListItem widget
2015-10-14 17:03:32 -07:00
Kris Giesing
e8a0ea3593 Add release semantics, add test 2015-10-14 17:03:26 -07:00
Adam Barth
c17782569d Add a ListItem widget 2015-10-14 16:33:31 -07:00
Hixie
3c95ce621c Transform alignment
For those times where you want to spin something around a point relative
to the size of your box, but you don't know the size of your box.
2015-10-14 15:30:56 -07:00
Jason Simmons
98b83e0cf5 Implement better synchronization between the state of the input widget and the keyboard IME
Also add an input widget API for the keyboard submit button
2015-10-14 15:19:46 -07:00
Kris Giesing
14c9a2c755 Merge remote-tracking branch 'upstream/master' into arena_sweep 2015-10-14 13:39:30 -07:00
krisgiesing
2032d3e41f Merge pull request #1605 from krisgiesing/events-merge
Add dart-layer input event abstraction
2015-10-14 13:36:07 -07:00
Kris Giesing
52c1fe5105 Refactor to move conversion into the binding class 2015-10-14 13:09:51 -07:00
Jason Simmons
d3b5603871 Merge pull request #1604 from jason-simmons/mojo_merge_client_part3
Update to mojo 1292152bf533de1bfebf5966d6246e149f87add3
2015-10-14 11:03:25 -07:00
Hans Muller
921d432092 Added Painter, ScrollingListPainter, MaterialScrollbarPainter
Enabled displaying a scrollbar in ScrollingLists. The scrollbar is painted as an "overlay", i.e. it's painted on top of the scrolling list's visible children.

Added an abstract Painter base class that encapsulates a paint method and the renderer that it's attached to. RenderBlockViewport and HomogenousViewport now support an overlayPainter property. If specified, RenderBlockViewport attaches itself to the overlayPainter when it's attached to the rendering tree. RenderBlockViewport now calls overlayPainter.paint() after it has painted its children.

Added an abstract ScrollingListPainter class that exposes ScrollingList's state which might be needed for painting. Like its scroll direction and scrollOffset. The ScrollingListPainter is notified when a scroll starts and ends.

Defined a Material-specific ScrollingListPainter that renders a scrollbar. The scrollbar thumb is faded in/out when the scroll starts/ends.

Added onScrollStart and onScrollEnd listeners to Scrollable.
2015-10-14 07:59:41 -07:00
Kris Giesing
0284321483 Address more comments 2015-10-13 17:32:04 -07:00
Kris Giesing
9f74a178fd Address comments 2015-10-13 16:57:40 -07:00
Kris Giesing
3021381456 Add hold and sweep semantics to gesture arena 2015-10-13 16:00:15 -07:00
Kris Giesing
0c22900861 Merge remote-tracking branch 'upstream/master' into events-merge 2015-10-13 15:35:45 -07:00
Jason Simmons
f343b7af07 Update to mojo 1292152bf533de1bfebf5966d6246e149f87add3 2015-10-13 15:24:40 -07:00
Kris Giesing
ec205ac5c5 Add dart-layer input event abstraction 2015-10-13 15:16:04 -07:00
Adam Barth
89faf21a10 Merge pull request #1596 from abarth/moar_nine
Add a centerSlice parameter to images
2015-10-13 14:24:06 -07:00
Hixie
1cf1cf9c64 Port first sector demo to fn3
Also, fix warnings in rendering/sector_layout.dart
Also, fix hit testing in rendering/sector_layout.dart
Also, add WidgetToRenderBoxAdapter
Also, make the rendering library debugging tools more resilient to
dumping stuff before layout is complete.
2015-10-13 14:21:52 -07:00
Adam Barth
998a066a82 Add a centerSlice parameter to images
This lets you draw nine-patch images.
2015-10-13 13:21:36 -07:00
Collin Jackson
adb0d2e2df Merge pull request #1586 from collinjackson/dispatchOnScroll
Allow derived classes of Scrollable to listen for scroll events
2015-10-12 17:13:01 -07:00
Hixie
cb77bd44f6 Remove an infinity in layout code. 2015-10-12 17:07:27 -07:00
Hixie
f2cc43a483 Lots of trivial warning fixes
Add type annotations in many places.
Fix some identifiers to have more lint-satisfying names.
Make all operator==s consistent in style.
Reorder some functions for consistency.
Make ParentData no longer dynamic, and fix all the code around that.
2015-10-12 16:31:20 -07:00
Collin Jackson
477a54c375 Allow derived classes of Scrollable to listen for scroll events 2015-10-12 16:10:46 -07:00
Adam Barth
09665c0d7f Change the default MaterialType to canvas
Canvas is by far the most popular type of material by call site (and makes for
a faster default because it doesn't have a RRect clip).
2015-10-12 09:36:47 -07:00
Adam Barth
ecce1eb389 Import dart:ui as ui (instead of as sky) 2015-10-09 20:55:54 -07:00
Adam Barth
65eba90843 Rename package:sky to package:flutter 2015-10-09 20:44:52 -07:00
Adam Barth
5b37f8750d Rename dart:sky to dart:ui 2015-10-09 19:27:13 -07:00
Collin Jackson
6e37b51c0e Painting images should not anti-alias (improves performance) 2015-10-09 14:54:03 -07:00
Adam Barth
f864ec267a Merge pull request #1564 from abarth/fast_white_icons
Make it fast to draw color icons
2015-10-09 14:07:45 -07:00
Adam Barth
ee7c72f4da Make it fast to draw color icons
Instead of using a ColorFilter, plumb the information down to Icon and thereby
to Image.
2015-10-09 14:04:54 -07:00
Hixie
8915cf0b89 Avoid painting previous routes redundantly
...once the animation is done.
2015-10-09 14:03:54 -07:00
Hixie
dfc7f00a88 Remove workarounds that avoided 'super' in mixins
Dart supports this properly now.
2015-10-09 11:24:50 -07:00
Adam Barth
57cc25a3aa Merge pull request #1559 from abarth/new_text_painter
Add a flag to TextPainter to use ParagraphBuilder
2015-10-09 11:23:46 -07:00
Adam Barth
b07ff55044 Add a flag to TextPainter to use ParagraphBuilder
This patch makes it easier to experiment with work on ParagraphBuilder.
2015-10-09 11:20:26 -07:00
Adam Barth
3053e876d0 Remove circular imports of the material.dart library 2015-10-09 10:39:05 -07:00
Adam Barth
db3b9e8052 Rename App to MaterialApp
MaterialApp assumes that you're using material design.

Also move radial reaction and fix imports for stats box.
2015-10-09 10:27:22 -07:00
Adam Barth
cceb4187cc Merge pull request #1556 from abarth/split_widgets
Split material design widgets out of widgets.dart
2015-10-09 10:14:02 -07:00
Adam Barth
cc809491ba Split material design widgets out of widgets.dart
These are now part of material.dart.
2015-10-09 10:07:06 -07:00
Hixie
37bda25196 Relative paths in internal flutter libraries
Now that you import a top-level file for each layer of the Flutter
framework, within the framework we can use relative paths without being
worried about the copy/pasta problem we used to have.
2015-10-09 09:56:40 -07:00
Hixie
892d60d538 Have Flat buttons set their default text styles.
Also, have dialog buttons use the accent colour.
Also, generally rationalise some of this stuff to match Material better.
2015-10-08 16:49:57 -07:00
Hixie
8945e0112f Changing themes caused crash
The root cause was that we crawled the tree to mark anyone who depended
on the updated theme dirty _after_ we crawled it to rebuild it. Thus, if
anyone was already marked dirty when the process started, then got
marked clean by the first (rebuild) walk, then got marked dirty again by
the notification, they'd be clean when they got the notification,
despite already being in the dirty list, which would cause an assertion.

Also IconTheme didn't have an operator==, so it was independently too
aggressive about updates.
2015-10-08 15:21:18 -07:00
Hans Muller
10b99137d4 Merge pull request #1549 from HansMuller/dismissable_dispose
Defunct DismissableState should not have live animations
2015-10-08 13:56:33 -07:00
Hans Muller
fd8e64c402 Defunct DismissableState should not have live animations 2015-10-08 12:19:06 -07:00
Hixie
4254f5fba8 Drawer test. 2015-10-08 12:17:53 -07:00