- 17 Jun, 2016 2 commits
-
-
Hans Muller authored
-
Hans Muller authored
-
- 16 Jun, 2016 3 commits
-
-
Hans Muller authored
-
Matt Perry authored
The problem was that the Scaffold was getting a new key each time we navigated to the main page. The key influences where page state is stored, including the scroll offset. So for a single frame, the Scaffold incorrectly thinks the scroll offset is 0 and the app bar should be expanded. BUG=https://github.com/flutter/flutter/issues/4400
-
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
-
- 15 Jun, 2016 1 commit
-
-
Hans Muller authored
-
- 14 Jun, 2016 6 commits
-
-
pq authored
-
pq authored
-
pq authored
-
Hans Muller authored
-
Hans Muller authored
-
pq authored
As of `1.18.0-dev-0`, these cases will get flagged. In the meantime, the
-
- 13 Jun, 2016 4 commits
-
-
Hans Muller authored
-
Hans Muller authored
-
Hans Muller authored
-
Adam Barth authored
This patch is a warmup to improving the visuals in the calculator demo. Related to #4535
-
- 12 Jun, 2016 2 commits
-
-
Adam Barth authored
We now use the `@required` annotation to encourage developers to explicitly set onPressed and onChanged callbacks to null when that would disable the widget. Fixes #287
-
Adam Barth authored
This file is now app.dylib.
-
- 10 Jun, 2016 2 commits
-
-
Adam Barth authored
Cleans up a few style nits in hello_services and adds support for automatic JSON encoding and decoding to the HostMessages interface.
-
Matt Perry authored
- Fix the background color and AppBar transparency on the Recipe page. - Use a Hero animation for the recipe card. - Draw the background image under the status bar on the recipe page. - Added instructional text on favorites page when there are no favorites. BUG=https://github.com/flutter/flutter/issues/4403 BUG=https://github.com/flutter/flutter/issues/4405 BUG=https://github.com/flutter/flutter/issues/4436 BUG=https://github.com/flutter/flutter/issues/4399
-
- 09 Jun, 2016 3 commits
-
-
Matt Perry authored
This repo contains the final licensed images.
-
Ian Hickson authored
Also renames ButtonTheme.footer to ButtonTheme.bar.
-
Ian Hickson authored
We're explicitly saying that making these icons do anything useful is out of scope, so the best we'll do here is show a snackbar.
-
- 08 Jun, 2016 4 commits
-
-
Matt Perry authored
* Add a 'Return to Gallery' drawer option to Pesto. BUG=https://github.com/flutter/flutter/issues/4402 * oops
-
Matt Perry authored
Also update the assets version to pull in better quality logo images. BUG=https://github.com/flutter/flutter/issues/4407
-
Ian Hickson authored
Also, make sure that the parent is notified when they change. Fixes #2298
-
Adam Barth authored
We can viewport the content using a ScrollableGrid. Also, we can use the padding mechanisms of the grid to avoid extra padding widgets.
-
- 07 Jun, 2016 7 commits
-
-
Ian Hickson authored
Also: * Make PaginatedDataTable able to scroll itself horizontally. * Make drop down buttons support having an explicit text style and icon size given. * Fix a bug with drop-down buttons asserting when opened partly off-screen. * Make sure to pop the drop-down button's route if the drop-down button is discarded while the route is up. * Remove extraneous padding on drop-down buttons. (Couldn't figure out why it was there, and it breaks alignment when a drop-down is mixed with other text.) * Some docs improvements. * Add Route.isActive * Add a setState() method to ModalRoutes.
-
Ian Hickson authored
I was also going to implement sorting and emptying the cart but the current data model doesn't make that easy, so I gave up on that. That's why the TODOs are moved around though.
-
Todd Volkert authored
Fixes 3544
-
Adam Barth authored
This lets you build something other than `lib/main.dart`.
-
Matt Perry authored
It's no longer part of the gallery app. BUG=https://github.com/flutter/flutter/issues/4390
-
Adam Barth authored
This fix isn't completely statisfying because it has a scaling limit. The ideal fix would actually viewport the tiles in the grid. However, this fix is much easier at the moment. Fixes #4395
-
Adam Barth authored
Now that there's a new string_scanner in town, we're having dependency resolution conflict because of flutter_markdown's tight dependency. This patch loosens the dependency and resolves the conflict.
-
- 06 Jun, 2016 1 commit
-
-
Adam Barth authored
The `flutter.buildMode` property now controls whether to build in debug, profiling, or release.
-
- 04 Jun, 2016 1 commit
-
-
Ian Hickson authored
Turns out we have the same demo in the "Buttons" section now. We don't need both.
-
- 03 Jun, 2016 4 commits
-
-
Adam Barth authored
The hello_services example can now be built both for Android and iOS.
-
Hans Muller authored
-
Matt Perry authored
* Pesto demo for the Flutter Gallery app. * pesto.special.case
-
Adam Barth authored
This patch adds some sensible defaults to xcode_backend.sh and documents how to build hello_services for iOS using Xcode.
-