Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
44f0feeb
Commit
44f0feeb
authored
Oct 12, 2015
by
Adam Barth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1574 from abarth/material_canvas
Change the default MaterialType to canvas
parents
a1d554a5
09665c0d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
3 additions
and
15 deletions
+3
-15
main.dart
examples/demo_launcher/lib/main.dart
+0
-1
feed.dart
examples/fitness/lib/feed.dart
+1
-4
meal.dart
examples/fitness/lib/meal.dart
+0
-1
measurement.dart
examples/fitness/lib/measurement.dart
+0
-1
settings.dart
examples/fitness/lib/settings.dart
+0
-1
stock_list.dart
examples/stocks/lib/stock_list.dart
+0
-1
stock_settings.dart
examples/stocks/lib/stock_settings.dart
+0
-1
stock_symbol_viewer.dart
examples/stocks/lib/stock_symbol_viewer.dart
+0
-1
scale.dart
examples/widgets/scale.dart
+0
-1
sector.dart
examples/widgets/sector.dart
+0
-1
dialog.dart
packages/flutter/lib/src/material/dialog.dart
+1
-0
material.dart
packages/flutter/lib/src/material/material.dart
+1
-1
snack_bar.dart
packages/flutter/lib/src/material/snack_bar.dart
+0
-1
No files found.
examples/demo_launcher/lib/main.dart
View file @
44f0feeb
...
...
@@ -193,7 +193,6 @@ class DemoHome extends StatelessComponent {
return
new
Scaffold
(
toolBar:
new
ToolBar
(
center:
new
Text
(
'Sky Demos'
)),
body:
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
DemoList
()
)
);
...
...
examples/fitness/lib/feed.dart
View file @
44f0feeb
...
...
@@ -15,7 +15,6 @@ class FitnessItemList extends StatelessComponent {
Widget
build
(
BuildContext
context
)
{
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
ScrollableList
<
FitnessItem
>(
padding:
const
EdgeDims
.
all
(
4.0
),
items:
items
,
...
...
@@ -172,10 +171,9 @@ class FeedFragmentState extends State<FeedFragment> {
Widget
buildBody
()
{
TextStyle
style
=
Theme
.
of
(
context
).
text
.
title
;
if
(
config
.
userData
==
null
)
return
new
Material
(
type:
MaterialType
.
canvas
);
return
new
Material
();
if
(
config
.
userData
.
items
.
length
==
0
)
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
Row
(
[
new
Text
(
"No data yet.
\n
Add some!"
,
style:
style
)],
justifyContent:
FlexJustifyContent
.
center
...
...
@@ -189,7 +187,6 @@ class FeedFragmentState extends State<FeedFragment> {
);
case
FitnessMode
.
chart
:
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
Container
(
padding:
const
EdgeDims
.
all
(
20.0
),
child:
buildChart
()
...
...
examples/fitness/lib/meal.dart
View file @
44f0feeb
...
...
@@ -86,7 +86,6 @@ class MealFragmentState extends State<MealFragment> {
Widget
buildBody
()
{
Meal
meal
=
new
Meal
(
when:
new
DateTime
.
now
());
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
ScrollableViewport
(
child:
new
Container
(
padding:
const
EdgeDims
.
all
(
20.0
),
...
...
examples/fitness/lib/measurement.dart
View file @
44f0feeb
...
...
@@ -173,7 +173,6 @@ class MeasurementFragmentState extends State<MeasurementFragment> {
Measurement
measurement
=
new
Measurement
(
when:
_when
);
// TODO(jackson): Revisit the layout of this pane to be more maintainable
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
Container
(
padding:
const
EdgeDims
.
all
(
20.0
),
child:
new
Column
([
...
...
examples/fitness/lib/settings.dart
View file @
44f0feeb
...
...
@@ -93,7 +93,6 @@ class SettingsFragmentState extends State<SettingsFragment> {
Widget
buildSettingsPane
(
BuildContext
context
)
{
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
ScrollableViewport
(
child:
new
Container
(
padding:
const
EdgeDims
.
symmetric
(
vertical:
20.0
),
...
...
examples/stocks/lib/stock_list.dart
View file @
44f0feeb
...
...
@@ -13,7 +13,6 @@ class StockList extends StatelessComponent {
Widget
build
(
BuildContext
context
)
{
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
ScrollableList
<
Stock
>(
items:
stocks
,
itemExtent:
StockRow
.
kHeight
,
...
...
examples/stocks/lib/stock_settings.dart
View file @
44f0feeb
...
...
@@ -84,7 +84,6 @@ class StockSettingsState extends State<StockSettings> {
// TODO(ianh): Once we have the gesture API hooked up, fix https://github.com/domokit/mojo/issues/281
// (whereby tapping the widgets below causes both the widget and the menu item to fire their callbacks)
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
ScrollableViewport
(
child:
new
Container
(
padding:
const
EdgeDims
.
symmetric
(
vertical:
20.0
),
...
...
examples/stocks/lib/stock_symbol_viewer.dart
View file @
44f0feeb
...
...
@@ -33,7 +33,6 @@ class StockSymbolViewerState extends State<StockSymbolViewer> {
center:
new
Text
(
'
${config.stock.name}
(
${config.stock.symbol}
)'
)
),
body:
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
Block
([
new
Container
(
padding:
new
EdgeDims
.
all
(
20.0
),
...
...
examples/widgets/scale.dart
View file @
44f0feeb
...
...
@@ -61,7 +61,6 @@ class ScaleAppState extends State<ScaleApp> {
toolBar:
new
ToolBar
(
center:
new
Text
(
'Scale Demo'
)),
body:
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
GestureDetector
(
onScaleStart:
_handleScaleStart
,
onScaleUpdate:
_handleScaleUpdate
,
...
...
examples/widgets/sector.dart
View file @
44f0feeb
...
...
@@ -65,7 +65,6 @@ class SectorApp extends MaterialApp {
Widget
buildBody
()
{
return
new
Material
(
type:
MaterialType
.
canvas
,
child:
new
Column
([
new
Container
(
padding:
new
EdgeDims
.
symmetric
(
horizontal:
8.0
,
vertical:
25.0
),
...
...
packages/flutter/lib/src/material/dialog.dart
View file @
44f0feeb
...
...
@@ -118,6 +118,7 @@ class Dialog extends StatelessComponent {
child:
new
Material
(
level:
4
,
color:
_getColor
(
context
),
type:
MaterialType
.
card
,
child:
new
IntrinsicWidth
(
child:
new
Block
(
dialogBody
)
)
...
...
packages/flutter/lib/src/material/material.dart
View file @
44f0feeb
...
...
@@ -23,7 +23,7 @@ class Material extends StatelessComponent {
Material
({
Key
key
,
this
.
child
,
this
.
type
:
MaterialType
.
ca
rd
,
this
.
type
:
MaterialType
.
ca
nvas
,
this
.
level
:
0
,
this
.
color
,
this
.
textStyle
...
...
packages/flutter/lib/src/material/snack_bar.dart
View file @
44f0feeb
...
...
@@ -79,7 +79,6 @@ class SnackBar extends StatelessComponent {
child:
new
Material
(
level:
2
,
color:
_kSnackBackground
,
type:
MaterialType
.
canvas
,
child:
new
Container
(
margin:
const
EdgeDims
.
symmetric
(
horizontal:
_kSideMargins
),
child:
new
DefaultTextStyle
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment