1. 17 Apr, 2017 1 commit
  2. 13 Apr, 2017 1 commit
  3. 11 Apr, 2017 1 commit
    • xster's avatar
      Rename State.config to widget everywhere (#9273) · 89a7fdfc
      xster authored
      Rename State.config to State.widget
      Rename State.didUpdateConfig to State.didUpdateWidget
      Renamed all State subclasses' local variables named config to something else
      89a7fdfc
  4. 08 Apr, 2017 1 commit
  5. 31 Mar, 2017 1 commit
  6. 04 Mar, 2017 1 commit
  7. 31 Jan, 2017 1 commit
  8. 19 Nov, 2016 1 commit
  9. 03 Nov, 2016 1 commit
  10. 26 Sep, 2016 1 commit
    • Ian Hickson's avatar
      Turn off AnimationControllers when not in use (#5902) · 9e673853
      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.
      9e673853
  11. 20 Sep, 2016 1 commit
  12. 12 Sep, 2016 1 commit
  13. 09 Sep, 2016 1 commit
  14. 18 Aug, 2016 1 commit
  15. 15 Aug, 2016 1 commit
    • Ian Hickson's avatar
      A Flutter logo widget. (#5382) · 955b3e21
      Ian Hickson authored
      Instead of a PNG, the Flutter gallery widget is now drawn in code.
      
      There's now a FlutterLogoDecoration class that paints the flutter logo
      anywhere you can use a Decoration (e.g. AnimatedContainer).
      
      There's now a FlutterLogo class that honors the IconTheme.
      
      The About dialog box API now takes a Widget for the applicationIcon,
      instead of an ImageProvider. It uses IconTheme to make the icon the
      right size instead of using an Image widget.
      
      Add padding, duration, and curve properties to the DrawerHeader.
      Make the child of a DrawerHeader optional.
      
      Clean up UserAccuntsDrawerHeader a bit.
      
      Add some useful properties and methods to EdgeInsets.
      
      Add some debug logic to RenderDecoratedBox to catch unpaired
      save/restore calls when possible.
      
      Make GestureDetector fill its parent if it has no children. Fixes
      https://github.com/flutter/flutter/issues/5380
      955b3e21
  16. 03 Aug, 2016 1 commit
  17. 16 Jun, 2016 1 commit
    • Ian Hickson's avatar
      Refactor everything to do with images (#4583) · 2dfdc840
      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
      2dfdc840
  18. 06 Jun, 2016 1 commit
  19. 16 May, 2016 2 commits
  20. 14 Apr, 2016 1 commit
  21. 06 Apr, 2016 1 commit
    • Adam Barth's avatar
      LazyBlock docs and physics · 6fd68597
      Adam Barth authored
      This patch adds dartdoc to LazyBlock. Also, this patch fixes the scrolling
      physics of LazyBlock. Previously, we updated a running simulation only when the
      change in scroll behavior changed the current scroll offset. Now we update
      running simulations every time the behavior changes because the simulation
      might depend on quantities other than the current scroll offset.
      6fd68597
  22. 29 Mar, 2016 1 commit
    • Ian Hickson's avatar
      AnimatedOpacity · 962a33f8
      Ian Hickson authored
      This provides an easy way to do implicit opacity transitions.
      962a33f8
  23. 18 Mar, 2016 2 commits
  24. 16 Mar, 2016 1 commit
  25. 14 Mar, 2016 1 commit
  26. 12 Mar, 2016 5 commits
  27. 11 Feb, 2016 1 commit
    • Ian Hickson's avatar
      Clean up imports and exports. · a94999ba
      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.
      a94999ba
  28. 05 Feb, 2016 1 commit
  29. 20 Jan, 2016 2 commits
    • Adam Barth's avatar
      Remove Performance and AnimatedValue · b988a875
      Adam Barth authored
      This patch removes Performance and AnimationValue now that we've ported the
      framework over to AnimationController and Tween. This patch also cleans up the
      names of the AnimationController classes now that they don't have to avoid
      conflicts with the old animation API. Specifically, I've made the following
      renames:
      
       * Animated -> Animation
       * Evaluatable -> Animatable
       * PerformanceStatus -> AnimationStatus
      
      This patch is just renames and moving code around. There aren't any changes in
      behavior.
      b988a875
    • Adam Barth's avatar
      Port most of widgets to AnimationController · 24872f69
      Adam Barth authored
      I've left transitions and enter_exit_transition out of this patch, but I've
      converted the rest.
      24872f69
  30. 18 Jan, 2016 1 commit
    • Ian Hickson's avatar
      Reimplement the theme transition animation by actually animating the Theme. · 73c9ebab
      Ian Hickson authored
      As part of this:
       - A lot of classes got new lerp functions, including e.g. TextStyle.
       - Theme's constructor story got overhauled. You can now configure
         everything if you really want to, and we're better about defaults.
       - Material no longer automatically animates its background color.
         (It still does for its shadow.)
       - Tabs try to get the indicator color from the theme.
       - The fields in ThemeData got reordered for sanity.
       - Theme.== and Theme.hashCode got fixed.
       - Typography got a bit of a spring cleaning.
      
      Fixes #613.
      73c9ebab
  31. 14 Jan, 2016 1 commit
  32. 10 Jan, 2016 2 commits