|
Update Button to be made of Material
To accomplish this, I made the following changes:
1) Material is now in charge of drawing the material shadows.
2) In order to mix in the style for the shadow, Element now takes a list of
Styles instead of a single style.
3) Update all clients of Element#style to understand that we now have a list.
4) Update components that drawer shadows to have Material do that work instead.
a) One exception: FloatingActionButton draws its own shadow because of its
crazy clip requirements. We'll probably want to find a better way for
FloatingActionButton to clip in the future.
I've also added a widgets-fn example to demo the fn material widgets.
This CL introduces a bug into Drawer whereby you can get ink splashes
everywhere in the drawer. In the future, we'll need to separate out the
different material aspects to get non-splashable materials.
R=rafaelw@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/7d249a32158add826b8f9d275689925a9ef6f31b
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+127 lines, -92 lines) |
Patch |
|
M |
sky/examples/stocks-fn/stockarrow.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sky/examples/stocks-fn/stockrow.dart
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
sky/examples/stocks-fn/stocksapp.dart
|
View
|
|
3 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
A + |
sky/examples/widgets-fn/main.sky
|
View
|
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
|
A + |
sky/examples/widgets-fn/widgets_app.dart
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/button.dart
|
View
|
|
1 chunk |
+13 lines, -21 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/checkbox.dart
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/drawer.dart
|
View
|
|
4 chunks |
+11 lines, -8 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/drawer_header.dart
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/fixed_height_scrollable.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/floating_action_button.dart
|
View
|
|
3 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/icon.dart
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/ink_splash.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/input.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/material.dart
|
View
|
|
4 chunks |
+31 lines, -7 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/menu_divider.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sky/framework/components/menu_item.dart
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sky/framework/components/radio.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sky/framework/components/toolbar.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sky/framework/editing/editable_text.dart
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
sky/framework/fn.dart
|
View
|
|
7 chunks |
+16 lines, -11 lines |
2 comments
|
Download
|
Total messages: 4 (0 generated)
|