From f64d52e6e51f736fe35d4cf00798522001566851 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 19 Sep 2016 13:27:04 -0700 Subject: [PATCH] Add `@protected` to AnimatedWidget build function (#5929) We use `@protected` in this way in StatelessWidget to avoid developers calling this function directly. --- packages/flutter/lib/src/widgets/transitions.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/flutter/lib/src/widgets/transitions.dart b/packages/flutter/lib/src/widgets/transitions.dart index cd458bd589..a46fb8283a 100644 --- a/packages/flutter/lib/src/widgets/transitions.dart +++ b/packages/flutter/lib/src/widgets/transitions.dart @@ -35,6 +35,7 @@ abstract class AnimatedWidget extends StatefulWidget { /// Override this method to build widgets that depend on the current value /// of the animation. + @protected Widget build(BuildContext context); /// Subclasses typically do not override this method.