- 19 Nov, 2016 1 commit
-
-
Ian Hickson authored
-
- 15 Oct, 2016 1 commit
-
-
Hans Muller authored
-
- 04 Oct, 2016 1 commit
-
-
Adam Barth authored
This widget now lives in Mozart: https://fuchsia.googlesource.com/mozart/+/master/lib/flutter/child_view.dart
-
- 29 Sep, 2016 1 commit
-
-
Adam Barth authored
Fixes #5141
-
- 26 Sep, 2016 1 commit
-
-
Ian Hickson authored
This requires all AnimationController objects to be given a TickerProvider, a class that can create the Ticker. It also provides some nice mixins for people who want to have their State provide a TickerProvider. And a schedulerTickerProvider for those cases where you just want to see your battery burn. Also, we now enforce destruction order for elements.
-
- 20 Sep, 2016 1 commit
-
-
Adam Barth authored
This feature is the implementation of an accessibility feature that changes the size of text by a constant factor. Fixes #5873
-
- 30 Aug, 2016 1 commit
-
-
Dragoș Tiselice authored
Added a widget that cross fades two children while animating the size of the parent based on the children's interpolated sizes.
-
- 18 Aug, 2016 1 commit
-
-
Dragoș Tiselice authored
Added a widget that implicitly animates the size of it child.
-
- 11 Aug, 2016 1 commit
-
-
Dragoș Tiselice authored
Added a simple widget that automatically dispatches a LayoutChangedNotification when its child changes layout.
-
- 16 Jun, 2016 1 commit
-
-
Ian Hickson authored
Overview ======== This patch refactors images to achieve the following goals: * it allows references to unresolved assets to be passed around (previously, almost every layer of the system had to know about whether an image came from an asset bundle or the network or elsewhere, and had to manually interact with the image cache). * it allows decorations to use the same API for declaring images as the widget tree. It requires some minor changes to call sites that use images, as discussed below. Widgets ------- Change this: ```dart child: new AssetImage( name: 'my_asset.png', ... ) ``` ...to this: ```dart child: new Image( image: new AssetImage('my_asset.png'), ... ) ``` Decorations ----------- Change this: ```dart child: new DecoratedBox( decoration: new BoxDecoration( backgroundImage: new BackgroundImage( image: DefaultAssetBundle.of(context).loadImage('my_asset.png'), ... ), ... ), child: ... ) ``` ...to this: ```dart child: new DecoratedBox( decoration: new BoxDecoration( backgroundImage: new BackgroundImage( image: new AssetImage('my_asset.png'), ... ), ... ), child: ... ) ``` DETAILED CHANGE LOG =================== The following APIs have been replaced in this patch: * The `AssetImage` and `NetworkImage` widgets have been split in two, with identically-named `ImageProvider` subclasses providing the image-loading logic, and a single `Image` widget providing all the widget tree logic. * `ImageResource` is now `ImageStream`. Rather than configuring it with a `Future<ImageInfo>`, you complete it with an `ImageStreamCompleter`. * `ImageCache.load` and `ImageCache.loadProvider` are replaced by `ImageCache.putIfAbsent`. The following APIs have changed in this patch: * `ImageCache` works in terms of arbitrary keys and caches `ImageStreamCompleter` objects using those keys. With the new model, you should never need to interact with the cache directly. * `Decoration` can now be `const`. The state has moved to the `BoxPainter` class. Instead of a list of listeners, there's now just a single callback and a `dispose()` method on the painter. The callback is passed in to the `createBoxPainter()` method. When invoked, you should repaint the painter. The following new APIs are introduced: * `AssetBundle.loadStructuredData`. * `SynchronousFuture`, a variant of `Future` that calls the `then` callback synchronously. This enables the asynchronous and synchronous (in-the-cache) code paths to look identical yet for the latter to avoid returning to the event loop mid-paint. * `ExactAssetImage`, a variant of `AssetImage` that doesn't do anything clever. * `ImageConfiguration`, a class that describes parameters that configure the `AssetImage` resolver. The following APIs are entirely removed by this patch: * `AssetBundle.loadImage` is gone. Use an `AssetImage` instead. * `AssetVendor` is gone. `AssetImage` handles everything `AssetVendor` used to handle. * `RawImageResource` and `AsyncImage` are gone. The following code-level changes are performed: * `Image`, which replaces `AsyncImage`, `NetworkImage`, `AssetImage`, and `RawResourceImage`, lives in `image.dart`. * `DecoratedBox` and `Container` live in their own file now, `container.dart` (they reference `image.dart`). DIRECTIONS FOR FUTURE RESEARCH ============================== * The `ImageConfiguration` fields are mostly aspirational. Right now only `devicePixelRatio` and `bundle` are implemented. `locale` isn't even plumbed through, it will require work on the localisation logic. * We should go through and make `BoxDecoration`, `AssetImage`, and `NetworkImage` objects `const` where possible. * This patch makes supporting animated GIFs much easier. * This patch makes it possible to create an abstract concept of an "Icon" that could be either an image or a font-based glyph (using `IconData` or similar). (see https://github.com/flutter/flutter/issues/4494) RELATED ISSUES ============== Fixes https://github.com/flutter/flutter/issues/4500 Fixes https://github.com/flutter/flutter/issues/4495 Obsoletes https://github.com/flutter/flutter/issues/4496
-
- 20 May, 2016 1 commit
-
-
Hans Muller authored
-
- 03 May, 2016 1 commit
-
-
Hans Muller authored
* LayoutBuilder Widget
-
- 27 Apr, 2016 1 commit
-
-
Seth Ladd authored
* add import guidance to library-level docs * add import docs to other packages * fix review comment * clarify which libraries aren't meant to be directly imported
-
- 21 Apr, 2016 1 commit
-
-
Matt Perry authored
Only partially works. Editing the selected text doesn't work very well, which probably will require engine changes. Currently only draws the selected text and allows you to manipulate the selection with draggable selection handles.
-
- 15 Apr, 2016 1 commit
-
-
Ian Hickson authored
We're getting back to the point where we have a bunch of foundation APIs and it's getting confusing having them mixed with services/.
-
- 06 Apr, 2016 1 commit
-
-
Adam Barth authored
Also, port the MixedViewport tests to LazyBlockViewport. Fix bugs found by the tests.
-
- 05 Apr, 2016 1 commit
-
-
Adam Barth authored
LazyBlock is intended as a replacement for MixedViewport. Rather than maintaining a table of all the observed child sizes (like MixedViewport), LazyBlock works by dead reckoning the location of the children based on the existing viewport. This approach makes it easier to resize children because LazyBlock doesn't cache any additional information that would need to be invalidated. This patch contains a first draft of LazyBlock that works in a simple usage scenario. Subsequent patches will replace ScrollableMixedWidgetList with LazyBlock and port the existing ScrollableMixedWidgetList tests over to LazyBlock. Related to #3075
-
- 29 Mar, 2016 1 commit
-
-
Hixie authored
- Add x and y to the parent data, in case it's useful. In point of fact, I ended up not needing it. - Make columnWidths settable rather than having a setter so that the code in the widgets layer is more idiomatic. - Teach setFlatChildren about avoiding unnecessary drop/adopt loops. - Assert that the child list length is correct more aggressively so that we catch the dumb bug I had more quickly next time. - Improve the toString() to handle empty tables better. - Resort the imports in framework.dart. - Introduce a LocalKey for cases where you don't want to allow use of GlobalKey. - Make inflateWidget and deactivateChild public for subclass use. - Table widget. - Cell widget. - TableRow fake widget.
-
- 25 Mar, 2016 1 commit
-
-
Matt Perry authored
-
- 21 Mar, 2016 1 commit
-
-
Adam Barth authored
Fixes #2662
-
- 19 Mar, 2016 1 commit
-
-
Andrew Wilson authored
-
- 12 Mar, 2016 1 commit
-
-
Adam Barth authored
This patch renames StatelessComponent to StatelessWidget and StatefulComponent to StatefulWidget. Fixes #2308
-
- 06 Mar, 2016 1 commit
-
-
Ian Hickson authored
Fixes https://github.com/flutter/flutter/issues/1346
-
- 26 Feb, 2016 1 commit
-
-
Hixie authored
...and friends.
-
- 15 Feb, 2016 1 commit
-
-
Adam Barth authored
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.
-
- 09 Feb, 2016 1 commit
-
-
Hixie authored
-
- 06 Feb, 2016 1 commit
-
-
Adam Barth authored
The virtual viewport machinery now handles all of these use cases. Previous clients of ScrollableWidgetList can use ScrollableLazyList instead.
-
- 03 Feb, 2016 1 commit
-
-
Adam Barth authored
This patch sketches out the basic widgets for creating Mozart child views. We're still missing some of the machinery, so we can't quite create child views yet, but once we supply the ViewHost and teach the compositor how to actually display the child scenes, we'll have something that works.
-
- 29 Jan, 2016 1 commit
-
-
Kris Giesing authored
-
- 27 Jan, 2016 1 commit
-
-
Hixie authored
-
- 26 Jan, 2016 1 commit
-
-
Adam Barth authored
RawKeyboardListener makes it easier to listen for raw keyboard events. Fixes #787
-
- 22 Jan, 2016 1 commit
-
-
Adam Barth authored
This patch restructures how we size the editing region of the Input widget. Now RenderEditableLine understands that it's a single-line editing widget and sizes itself correctly.
-
- 21 Jan, 2016 1 commit
-
-
Adam Barth authored
Previously this code was in the animation layer, which didn't make much sense because scrolling is a widget concern.
-
- 11 Jan, 2016 1 commit
-
-
Ian Hickson authored
-
- 10 Jan, 2016 1 commit
-
-
Ian Hickson authored
-
- 05 Jan, 2016 1 commit
-
-
Adam Barth authored
ScrollableList2 uses the same pattern as ScrollableGrid, which requires the client to allocate widgets for every list item but doesn't inflate them unless they're actually needed for the view. It improves on the original ScrollableList by not requiring a rebuild of the whole visible portion of the list when scrolling. In fact, small scrolls can often be handled entirely by repainting.
-
- 04 Jan, 2016 1 commit
-
-
Adam Barth authored
We now support (vertically) scrollable grids with viewporting. If the scroll doesn't reveal any new rows, we execute the scroll with a repaint (i.e., no layout). If the scroll reveals a new row, we trigger a layout to change the set of materialized children in the viewport.
-
- 09 Dec, 2015 1 commit
-
-
Hans Muller authored
-
- 08 Dec, 2015 2 commits
-
-
Adam Barth authored
-
Jason Simmons authored
Users of MaterialApp can provide an onLocaleChanged handler that will be called to asynchronously fetch locale-specific data. MaterialApp will then instantiate a LocaleQuery that supplies the locale data to its descendants.
-