From 69643fcb4617a1fa321b9e7aabf00809fa2eab6d Mon Sep 17 00:00:00 2001
From: velociberry <43252840+velociberry@users.noreply.github.com>
Date: Thu, 13 Dec 2018 15:49:21 -0800
Subject: [PATCH 1/4] Update backdrop.md
Line 12. It's unclear what the answer is intended to do. Is it discouraging use in Flutter? When it says you can achieve the result with "existing components and classes" does that mean it's recommending using something other than the backdrop component, or that you can hack the backdrop in a way that's ... something? Unclear what the 3rd sentence means, basically.
Line 16. When you say "a view" do you literally mean the Android definition of a view? https://developer.android.com/reference/android/view/View
Line 16. Does "reveal information behind it" mean reveal the back layer? Or something else?
Line 19. "You will have a separate widget to build out the front layer" Is this "separate widget" referring to the stateful widget or something else? If something else, what is that else?
Line 36. By "secondary" do you mean not dominant in the sense you need to take an action to access it?
Line 36. How is the back layer "persistent"? It's always there, but not always open (and I think often the spec uses persistent to mean active/open/inyourface.
Line 42. Does this mean a single front or back layer, as in not both? Or does it mean both, but is unique in some other way? Unclear on phrasing.
Line 42. "containing the backdrop to a vertical back and forth interaction" what does this mean?
---
docs/components/backdrop.md | 21 +++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)
diff --git a/docs/components/backdrop.md b/docs/components/backdrop.md
index d9d2f26..86f74a7 100644
--- a/docs/components/backdrop.md
+++ b/docs/components/backdrop.md
@@ -2,7 +2,9 @@
#### Engineering Guidance Document
### What is the backdrop?
-The backdrop is a component that consists of a back layer and a front layer. The back layer may be revealed to show context and actions that are relevant to the front layer’s content. To learn more about the backdrop, take a look at the [Material Guidelines](https://material.io/design/components/backdrop.html#).
+The backdrop is a component that consists of a **back layer** and a **front layer**. The front layer displays content. When the back layer is revealed, it shows context and actions related to the front layer’s content.
+
+To learn more about the backdrop, take a look at the [Material Guidelines](https://material.io/design/components/backdrop.html#).
@@ -11,10 +13,13 @@ _No._ In Flutter, the backdrop is an advanced component. Advanced components don
### What are some good ideas for building my own?
When you break it down, backdrops are composed of 2 pieces:
-1. The front layer, a view that displays the user’s main content whose height can change to reveal information behind it on certain events.
-1. The back layer, that contains context and actionable items that can change the information shown on the front layer.
+1. The front layer, a view that displays the user’s main content. It's height can change to reveal information behind it on certain events.
+1. The back layer, which contains context and actionable items. Changes here update the information shown on the front layer.
+
+To start, you can use a [StatefulWidget](https://material.io/design/components/backdrop.html#) to tie the two pieces together. This widget contains the back layer and other widgets, such as the [AppBar](https://flutter.io/catalog/samples/basic-app-bar). You will have a separate widget to build out the front layer.
-You probably want to start with a [StatefulWidget](https://material.io/design/components/backdrop.html#) that ties the two pieces together. This widget will contain the back layer and other widgets such as the [AppBar](https://flutter.io/catalog/samples/basic-app-bar). You will have a separate widget to build out the front layer. To produce the open/close motion of the front layer, build an animation in the back layer’s parent widget and manage it with an [AnimationController](https://docs.flutter.io/flutter/animation/AnimationController-class.html). Then implement a button on the AppBar to trigger the animation.
+**Backdrop motion**
+To produce the open/close motion of the front layer, build an animation in the back layer’s parent widget. Manage that motion with an [AnimationController](https://docs.flutter.io/flutter/animation/AnimationController-class.html). To trigger the animation, implement a button on the AppBar.
### Example code
Example code for building a simple backdrop can be found in the [MDC-Flutter codelabs repo](https://github.com/material-components/material-components-flutter-codelabs/blob/104-complete/mdc_100_series/lib/backdrop.dart).
@@ -28,15 +33,15 @@ See [MDC-103 for Flutter](http://codelabs.developers.google.com/codelabs/mdc-103
To learn more about animations in Flutter, see [flutter.io/animations](flutter.io/animations).
### From a designer’s point of view
-The backdrop is an opportunity to give users easy access to an important element of the app that is secondary to another element. The backdrop’s back layer is persistent yet unobtrusive. Users have immediate access to the actions and content relevant to the front layer.
+The backdrop gives users easy access to an important, secondary element of an app. Its back layer is persistent yet unobtrusive, giving users access to the actions and content relevant to the front layer.
### Why not a reusable code component?
-_The backdrop is complex._ The component uses multiple types of animations and may depend on app-specific models or information. The level of complexity makes it difficult to generalize for a variety of contexts and a poor candidate for a reusable code component.
+_The backdrop is complex._ The component uses multiple types of animations and may depend on app-specific models or information. This makes it difficult to generalize across a variety of contexts. It's not a good candidate for a reusable code component.
_The appearance of the backdrop can change with context._
-* Some apps may only need a single front layer and back layer, containing the backdrop to a vertical back and forth interaction.
+* Some apps only need a single front layer and back layer, containing the backdrop to a vertical back and forth interaction.
* Tabs may necessitate multiple front layer widgets and may also require custom widgets, as the widgets in Flutter don’t currently support the desired interactions.
-In the Material Study [Shrine](https://material.io/design/material-studies/shrine.html#product-architecture), backdrop unveils a menu to filter the products found on the front layer. In [Crane](https://material.io/design/material-studies/crane.html), the backdrop has multiple front layers that change content based on the selected Tab. The backdrop component has many different uses with various potential uses and doesn’t fit a one size fits all.
+In the Material study [Shrine](https://material.io/design/material-studies/shrine.html#product-architecture), the backdrop unveils a menu that allows users to filter products shown on the front layer. In [Crane](https://material.io/design/material-studies/crane.html), the backdrop has multiple front layers, and each front layer changes content based on the selected Tab. The backdrop component can be used many different ways. It isn't a one-size-fits-all component.
_A backdrop is meant to be used only once per app._ You don't need to instantiate more than one for a normal experience even if you have multiple front layers.
From fe00dd24abf7c14bfb6da0ca6db818112c9a026a Mon Sep 17 00:00:00 2001
From: velociberry <43252840+velociberry@users.noreply.github.com>
Date: Fri, 14 Dec 2018 11:32:54 -0800
Subject: [PATCH 2/4] Update backdrop.md
---
docs/components/backdrop.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/components/backdrop.md b/docs/components/backdrop.md
index 86f74a7..88f4173 100644
--- a/docs/components/backdrop.md
+++ b/docs/components/backdrop.md
@@ -16,7 +16,7 @@ When you break it down, backdrops are composed of 2 pieces:
1. The front layer, a view that displays the user’s main content. It's height can change to reveal information behind it on certain events.
1. The back layer, which contains context and actionable items. Changes here update the information shown on the front layer.
-To start, you can use a [StatefulWidget](https://material.io/design/components/backdrop.html#) to tie the two pieces together. This widget contains the back layer and other widgets, such as the [AppBar](https://flutter.io/catalog/samples/basic-app-bar). You will have a separate widget to build out the front layer.
+To start, you can use a [StatefulWidget](https://material.io/design/components/backdrop.html#) to tie the two pieces together. This widget can contain the back layer and other widgets, such as the [AppBar](https://flutter.io/catalog/samples/basic-app-bar). You will have a separate widget to build out the front layer.
**Backdrop motion**
To produce the open/close motion of the front layer, build an animation in the back layer’s parent widget. Manage that motion with an [AnimationController](https://docs.flutter.io/flutter/animation/AnimationController-class.html). To trigger the animation, implement a button on the AppBar.
From 0b0938dd7903d74cf4be1b2db6f05bab834dce33 Mon Sep 17 00:00:00 2001
From: velociberry <43252840+velociberry@users.noreply.github.com>
Date: Fri, 14 Dec 2018 11:56:03 -0800
Subject: [PATCH 3/4] Update backdrop.md
---
docs/components/backdrop.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/components/backdrop.md b/docs/components/backdrop.md
index 88f4173..b739c77 100644
--- a/docs/components/backdrop.md
+++ b/docs/components/backdrop.md
@@ -40,7 +40,7 @@ _The backdrop is complex._ The component uses multiple types of animations and m
_The appearance of the backdrop can change with context._
* Some apps only need a single front layer and back layer, containing the backdrop to a vertical back and forth interaction.
-* Tabs may necessitate multiple front layer widgets and may also require custom widgets, as the widgets in Flutter don’t currently support the desired interactions.
+* Tabs may necessitate multiple front layer widgets and may also require custom widgets, as the widgets in Flutter don’t currently support the desired interactions out of the box.
In the Material study [Shrine](https://material.io/design/material-studies/shrine.html#product-architecture), the backdrop unveils a menu that allows users to filter products shown on the front layer. In [Crane](https://material.io/design/material-studies/crane.html), the backdrop has multiple front layers, and each front layer changes content based on the selected Tab. The backdrop component can be used many different ways. It isn't a one-size-fits-all component.
From fdf4cb081a82438766f22eb0f6f6ce289ee79d0c Mon Sep 17 00:00:00 2001
From: velociberry <43252840+velociberry@users.noreply.github.com>
Date: Fri, 14 Dec 2018 12:55:38 -0800
Subject: [PATCH 4/4] Update backdrop.md
---
docs/components/backdrop.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/components/backdrop.md b/docs/components/backdrop.md
index b739c77..34effdd 100644
--- a/docs/components/backdrop.md
+++ b/docs/components/backdrop.md
@@ -8,12 +8,12 @@ To learn more about the backdrop, take a look at the [Material Guidelines](https
-### Is there a widget for backdrop in Material Components for Flutter?
-_No._ In Flutter, the backdrop is an advanced component. Advanced components don't make great reusable components as they tend to be highly specific to your app. But you can use existing components and classes to achieve the desired interaction!
+### Is there a widget for the backdrop in Material Components for Flutter?
+_No._ . Advanced components don't make great reusable components as they tend to be highly specific to your app. But you can use existing components and classes to achieve the desired interaction!
### What are some good ideas for building my own?
When you break it down, backdrops are composed of 2 pieces:
-1. The front layer, a view that displays the user’s main content. It's height can change to reveal information behind it on certain events.
+1. The front layer, a surface that displays the user’s main content. On certain events, its height can change to reveal information on the back layer.
1. The back layer, which contains context and actionable items. Changes here update the information shown on the front layer.
To start, you can use a [StatefulWidget](https://material.io/design/components/backdrop.html#) to tie the two pieces together. This widget can contain the back layer and other widgets, such as the [AppBar](https://flutter.io/catalog/samples/basic-app-bar). You will have a separate widget to build out the front layer.
@@ -39,7 +39,7 @@ The backdrop gives users easy access to an important, secondary element of an ap
_The backdrop is complex._ The component uses multiple types of animations and may depend on app-specific models or information. This makes it difficult to generalize across a variety of contexts. It's not a good candidate for a reusable code component.
_The appearance of the backdrop can change with context._
-* Some apps only need a single front layer and back layer, containing the backdrop to a vertical back and forth interaction.
+* Some apps only need a single front layer and back layer. This limits the backdrop interaction to moving between the front layer and the back layer.
* Tabs may necessitate multiple front layer widgets and may also require custom widgets, as the widgets in Flutter don’t currently support the desired interactions out of the box.
In the Material study [Shrine](https://material.io/design/material-studies/shrine.html#product-architecture), the backdrop unveils a menu that allows users to filter products shown on the front layer. In [Crane](https://material.io/design/material-studies/crane.html), the backdrop has multiple front layers, and each front layer changes content based on the selected Tab. The backdrop component can be used many different ways. It isn't a one-size-fits-all component.