1225 Commits

Author SHA1 Message Date
Viktor Lidholt
8be6ed5872 Fitness demo, initial version 2016-02-16 11:51:59 -08:00
Adam Barth
4408c820e1 Rename AutoLayoutParams to AutoLayoutRect
This object represents a rect the auto-layout system.
2016-02-15 16:29:27 -08:00
Adam Barth
c7d71d8ab1 Simplify the AutoLayout API
This patch makes it easier to use the auto layout API:

* We no longer use operator== because that requires an ugly cast by the
  API user.
* Also, "leftEdge" is now just "left" for less verbosity.
* AutoLayoutChild not implies its key from the AutoLayoutParam object.
* We now correctly layout every child of a RenderAutoLayout object even
  if the solver doesn't flush any updates to that child.
2016-02-15 15:25:21 -08:00
Adam Barth
262dd7a63b Add support for autolayout to widgets
This patch teaches the widget framework how to use Cassowary-based
autolayout. To integrate autolayout with widgets, I had to refactor how
RenderAutoLayout worked a bit. Now RenderAutoLayout follows the same
delegate pattern we use for custom paint and custom layout.
2016-02-15 03:01:40 -08:00
Adam Barth
b672a3d436 Stocks input field for company name doesn't work
We weren't listening to the onChange handler.

Fixes #1850
2016-02-14 14:23:40 -08:00
Adam Barth
d6f28faa04 Merge pull request #1867 from abarth/raw_hello_world
Add a raw hello_world that shows "Hello, world"
2016-02-13 19:41:10 -08:00
Ian Hickson
3eb1b412e0 Fix color of icons in drawers in dark theme.
This makes it match the material spec more.
https://www.google.com/design/spec/style/icons.html

Fixes https://github.com/flutter/flutter/issues/1357
2016-02-13 17:10:10 -08:00
Adam Barth
1ab3d3a71c Add a raw hello_world that shows "Hello, world"
Previously, hello_world.dart was an interactive circle. I've moved that
to touch_input.dart. We should eventually harmonize the touch input
examples at all the layers.
2016-02-13 16:51:00 -08:00
Adam Barth
025c43de1c Adds documentation to the layering examples 2016-02-13 16:14:42 -08:00
Adam Barth
aba27211ef Remove reference to non-existent package 2016-02-13 13:15:19 -08:00
Adam Barth
948ae15ca5 Clean up the standalone examples
Our examples have been growing organically over time. This patch cleans
them up to illustrate specific aspects of Flutter.
2016-02-13 11:00:58 -08:00
Collin Jackson
6c2ab9d352 Merge pull request #1847 from collinjackson/input_key
Don’t require global keys for Input, fixes #1828
2016-02-12 17:58:08 -08:00
Ian Hickson
ca4d10d33a Merge pull request #1820 from Hixie/rainbox
Expose more debugging tools in Stocks
2016-02-12 17:21:16 -08:00
Collin Jackson
d4533622e1 Don’t require global keys for Input, fixes #1828 2016-02-12 16:56:10 -08:00
Adam Barth
79035979cd Remove address_book and mine_digger
These examples aren't particularly good models for new Flutter apps.
2016-02-12 15:19:13 -08:00
Hans Muller
f53c1edcab Merge pull request #1838 from HansMuller/goodbye_curly
Bump the flutter_gallery_assets version, rename example apk dirs to android, remove BUILD.gn files
2016-02-12 15:11:50 -08:00
Matt Perry
56c7911ac7 Merge pull request #1834 from mpcomplete/rm.gcm
Remove gcm package from the repository.
2016-02-12 18:08:13 -05:00
Hans Muller
8c78bf47c1 updated flutter_gallery_assets version
rename example apk dirs to android
removed all BUILD.gn files
2016-02-12 15:03:14 -08:00
Matt Perry
721c391885 Remove gcm package from the repository.
I moved it to https://github.com/mpcomplete/flutter_gcm for now.
2016-02-12 17:32:50 -05:00
Hans Muller
8f0fd6364d typography demo 2016-02-12 13:54:28 -08:00
Hixie
fd7be69df0 SizeObserver crusade: snap alignment
Remove the SizeObserver you need to use snap alignment in lists by
having the lists provide the size themselves in the callback.

Also, remove snapAlignmentOffset since we couldn't figure out how to
explain it and it's not really needed.
2016-02-12 12:40:44 -08:00
Hixie
a95c866bf3 Expose more debugging tools in Stocks 2016-02-12 11:41:17 -08:00
Hans Muller
78b3096126 colors demo 2016-02-12 11:31:08 -08:00
Todd Volkert
5d496143ba Review 2016-02-12 08:27:47 -08:00
Todd Volkert
69e1647a87 review comments 2016-02-12 08:18:58 -08:00
Todd Volkert
9048949826 Ignore generated/ instead of ios/ 2016-02-12 08:11:44 -08:00
Hans Muller
8eaa9e69e5 Added a Card demo. 2016-02-11 15:36:50 -08:00
Jason Simmons
279c6149c5 Merge pull request #1747 from jason-simmons/input_field_clear
Change the text/selection value API of the input field
2016-02-11 13:46:13 -08:00
Hixie
8e279f320e Provide a Draggable that starts on drag
This lets it cooperate with other gestures like tap.

The way I implemented this was to refactor the entire Draggable gesture
logic to use a new kind of gesture detector called
MultiDragGestureRecognizer. It works a bit like
MultiTapGestureRecognizer but for drags.

Also some tweaks to the velocity estimator.
2016-02-11 12:54:10 -08:00
Jason Simmons
52c55344d9 Change the text/selection value API of the input field
(see https://github.com/flutter/flutter/issues/1586)
2016-02-11 12:52:15 -08:00
Ian Hickson
abce29f118 Merge pull request #1774 from Hixie/exports
Clean up imports and exports.
2016-02-11 00:12:42 -08:00
Ian Hickson
a94999ba50 Clean up imports and exports.
Each layer is supposed to reexport the parts of the previous layer
that are part of its API.

- In painting.dart, export from dart:ui all the Canvas-related APIs
  that make sense to be used at higher levels, e.g. PaintingStyle.

- Delete painting/shadows.dart. It was dead code.

- In rendering/object.dart, export all of painting.dart.

- In widgets/basic.dart, export all of painting.dart and
  animation.dart. Some classes in animation/ are renamed to make this
  less disruptive and confusing to the namespace.

- Split out Stocks back into an import model rather than a part model,
  so that it's easier to manage its dependencies on a per-file basis.

- Move Ticker to scheduler library.

- Remove as many redundant imports as possible now.

- Some minor nit picking cleanup in various files.
2016-02-11 00:06:23 -08:00
Adam Barth
f4d784dca9 Add an example of creating a custom RenderBox 2016-02-11 00:04:14 -08:00
Hans Muller
66d855274a gallery dialog demos 2016-02-10 16:29:55 -08:00
Hixie
3bd8bc3362 Improve asserts around BoxConstraints
Negative constraints never make sense, so catch those too.

Make RenderObject.layout's isNormalized assert use the newer more fancy
debug version of isNormalized.
2016-02-10 11:12:13 -08:00
Hixie
c56d378868 Draggable: childWhenDragging, maxSimultaneousDrags 2016-02-09 14:47:53 -08:00
Hans Muller
4264d5e749 Added button dialog and snackbar demos 2016-02-09 10:09:54 -08:00
Adam Barth
657eadcdb5 Make the Mozart demo more like a real window manager
We now have a resizer and close button. Also add some shadows and
launcher buttons.
2016-02-08 21:08:12 -08:00
Adam Barth
256af1433c Actually populate the view host proxy
Now that the engine lets us take the view host handle, we can actually
access the view host from Dart.
2016-02-08 15:14:09 -08:00
Adam Barth
9251504a57 Add more dartdoc to widgets.dart
This patch includes documentation for transitions.dart and for
scrollable.dart.
2016-02-05 20:21:42 -08:00
Hans Muller
c9ea79e87e alphabetize component demos 2016-02-05 14:15:52 -08:00
Hans Muller
972781f95f Merge pull request #1638 from HansMuller/gallery_drawer
Gallery support for light/dark theme switching, slow animation speed
2016-02-05 14:12:22 -08:00
Hixie
1a0484cc7e Improve exceptions and asserts for rendering lib.
* Use actual exceptions rather than assertions containing code
  containing strings when trying to give messages to authors.
* Introduce RenderingError which is an AssertionError that takes a
  string argument, to support the above.
* Provide a BoxDimensions.hasBoundedWidth/hasBoundedHeight API.
* Document BoxDimensions.isNormalized.
* Provide more useful information when we assert isNormalized and find
  that it is false.
* When finding the size is infinite, crawl the tree to figure out which
  render box is likely responsible for the infinite constraints.
* Provide more information when size doesn't match the constraints.
* Provide more information when intrinsic dimension methods violate the
  constraints.
* Only spam a huge amount of information for the first exception from
  the rendering library. I've noticed a lot of people looking at the
  last exception printed rather than the first and that's very
  misleading -- after the rendering library hits an exception, all bets
  are off regarding what'll happen in the future. All kinds of asserts
  might fire.
* Improve docs around the debug methods and flags for the above.
* Make Block default to have no children. Previously, giving no children
  crashed with a confusing message about a null deref in an assert.
2016-02-05 13:55:40 -08:00
Hans Muller
2d91452656 gallery gets a drawer 2016-02-05 13:19:37 -08:00
Hans Muller
82e4309960 Support a TabLabel icon Widget builder. 2016-02-05 09:43:17 -08:00
Hans Muller
82bd1789ac fixed a typo 2016-02-04 11:32:01 -08:00
Hans Muller
64c2766c8c Added the FAB per Tab demo 2016-02-04 11:12:45 -08:00
Hans Muller
8741f33ebe Added a flexible appbar gallery demo 2016-02-04 09:42:23 -08:00
Viktor Lidholt
bfc9af5c58 Adds initial version of weather to the gallery app 2016-02-03 15:55:32 -08:00
Alexandre Ardhuin
99b2b84d57 Rename "Toggle Controls" to "Selection Controls"
Fixes #1537
2016-02-03 09:05:37 +01:00