Commit Graph

29153 Commits

Author SHA1 Message Date
Adam Barth
88a5cf95d2 Rev pub package 2015-09-21 11:04:40 -07:00
Adam Barth
b9c06c0ade Make stateful components work in fn3 2015-09-21 11:02:36 -07:00
Ian Hickson
6a88ec6d71 Merge pull request #1248 from abarth/fn3
Prototype of fn3
2015-09-21 10:26:25 -07:00
Adam Barth
130a5cb6dc Fix analyzer warnings
We were just missing a few type casts in tests to make the analyzer happy.
2015-09-19 19:21:11 -07:00
Devon Carew
9e02fed4e4 Merge pull request #35 from devoncarew/check_all_code
check all the dart code in the project, not just selected libraries
2015-09-19 13:48:00 -07:00
Adam Barth
27e6381eac Update URLs after moving to the Flutter organization 2015-09-19 09:04:33 -07:00
Adam Barth
fe5d511340 Update README.md
s/sky_tools/tools/
2015-09-19 08:50:26 -07:00
Adam Barth
577f8e4a1e Update README.md
s/domokit/flutter/
2015-09-19 08:45:18 -07:00
Adam Barth
76ed7ae20c Update README.md
s/domokit/flutter/
2015-09-19 08:42:10 -07:00
Adam Barth
32ff3e59b4 Update README.md
s/domokit/flutter/
2015-09-19 08:41:31 -07:00
Adam Barth
b4ff5ca6ae Prototype of fn3
This patch contains a prototype of a new widget framework. In this framework,
Components can be reused in the tree as many times as the author desires. Also,
StatefulComponent is split into two pieces, a ComponentConfiguration and a
ComponentState. The ComponentConfiguration is created by the author and can be
reused as many times as desired. When mounted into the tree, the
ComponentConfiguration creates a ComponentState to hold the state for the
component. The state remains in the tree and cannot be reused.
2015-09-18 23:17:52 -07:00
Devon Carew
a4ff100408 check all the dart code in the project, not just selected libraries 2015-09-18 20:59:32 -07:00
James Robinson
a320e712de Address review feedback from pull request #30 2015-09-18 17:03:51 -07:00
James Robinson
7f8319fd25 Merge pull request #30 from jamesr/download_sky_snapshot
Download sky_snapshot from the cloud
2015-09-18 17:02:25 -07:00
James Robinson
cbc35dfacb Download sky_snapshot from the cloud
This adds logic to download and use the sky_snapshot binary from
Google cloud storage when running the 'sky_tools build' command.
The downloaded binary is put into lib/cache/... The binary is
chosen to match the REVISION in the sky_engine package in the
packages directory of whichever package the user wishes to
build a flx from.

Known issues:
*) Assumes linux-x64 host
*) Assumes download will always produce valid executable
*) No clearing of stale cache entries
2015-09-18 16:58:57 -07:00
Hixie
a3ae46b97e Introduce a showPopupMenu() function
Instead of having to manage the popup menu from your app's build
function, you now just call showPopupMenu() with the menu's position and
it takes care of everything for you.

This solves the problem that the popup menu was trying to mutate the
state of the navigator from within its own initState() function.

Also, remove the "route" argument to RouteBase.build() since it equals
"this" by definition...

Also, remove ModalOverlay, and instead put that logic in the navigator.
2015-09-18 16:57:15 -07:00
Ian Fischer
670f14e0f8 Add missing semicolon 2015-09-18 16:29:47 -07:00
Viktor Lidholt
f15b948060 Merge pull request #1246 from vlidholt/master
Improvements to EffectLine in sprites
2015-09-18 16:28:29 -07:00
Ian Hickson
a9ad84a871 Merge pull request #1241 from Hixie/ancestorOfType
Move findAncestorRenderObjectWrapper to RenderObjectWrapper
2015-09-18 16:13:40 -07:00
Viktor Lidholt
a66a5c4bff Improvements to EffectLine in sprites 2015-09-18 15:58:16 -07:00
krisgiesing
93ebc9e417 Merge pull request #1242 from krisgiesing/master
Fix Rect intersection; add test
2015-09-18 15:28:35 -07:00
Kris Giesing
c52b6fb9e8 Fix Rect intersection; add test 2015-09-18 15:22:59 -07:00
Adam Barth
127cd14bf7 Rev pub package 2015-09-18 15:21:54 -07:00
Hixie
c363a9a240 Move findAncestorRenderObjectWrapper to RenderObjectWrapper
That way it's closer to where it's used, and it's more obvious that
anyone can write such functions.
2015-09-18 15:02:14 -07:00
Hixie
d4dd786bd7 Allow route transitions to be more flexible
- Fix AnimationTiming to have defaults for 'interval' and 'curve' since
  that seems to be how we use it.

- Merge RouteBase.build and RouteBase.buildTransition

- Get rid of HistoryEntry, since it added nothing

- Broke out RouteBase.createPerformance() so subclasses can change what
  is created.

- Build the routes backwards so that we more efficiently avoid building
  hidden routes.

- Introduce an explicit way (!hasContent) for RouteState to avoid
  building, rather than the implicit "build returns null" we had before.
2015-09-18 14:25:18 -07:00
jason-simmons
682116529e Merge pull request #1229 from jason-simmons/editable_text_placeholder_flex
In EditableText, wrap the placeholder text in a Row so it will expand to its parent's width
2015-09-18 14:24:26 -07:00
Jason Simmons
80b2c1732a In EditableText, wrap the placeholder text in a Row so it will expand to its parent's width
This will ensure that the width of an empty Input is consistent with the
width of an Input that contains text.

Also add a unit test for the Input widget and a way for tests to provide mock
implementations of Mojo services such as the keyboard.
2015-09-18 13:46:31 -07:00
Adam Barth
94b27e7b81 Merge pull request #1234 from abarth/game_imports
SkySprites should import the public libraries
2015-09-18 12:41:11 -07:00
Hixie
1429b15780 Adjust indent in Positioned to match style guide. 2015-09-18 12:08:44 -07:00
Ian Hickson
81e0ea3551 Merge pull request #1175 from Hixie/performance-view
Require that you pass transitions a performance.
2015-09-18 11:53:58 -07:00
Adam Barth
490b22874a SkySprites should import the public libraries
Importing the public libraries caused a name conflict with dart:sky because we
assume people will import dart:sky into a namespace, so I've also changed
skysprites to import dart:sky into a namespace.
2015-09-18 11:19:39 -07:00
Adam Barth
62458b7b6d Lift docs from Markdown to dartdoc
I've also removed the top-level description of the Sky package. Instead, we
should host that content on flutter.io.
2015-09-18 10:50:45 -07:00
Hixie
e73bbd949e Require that you pass transitions a performance.
This fixes #1103.
2015-09-18 10:30:47 -07:00
Hixie
01778c4895 Provide hooks for when exceptions are thrown.
This might be helpful for #1219.

Also, remove inDebugMode since it's redundant with just using asserts,
which compile entirely out in release mode.
2015-09-18 10:23:58 -07:00
Adam Barth
4467a268ce Move theme into material.dart
Also, introduce Colors and Typography to hold the material colors and the
typography declarations. Previously we expected clients of these libraries to
import them into a namespace, but that doesn't play nice with re-exporting them
from material.dart.
2015-09-18 09:57:21 -07:00
Adam Barth
0c5d0221c8 Rev pub package 2015-09-18 09:56:44 -07:00
Adam Barth
92e7e4935c Update imports after material.dart rename 2015-09-18 09:56:10 -07:00
Hixie
499d832259 Handle the case of a Widget being moved down
When we sync() a Component, we need to clear the old Component's _child
pointer, otherwise if we reuse that Component we'll get confused about
what the old child is.
2015-09-17 17:23:20 -07:00
Ian Hickson
c0d326b17f Merge pull request #1218 from Hixie/toString
Improve debugging aids for widgets, rendering.
2015-09-17 16:27:02 -07:00
Ian Fischer
a89fdd92ce Kill the sky_server on Mac in a way that works to avoid unexpected behavior when working with more than one app at once. 2015-09-17 16:03:29 -07:00
Adam Barth
9ba2a6e136 Merge pull request #29 from jamesr/stamp_skyx
Prepend mojo shebang to skyx files
2015-09-17 16:01:31 -07:00
Adam Barth
409f0e13d4 Merge pull request #1222 from abarth/rm_skyx
Remove the skyx package
2015-09-17 16:00:39 -07:00
Adam Barth
55768124b6 Remove the skyx package
This code is now part of sky_tools.
2015-09-17 16:00:28 -07:00
James Robinson
0b2a946b23 Prepend mojo shebang to skyx files
skyx files are zips, so they can have anything at the start. Having
a shebang line at the start makes it easier to run skyx files in a mojo
environment.
2015-09-17 15:27:33 -07:00
Adam Barth
6626817c86 Rev pub package 2015-09-17 15:26:31 -07:00
Adam Barth
3e9ceec0b1 Improve sky_tools build so that it works from sky_engine
With this patch, we can switch over to using this command from the build system
in the sky_engine repo.
2015-09-17 15:12:15 -07:00
Collin Jackson
847cea15d6 Ensure that the item under the focal point stays in the same place despite zooming 2015-09-17 14:36:48 -07:00
Adam Barth
a75e79f0ce Address review comments from @iansf 2015-09-17 14:02:55 -07:00
Hixie
970c8ce842 Improve debugging aids for widgets, rendering.
We need a short name more often than a tree dump, so toString() should
be the short name.

Make debugDumpRenderTree() a global like debugDumpApp(), for
consistency. It's hard to remember the
SkyBinding.instance.dumpRenderTree() incantation.

Fixes #1179.
2015-09-17 13:59:46 -07:00
Viktor Lidholt
d83b3ba0c8 Merge pull request #1216 from vlidholt/master
Adds TexturedLine and animated EffectLine to sprites
2015-09-17 13:58:49 -07:00