- 23 Nov, 2015 1 commit
-
-
Adam Barth authored
-
- 19 Nov, 2015 1 commit
-
-
Hixie authored
"showSnackBar()" is now a feature of a Scaffold. To get to a Scaffold you either use a global key (`scaffoldKey.currentState.showSnackBar(...)`), or you use `Scaffold.of(context)`. Snack bars no longer have a route. They are entirely managed by the Scaffold. Fixes #432. Snack bars now queue up when you have several of them. Fixes #374. Snack bars now auto-size themselves around their contents. This is step one towards implementing multiline snack bars. Snack bars now self-dismiss after some per-snackbar configurable period. The self-dismissing pauses while a dialog is up above the snackbar (or anything that uses ModalRoute). To enable this, there's now a `ModalRoute.of(context)` API that returns the current ModalRoute, and you will be rebuilt if you asked for this and the route's "current" status changes. To implement this, the Navigator now rebuilds unconditionally any time it pushes or pops a route. Snack bars now use the curves that Android uses for snack bars. Snack bar contents now fade in.
-
- 27 Oct, 2015 1 commit
-
-
Ian Hickson authored
- Change RouteArguments to pass the route's BuildContext rather than the Navigator. This caused the bulk of the examples/ and .../test/ changes (those are mostly mechanical changes). It also meant I could simplify Navigator.of(). - Make initState() actually get called when the State's Element is in the tree, so you can use Foo.of() functions there. Added a test for this also. - Provide a RouteWidget so that routes have a position in the Widget tree. The bulk of the route logic is still in a longer-lived Route object for now. - Make Route.setState() only rebuild the actual route, not the whole navigator. - Provided a Route.of(). - Provided a Route.writeState / Route.readState API that tries to identify the clients by their runtimeType, their key, and their ancestors keys, up to the nearest ancestor with a GlobalKey. - Made scrollables hook into this API to track state. Added a test to make sure this works. - Fix the debug output of GestureDetector and the hashCode of MixedViewport. - Fixed ScrollableWidgetListState<T> to handle infinite lists.
-
- 24 Oct, 2015 1 commit
-
-
Hixie authored
This makes skyanalyzer also check the examples, and fixes everything it found there.
-
- 22 Oct, 2015 1 commit
-
-
Adam Barth authored
Now you don't need to pass the navigator around everywhere.
-
- 19 Oct, 2015 1 commit
-
-
Adam Barth authored
Fixes #1669
-
- 12 Oct, 2015 1 commit
-
-
Adam Barth authored
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).
-
- 06 Oct, 2015 2 commits
-
-
Adam Barth authored
Rather than using a custom render object, we can just use a Stack.
-
Adam Barth authored
Now SnackBar is an ephemeral route that uses a Placeholder to put itself into the Scaffold. Fixes #673
-
- 03 Oct, 2015 1 commit
-
-
Adam Barth authored
After this patch, InkWell is driven by gesture recognizers, which lets us cleanly cancel splashes when the user actually scrolls. I've also refactored all the clients of InkWell to use InkWell to detect gestures instead of wrapping InkWell in a GestureDetector. Fixes #1271
-
- 01 Oct, 2015 1 commit
-
-
Adam Barth authored
-
- 24 Sep, 2015 1 commit
-
-
James Robinson authored
This updates to mojo 4e4d51ce28a and mojo sdk 711a0bcfb141b4 and updates the sky package's pubspec.yaml dependency to '>=0.1.0 <0.2.0' to be compatible with the current mojo package. This includes an update to the Mojo Dart generator to produce real classes for enums and the corresponding updates for users of the KeyboardType enum in Sky as well as one scoped_ptr->std::unique_ptr in shell corresponding to a change in the Mojo EDK. When a new version of the sky and sky_services package are pushed this will fix domokit/mojo#440.
-
- 28 Aug, 2015 1 commit
-
-
Adam Barth authored
We're now using it at the widget layer for everything except scrolling and flinging.
-
- 26 Aug, 2015 1 commit
-
-
Hixie authored
This still leaves Flex and FlexDirection available. At some point once people have transitioned to Row/Column we should rename Flex to _Flex and stop reexporting FlexDirection from basic.dart.
-
- 25 Aug, 2015 2 commits
-
-
Collin Jackson authored
Also, add an example for the date picker
-
Eric Seidel authored
SnackBar's crash if you fail to provide a showing bool. I tried to edit it in the framework, but this seemed easier for now. The snackbar still shows behind the keyboard unfortunately. https://github.com/domokit/sky_engine/issues/810 @collinjackson
-
- 22 Aug, 2015 1 commit
-
-
Adam Barth authored
-
- 21 Aug, 2015 1 commit
-
-
Adam Barth authored
Block -> BlockBody ScrollableBlock -> Block FixedHeightScrollable -> ScrollableWidgetList VariableHeightScrollable -> ScrollableMixedWidgetList BlockViewport -> MixedViewport
-
- 11 Aug, 2015 3 commits
-
-
Eric Seidel authored
Moved from Cards to Tiles and made the printing of the dates nicer by using some code from a Dart SDK example: https://github.com/dart-lang/sdk/blob/master/samples-dev/swarm/swarm_ui_lib/util/DateUtils.dart I also built a UserData class to help keep saving/sorting consistent as well as fixed the sort order to have most recent at the top. @abarth
-
Eric Seidel authored
Now it wont crash on save, but it still doesn't display the error message in a snackbar and this also doesn't wire up the enter/go key to actually do anything. We'll need to implement performEditorAction on our InputConnection implementation to catch this key and pass it along to dart. Our Input control needs to get more powerful to handle things like this, including filtering of input. The code was crashing by triggering a bug in the SnackBar which didn't assert for actions, but crashed when they were not null. Partial fix for https://github.com/domokit/sky_engine/issues/543 @abarth
-
Eric Seidel authored
Fixes https://github.com/domokit/sky_engine/issues/548 @collinjackson
-
- 10 Aug, 2015 1 commit
-
-
Eric Seidel authored
This required me wrapping the new Activity APIs as well as adding the missing pubspec.yaml @abarth
-
- 08 Aug, 2015 1 commit
-
-
Ian Fischer authored
-
- 07 Aug, 2015 1 commit
-
-
Eric Seidel authored
Unforutnately since Input won't show text if it doesn't start with a letter, this actually makes the experiance slightly worse, but this is definitely the right direction. @abarth
-
- 04 Aug, 2015 1 commit
-
-
James Robinson authored
This introduces the notion of event disposition and allows event targets (widgets and render objects) to consume events that should not be processed further. This is needed by the Switch component in the Drawer in the stocks example. The Switch is embedded in a DrawerItem. The Switch handles the gesture tap event to toggle its state and should handle pointer events to allow swiping and draw its own radial reaction. The DrawerItem also handles gesture taps to allow toggling the switch value when tapping anywhere on the drawer and to draw its own ink splash. When tapping on the switch, both the switch's render object and the DrawerItem's listener are in the event dispatch path. The Switch needs to signal in some fashion that it consumed the event so the DrawerItem does not also try to toggle the switch's state.
-
- 28 Jul, 2015 2 commits
-
-
Chinmay Garde authored
-
Chinmay Garde authored
-
- 24 Jul, 2015 2 commits
-
-
Jim Simon authored
Converted demo launcher example to library Converted fitness example to library Converted hello world example to library Converted mine digger example to library Converted stocks example to library
-
Collin Jackson authored
-
- 22 Jul, 2015 1 commit
-
-
Collin Jackson authored
-
- 21 Jul, 2015 1 commit
-
-
Adam Barth authored
-
- 20 Jul, 2015 1 commit
-
-
Collin Jackson authored
-
- 16 Jul, 2015 1 commit
-
-
Collin Jackson authored
-