- 23 Jan, 2017 1 commit
-
-
Ian Hickson authored
...now that we have generic methods, their types need to be specified too.
-
- 18 Jan, 2017 1 commit
-
-
Hans Muller authored
-
- 11 Jan, 2017 1 commit
-
-
Adam Barth authored
Previously we asserted that the element was not in the dirty list, but there are scenarios where the element can be in the dirty list already. This patch makes markNeedsBuild handle those cases by simply resorting the dirty list. Fixes #6119
-
- 19 Nov, 2016 1 commit
-
-
Ian Hickson authored
-
- 09 Nov, 2016 1 commit
-
-
Chinmay Garde authored
-
- 03 Nov, 2016 1 commit
-
-
Ian Hickson authored
-
- 05 Oct, 2016 1 commit
-
-
Adam Barth authored
Fixes #6215
-
- 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
-
- 26 Aug, 2016 1 commit
-
-
Ian Hickson authored
Somehow we missed this before. Fixes https://github.com/flutter/flutter/issues/5615
-
- 27 Jun, 2016 1 commit
-
-
Adam Barth authored
* Change how navigator prevents redundant operations Instead of requiring transactions, we now cancel all active pointers that are interacting with the navigator and absorb future pointers until we get a chance to build. This approach isn't perfect (e.g., events that trigger off the cancelled pointers could still interact with the navigator), but it should be better than the current transaction-based approach. Fixes #4716 * Remove openTransaction * test * fixup
-
- 20 Jun, 2016 1 commit
-
-
Todd Volkert authored
* System chrome overlay style fixes 1) Add a cache to avoid superfluous calls to the embedder 2) Coalesce calls to the embedder that are made in the same event loop 3) Move call site to material's AppBar from Title widget #4461
-
- 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
-
- 07 Jun, 2016 1 commit
-
-
Todd Volkert authored
Fixes 3544
-
- 03 Jun, 2016 1 commit
-
-
Adam Barth authored
This patch starts working through the missing dartdocs in widgets.dart.
-
- 25 May, 2016 1 commit
-
-
Adam Barth authored
For consistency. Fixes #4142
-
- 16 May, 2016 2 commits
-
-
Ian Hickson authored
This reverts commit 55f9145e. Turns out that this commit breaks apps that use the material library, because of the _errorTextStyle DefaultTextStyle which has inherit:true. Just setting it to false doesn't work, unfortunately, because then you hit some sort of issue with merging that text style with others that have inherit:true.
-
Adam Barth authored
To make it clear that this constructor requires an explicit style. Also throw a descriptive error recommending the inherit constructor for styles with the inherit bit set. Fixes #3842
-
- 28 Apr, 2016 1 commit
-
-
Ian Hickson authored
Apps that didn't use [WidgetsApp] were not sending the `'Widgets completed first useful frame'` notification. This fixes that by making the code cleaner.
-
- 22 Apr, 2016 3 commits
-
-
Ian Hickson authored
This adds in particular the ability to track the time at which the framework boots up, and the time at which we are confident we have completed the first useful frame.
-
Ian Hickson authored
The old names were getting silly and started stepping on valuable namespace. The new names are consistent and clear.
-
Hans Muller authored
* Refactored MaterialApp
-
- 21 Apr, 2016 2 commits
-
-
Ian Hickson authored
Previously the widgets layer only provided a concrete binding, which makes it awkward to extend it compared to other bindings. This moves widgets to the same style as the other layers. In a subsequent patch I'll use this to make the tests layer saner.
-
Eric Seidel authored
This only works for apps which use WidgetsApp. Apps which don't (like the game) could presumably read the static themselves off of WidgetsApp. @devoncarew @hixie
-
- 19 Apr, 2016 1 commit
-
-
Ian Hickson authored
The defaulting logic for bundles really belongs in the services layer, not the widgets layer. This way we can tell non-widget code just to use rootBundle if it just wants to read a JSON file or some such.
-
- 13 Apr, 2016 1 commit
-
-
Ian Hickson authored
-
- 25 Mar, 2016 1 commit
-
-
Adam Barth authored
Now MediaQuery.of always returns a non-null value. By default, you get the values associated with the current ui.Window. Fixes #2894
-
- 24 Mar, 2016 1 commit
-
-
Adam Barth authored
This matches the pattern from Rect. I've left EdgeInsets.TRBL marked as deprecated to give clients a chance to update. Fixes #2860
-
- 19 Mar, 2016 1 commit
-
-
Andrew Wilson authored
-
- 18 Mar, 2016 2 commits
-
-
Ian Hickson authored
- Make the textStyle optional - Remove routes - Make onGenerateRoute required - Add some dartdocs
-
Hixie authored
Now that the overlay actually respects the position we give it, put it somewhere where the keyboard won't overlap it.
-
- 14 Mar, 2016 1 commit
-
-
Hixie authored
-
- 13 Mar, 2016 1 commit
-
-
Adam Barth authored
Fixes #2353
-
- 12 Mar, 2016 2 commits
-
-
Adam Barth authored
This patch renames StatelessComponent to StatelessWidget and StatefulComponent to StatefulWidget. Fixes #2308
-
Adam Barth authored
Fixes #1382
-
- 06 Mar, 2016 1 commit
-
-
Ian Hickson authored
Fixes https://github.com/flutter/flutter/issues/1346
-
- 04 Mar, 2016 1 commit
-
-
Adam Barth authored
We get the icons from the iconfont now. Also, remove the package:flutter CHANGELOG.md. This file is outdated and the git history is a more accurate change log these days.
-
- 21 Feb, 2016 1 commit
-
-
Adam Barth authored
These files are already in the "material" folder. They don't need to be prefixed with material again. Fixes #702
-
- 11 Feb, 2016 1 commit
-
-
Ian Hickson authored
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.
-
- 09 Feb, 2016 1 commit
-
-
Hixie authored
-
- 29 Jan, 2016 1 commit
-
-
Kris Giesing authored
-