- 06 Nov, 2015 1 commit
-
-
Hixie authored
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).
-
- 02 Nov, 2015 1 commit
-
-
Adam Barth authored
This patch introduces the notion of a ModalRoute that puts up a modal barrier and makes the route invisible to hit testing when its animating out. This patch also uses this mechanism in a number of places (including PageRoute). There are still a few more cases to convert, but that's work for a future patch. Fixes #1684
-
- 01 Nov, 2015 1 commit
-
-
Adam Barth authored
The name of the parameter wasn't consistent with IconButton or DrawerItem, etc. Fixes #1871
-
- 30 Oct, 2015 1 commit
-
-
Adam Barth authored
-
- 28 Oct, 2015 2 commits
-
-
Adam Barth authored
Material design icons are defined to work at specific sizes: 18, 24, 36, 48. The current API doesn't reflect that and just takes a size int. If an invalid size is chosen an error is printed to the console and no icon shows up. Fixes #1816
-
Adam Barth authored
-
- 27 Oct, 2015 2 commits
-
-
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.
-
Hixie authored
Instread of an explicit 'enabled' bool, this uses the presence of the event handler to determine if a widget is enabled or not. This means that if you've not passed a handler, your widget will be disabled, which makes sense, since it wouldn't work anyway. Adds this feature to checkbox, and ports raised button, flat button, and radio buttons to this new model. Adds a checkbox to card_collection that can be disabled. Hide a (basically bogus) hint from the (soon to be disabled) strong hint mode in the analyzer that this reveals.
-
- 26 Oct, 2015 3 commits
-
-
Jason Simmons authored
If you load the example and immediately switch to the Portfolio tab, you may see exceptions due to symbols that are in the portfolio list but whose data is not yet present in the stocks map
-
Hixie authored
Make Radio widgets take a type that describes the type of their value, so that you can catch when you use the wrong value. Standardise on ValueChanged<Foo> instead of having a FooValueChanged for every value of Foo.
-
Ian Hickson authored
Back button wasn't reliably working in checked mode.
-
- 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.
-
- 21 Oct, 2015 2 commits
- 20 Oct, 2015 1 commit
-
-
Adam Barth authored
The style we use for callbacks in widgets is "onFoo". These classes were using an order naming convention and just called their callbacks "callback".
-
- 19 Oct, 2015 3 commits
-
-
Adam Barth authored
Instead of requiring clients to use ui.ColorFilter, we show show the ColorFilter class, similar to what we do for Color.
-
Adam Barth authored
We now just use Dart properties, which is more idiomatic.
-
Adam Barth authored
Fixes #1669
-
- 15 Oct, 2015 1 commit
-
-
Hixie authored
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).
-
- 12 Oct, 2015 3 commits
-
-
Hixie authored
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.
-
Adam Barth authored
We changed IconButton to require a ColorFilter to filter the color of the icon.
-
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).
-
- 10 Oct, 2015 3 commits
-
-
Adam Barth authored
-
Adam Barth authored
-
Adam Barth authored
-
- 09 Oct, 2015 2 commits
-
-
Adam Barth authored
MaterialApp assumes that you're using material design. Also move radial reaction and fix imports for stats box.
-
Adam Barth authored
These are now part of material.dart.
-
- 08 Oct, 2015 1 commit
-
-
Hixie authored
Also, have dialog buttons use the accent colour. Also, generally rationalise some of this stuff to match Material better.
-
- 06 Oct, 2015 4 commits
-
-
Hans Muller authored
The margins make using showMenu's menuPosition argument difficult and they're not really needed. I also made a few small gratuitous changes in navigator.dart.
-
Adam Barth authored
Rather than using a custom render object, we can just use a Stack.
-
Adam Barth authored
This patch makes the level of the ToolBar configurable. I've also cleaned up the Tab code slightly. For some reason, there's still a hairline between the ToolBar and the TabBar. We might need to rethink how we draw the background a bit here. Fixes #1454
-
Adam Barth authored
Now SnackBar is an ephemeral route that uses a Placeholder to put itself into the Scaffold. Fixes #673
-
- 05 Oct, 2015 3 commits
-
-
Hixie authored
(These are changes cherry-picked from in-flight branches since they are more independent and could be helpful even without those changes.) - Change RouteBuilder's signature to take a single argument in which the other fields are placed, so that we can keep iterating on those arguments without having to break compatibility each time. Also, this makes defining route builders much simpler (only one argument to ignore rather than a variable number). - Expose the next performance to RouteBuilders, since sometimes the route itself might not be where it's used. - Allow BuildContext to be used to walk children, just like it can for ancestors - Allow BuildContext to be used to get the Widget of the current BuildContext - Allow StatefulComponentElement to be referenced with a type specialisation so that you don't have to cast when you know what the type you're dealing with actually is.
-
Adam Barth authored
Fixes #1170
-
Adam Barth authored
This patch converts drawer to using the "openDialog" pattern for managing its state. Currently, the drawer entrance and exit animation aren't integrated with the navigator's animation system because the drawer's animations can be stopped and reversed, which the navigator can't yet understand. That means dismissing the drawer via the system back button causes the drawer to be removed instanteously. Fixes #715 Fixes #1187
-
- 03 Oct, 2015 2 commits
-
-
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
-
Adam Barth authored
* Rename GestureTapListener (and friends) To GestureTapCallback to match the other gesture callbacks. * Replace "ensureFoo" pattern with ??= operator.
-
- 02 Oct, 2015 1 commit
-
-
Hixie authored
Identify specific parts of a Stock row with a Global Key that can be regenerated later, and pass that key back to event handlers so they can use them to do the transition.
-
- 01 Oct, 2015 1 commit
-
-
Hixie authored
- Rename EdgeDims constructor to EdgeDims.TRBL(). - Add operator== to Size and Offset so that you can compare Size to DebugSize in checked mode. - Add Size.lerp(). - Add various operators to EdgeDims. (*, /, ~/, %) - Add EdgeDims.lerp(). - Update style guide. I went there to fix an EdgeDims constructor example, and stayed because some recent things came up and I wanted to add them before I forgot.
-