From afc0550a67c02f87ef7188578bddf1c691213800 Mon Sep 17 00:00:00 2001 From: Hans Muller Date: Fri, 2 Sep 2016 16:13:09 -0700 Subject: [PATCH] Fix circle antialiasing in the animation demo (#5729) --- examples/flutter_gallery/lib/demo/animation_demo.dart | 1 + packages/flutter/lib/src/widgets/scrollable.dart | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/flutter_gallery/lib/demo/animation_demo.dart b/examples/flutter_gallery/lib/demo/animation_demo.dart index 3f9b369cfb..54b9f3d3c5 100644 --- a/examples/flutter_gallery/lib/demo/animation_demo.dart +++ b/examples/flutter_gallery/lib/demo/animation_demo.dart @@ -74,6 +74,7 @@ class _PointDemoPainter extends CustomPainter { drawPoint(canvas, arc.center, Colors.grey[400]); paint + ..isAntiAlias = false // Work-around for github.com/flutter/flutter/issues/5720 ..color = Colors.green[500].withOpacity(0.25) ..strokeWidth = 4.0 ..style = PaintingStyle.stroke; diff --git a/packages/flutter/lib/src/widgets/scrollable.dart b/packages/flutter/lib/src/widgets/scrollable.dart index 1e42279d1e..dba087213e 100644 --- a/packages/flutter/lib/src/widgets/scrollable.dart +++ b/packages/flutter/lib/src/widgets/scrollable.dart @@ -41,8 +41,8 @@ typedef double SnapOffsetCallback(double scrollOffset, Size containerSize); /// A base class for scrollable widgets. /// -/// Commonly used subclasses include [ScrollableList], [ScrollableGrid], and -/// [ScrollableViewport]. +/// Commonly used classes that are based on Scrollable include [ScrollableList], +/// [ScrollableGrid], and [ScrollableViewport]. /// /// Widgets that subclass [Scrollable] typically use state objects that subclass /// [ScrollableState].