Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
ad0d74a4
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ad0d74a4
编写于
9月 08, 2015
作者:
A
Adam Barth
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Introduce painting.dart and move painting code to src/painting
上级
9ef7ebe7
变更
37
显示空白变更内容
内联
并排
Showing
37 changed file
with
63 addition
and
50 deletion
+63
-50
examples/demo_launcher/lib/main.dart
examples/demo_launcher/lib/main.dart
+1
-1
examples/fitness/lib/main.dart
examples/fitness/lib/main.dart
+1
-1
examples/game/lib/game_demo.dart
examples/game/lib/game_demo.dart
+1
-1
examples/game/lib/main.dart
examples/game/lib/main.dart
+1
-1
examples/mine_digger/lib/main.dart
examples/mine_digger/lib/main.dart
+1
-1
sky/packages/sky/lib/README.md
sky/packages/sky/lib/README.md
+6
-6
sky/packages/sky/lib/painting.dart
sky/packages/sky/lib/painting.dart
+14
-0
sky/packages/sky/lib/src/painting/README.md
sky/packages/sky/lib/src/painting/README.md
+0
-0
sky/packages/sky/lib/src/painting/box_painter.dart
sky/packages/sky/lib/src/painting/box_painter.dart
+1
-1
sky/packages/sky/lib/src/painting/radial_reaction.dart
sky/packages/sky/lib/src/painting/radial_reaction.dart
+0
-0
sky/packages/sky/lib/src/painting/shadows.dart
sky/packages/sky/lib/src/painting/shadows.dart
+0
-0
sky/packages/sky/lib/src/painting/text_painter.dart
sky/packages/sky/lib/src/painting/text_painter.dart
+2
-2
sky/packages/sky/lib/src/painting/text_style.dart
sky/packages/sky/lib/src/painting/text_style.dart
+0
-0
sky/packages/sky/lib/src/rendering/README.md
sky/packages/sky/lib/src/rendering/README.md
+2
-1
sky/packages/sky/lib/src/rendering/box.dart
sky/packages/sky/lib/src/rendering/box.dart
+2
-3
sky/packages/sky/lib/src/rendering/image.dart
sky/packages/sky/lib/src/rendering/image.dart
+1
-1
sky/packages/sky/lib/src/rendering/paragraph.dart
sky/packages/sky/lib/src/rendering/paragraph.dart
+2
-2
sky/packages/sky/lib/src/rendering/proxy_box.dart
sky/packages/sky/lib/src/rendering/proxy_box.dart
+3
-3
sky/packages/sky/lib/src/rendering/shifted_box.dart
sky/packages/sky/lib/src/rendering/shifted_box.dart
+1
-2
sky/packages/sky/lib/src/widgets/README.md
sky/packages/sky/lib/src/widgets/README.md
+1
-1
sky/packages/sky/lib/src/widgets/animated_container.dart
sky/packages/sky/lib/src/widgets/animated_container.dart
+1
-1
sky/packages/sky/lib/src/widgets/basic.dart
sky/packages/sky/lib/src/widgets/basic.dart
+3
-3
sky/packages/sky/lib/src/widgets/default_text_style.dart
sky/packages/sky/lib/src/widgets/default_text_style.dart
+1
-1
sky/packages/sky/lib/src/widgets/drawer_item.dart
sky/packages/sky/lib/src/widgets/drawer_item.dart
+1
-1
sky/packages/sky/lib/src/widgets/editable_text.dart
sky/packages/sky/lib/src/widgets/editable_text.dart
+1
-1
sky/packages/sky/lib/src/widgets/input.dart
sky/packages/sky/lib/src/widgets/input.dart
+1
-1
sky/packages/sky/lib/src/widgets/material.dart
sky/packages/sky/lib/src/widgets/material.dart
+1
-1
sky/packages/sky/lib/src/widgets/popup_menu.dart
sky/packages/sky/lib/src/widgets/popup_menu.dart
+1
-1
sky/packages/sky/lib/src/widgets/popup_menu_item.dart
sky/packages/sky/lib/src/widgets/popup_menu_item.dart
+1
-1
sky/packages/sky/lib/src/widgets/snack_bar.dart
sky/packages/sky/lib/src/widgets/snack_bar.dart
+1
-1
sky/packages/sky/lib/src/widgets/switch.dart
sky/packages/sky/lib/src/widgets/switch.dart
+1
-2
sky/packages/sky/lib/src/widgets/tabs.dart
sky/packages/sky/lib/src/widgets/tabs.dart
+1
-1
sky/packages/sky/lib/src/widgets/tool_bar.dart
sky/packages/sky/lib/src/widgets/tool_bar.dart
+4
-4
sky/packages/sky/lib/theme/README.md
sky/packages/sky/lib/theme/README.md
+2
-1
sky/packages/sky/lib/theme/shadows.dart
sky/packages/sky/lib/theme/shadows.dart
+1
-1
sky/packages/sky/lib/theme/typography.dart
sky/packages/sky/lib/theme/typography.dart
+1
-1
skysprites/lib/skysprites.dart
skysprites/lib/skysprites.dart
+1
-1
未找到文件。
examples/demo_launcher/lib/main.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,7 +4,7 @@
import
'package:sky/mojo/activity.dart'
;
import
'package:sky/mojo/asset_bundle.dart'
;
import
'package:sky/painting
/box_painter
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/theme/typography.dart'
as
typography
;
import
'package:sky/widgets.dart'
;
...
...
examples/fitness/lib/main.dart
浏览文件 @
ad0d74a4
...
...
@@ -6,7 +6,7 @@ library fitness;
import
'package:playfair/playfair.dart'
as
playfair
;
import
'package:sky/animation.dart'
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/widgets.dart'
;
import
'user_data.dart'
;
...
...
examples/game/lib/game_demo.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,7 +4,7 @@ import 'dart:async';
import
'dart:math'
as
math
;
import
'dart:sky'
as
sky
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
import
'package:skysprites/skysprites.dart'
;
...
...
examples/game/lib/main.dart
浏览文件 @
ad0d74a4
...
...
@@ -5,7 +5,7 @@
import
'dart:async'
;
import
'package:sky/mojo/asset_bundle.dart'
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/button_base.dart'
;
...
...
examples/mine_digger/lib/main.dart
浏览文件 @
ad0d74a4
...
...
@@ -5,7 +5,7 @@ import 'dart:sky' as sky;
import
'dart:math'
;
import
'package:sky/mojo/activity.dart'
as
activity
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/rendering.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/widgets.dart'
;
...
...
sky/packages/sky/lib/README.md
浏览文件 @
ad0d74a4
...
...
@@ -18,14 +18,14 @@ Above this layer is the [animation](animation.dart) library,
which provides core animation primitives, and the
[
gestures/
](
gestures/
)
directory, which define a gesture recognition and disambiguation system.
The next layer consists of the
files in the
[
painting/
](
painting/
)
directo
ry,
which provide APIs related to drawing graphics. Some of the code here
uses the
[
animation
](
animation.dart
)
utilities
mentioned above.
The next layer consists of the
[
painting
](
painting.dart
)
libra
ry,
which provide
s
APIs related to drawing graphics. Some of the code here
uses the
[
animation
](
animation.dart
)
library
mentioned above.
Layout primitives are provided in the next layer, found in the
[
rendering
](
rendering.dart
)
library. They use
`dart:sky`
and the
APIs exposed in
[
painting/
](
painting/
)
to provide a retained-mode layout and
rendering model for applications or documents.
APIs exposed in
the
[
painting
](
painting.dart
)
library to provide a retained-mode
layout and
rendering model for applications or documents.
Widgets are provided by the files in the
[
widgets
](
widgets.dart
)
library, using a reactive framework. They use data given in the
...
...
@@ -46,7 +46,7 @@ Here is a diagram summarizing all this:
| ++---------------------++ |
| | rendering | | Dart
| |---------+------------+ |
| | | painting
/
| |
| | | painting
| |
+-+ +------------+ |
| gestures/ | animation | |
+-----------+---+--------+ |
...
...
sky/packages/sky/lib/painting.dart
0 → 100644
浏览文件 @
ad0d74a4
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// The Sky render tree.
///
/// This library includes and re-exports all Sky rendering classes.
library
painting
;
export
'src/painting/box_painter.dart'
;
export
'src/painting/radial_reaction.dart'
;
export
'src/painting/shadows.dart'
;
export
'src/painting/text_painter.dart'
;
export
'src/painting/text_style.dart'
;
sky/packages/sky/lib/painting/README.md
→
sky/packages/sky/lib/
src/
painting/README.md
浏览文件 @
ad0d74a4
文件已移动
sky/packages/sky/lib/painting/box_painter.dart
→
sky/packages/sky/lib/
src/
painting/box_painter.dart
浏览文件 @
ad0d74a4
...
...
@@ -7,7 +7,7 @@ import 'dart:sky' as sky;
import
'dart:sky'
show
Point
,
Offset
,
Size
,
Rect
,
Color
,
Paint
,
Path
;
import
'package:sky/base/image_resource.dart'
;
import
'package:sky/painting/shadows.dart'
;
import
'package:sky/
src/
painting/shadows.dart'
;
/// An immutable set of offsets in each of the four cardinal directions
///
...
...
sky/packages/sky/lib/painting/radial_reaction.dart
→
sky/packages/sky/lib/
src/
painting/radial_reaction.dart
浏览文件 @
ad0d74a4
文件已移动
sky/packages/sky/lib/painting/shadows.dart
→
sky/packages/sky/lib/
src/
painting/shadows.dart
浏览文件 @
ad0d74a4
文件已移动
sky/packages/sky/lib/painting/text_painter.dart
→
sky/packages/sky/lib/
src/
painting/text_painter.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,9 +4,9 @@
import
'dart:sky'
as
sky
;
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/
src/
painting/text_style.dart'
;
export
'package:sky/painting/text_style.dart'
;
export
'package:sky/
src/
painting/text_style.dart'
;
/// An immutable span of text
abstract
class
TextSpan
{
...
...
sky/packages/sky/lib/painting/text_style.dart
→
sky/packages/sky/lib/
src/
painting/text_style.dart
浏览文件 @
ad0d74a4
文件已移动
sky/packages/sky/lib/src/rendering/README.md
浏览文件 @
ad0d74a4
...
...
@@ -384,6 +384,7 @@ scheduler.addPersistentFrameCallback((_) {
Dependencies
------------
*
[
`package:sky/animation.dart`
](
../../animation.dart
)
*
[
`package:sky/base`
](
../../base
)
*
[
`package:sky/mojo`
](
../../mojo
)
*
[
`package:sky/
animation.dart`
](
../../animation
.dart
)
*
[
`package:sky/
painting.dart`
](
../../painting
.dart
)
sky/packages/sky/lib/src/rendering/box.dart
浏览文件 @
ad0d74a4
...
...
@@ -6,12 +6,11 @@ import 'dart:math' as math;
import
'dart:sky'
as
sky
;
import
'package:sky/base/debug.dart'
;
import
'package:sky/painting/box_painter.dart'
;
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:vector_math/vector_math.dart'
;
export
'package:sky/painting
/text_style
.dart'
show
TextBaseline
;
export
'package:sky/painting.dart'
show
TextBaseline
;
// GENERIC BOX RENDERING
// Anything that has a concept of x, y, width, height is going to derive from this
...
...
sky/packages/sky/lib/src/rendering/image.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,7 +4,7 @@
import
'dart:sky'
as
sky
;
import
'package:sky/painting
/box_painter
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/rendering/box.dart'
;
...
...
sky/packages/sky/lib/src/rendering/paragraph.dart
浏览文件 @
ad0d74a4
...
...
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:sky/painting/text_painter.dart'
;
import
'package:sky/
src/
painting/text_painter.dart'
;
import
'package:sky/src/rendering/box.dart'
;
import
'package:sky/src/rendering/object.dart'
;
export
'package:sky/painting/text_painter.dart'
;
export
'package:sky/
src/
painting/text_painter.dart'
;
// Unfortunately, using full precision floating point here causes bad layouts
// because floating point math isn't associative. If we add and subtract
...
...
sky/packages/sky/lib/src/rendering/proxy_box.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,13 +4,13 @@
import
'dart:sky'
as
sky
;
import
'package:sky/painting/box_painter.dart'
;
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/
src/
painting/box_painter.dart'
;
import
'package:sky/
src/
painting/text_style.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/rendering/box.dart'
;
import
'package:vector_math/vector_math.dart'
;
export
'package:sky/painting/box_painter.dart'
;
export
'package:sky/
src/
painting/box_painter.dart'
;
class
RenderProxyBox
extends
RenderBox
with
RenderObjectWithChildMixin
<
RenderBox
>
{
...
...
sky/packages/sky/lib/src/rendering/shifted_box.dart
浏览文件 @
ad0d74a4
...
...
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:sky/painting/box_painter.dart'
;
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/rendering/box.dart'
;
...
...
sky/packages/sky/lib/src/widgets/README.md
浏览文件 @
ad0d74a4
...
...
@@ -502,6 +502,6 @@ Dependencies
*
`package:vector_math`
*
[
`package:sky/animation.dart`
](
../../animation.dart
)
*
[
`package:sky/base`
](
../../base
)
*
[
`package:sky/painting
`
](
../../painting
)
*
[
`package:sky/painting
.dart`
](
../../painting.dart
)
*
[
`package:sky/rendering.dart`
](
../../rendering.dart
)
*
[
`package:sky/theme`
](
../../theme
)
sky/packages/sky/lib/src/widgets/animated_container.dart
浏览文件 @
ad0d74a4
...
...
@@ -6,7 +6,7 @@ import 'dart:sky' as sky;
import
'package:vector_math/vector_math.dart'
;
import
'package:sky/animation.dart'
;
import
'package:sky/painting
/box_painter
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/widgets/animated_component.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
...
...
sky/packages/sky/lib/src/widgets/basic.dart
浏览文件 @
ad0d74a4
...
...
@@ -9,8 +9,8 @@ import 'package:vector_math/vector_math.dart';
import
'package:sky/base/image_resource.dart'
;
import
'package:sky/mojo/asset_bundle.dart'
;
import
'package:sky/mojo/net/image_cache.dart'
as
image_cache
;
import
'package:sky/painting/text_painter.dart'
;
import
'package:sky/painting/text_style.dart'
;
import
'package:sky/
src/
painting/text_painter.dart'
;
import
'package:sky/
src/
painting/text_style.dart'
;
import
'package:sky/src/rendering/block.dart'
;
import
'package:sky/src/rendering/box.dart'
;
import
'package:sky/src/rendering/flex.dart'
;
...
...
@@ -26,7 +26,7 @@ import 'package:sky/src/widgets/default_text_style.dart';
import
'package:sky/src/widgets/framework.dart'
;
export
'package:sky/base/hit_test.dart'
show
EventDisposition
,
combineEventDispositions
;
export
'package:sky/painting/text_style.dart'
;
export
'package:sky/
src/
painting/text_style.dart'
;
export
'package:sky/src/rendering/block.dart'
show
BlockDirection
;
export
'package:sky/src/rendering/box.dart'
show
BoxConstraints
;
export
'package:sky/src/rendering/flex.dart'
show
FlexJustifyContent
,
FlexAlignItems
,
FlexDirection
;
...
...
sky/packages/sky/lib/src/widgets/default_text_style.dart
浏览文件 @
ad0d74a4
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
...
...
sky/packages/sky/lib/src/widgets/drawer_item.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,7 +4,7 @@
import
'dart:sky'
as
sky
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/button_base.dart'
;
...
...
sky/packages/sky/lib/src/widgets/editable_text.dart
浏览文件 @
ad0d74a4
...
...
@@ -6,7 +6,7 @@ import 'dart:async';
import
'dart:sky'
as
sky
;
import
'package:mojo_services/keyboard/keyboard.mojom.dart'
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
...
...
sky/packages/sky/lib/src/widgets/input.dart
浏览文件 @
ad0d74a4
...
...
@@ -3,7 +3,7 @@
// found in the LICENSE file.
import
'package:sky/mojo/keyboard.dart'
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/editable_text.dart'
;
import
'package:sky/src/widgets/focus.dart'
;
...
...
sky/packages/sky/lib/src/widgets/material.dart
浏览文件 @
ad0d74a4
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:sky/painting
/box_painter
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/theme/shadows.dart'
;
import
'package:sky/src/widgets/animated_container.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
...
...
sky/packages/sky/lib/src/widgets/popup_menu.dart
浏览文件 @
ad0d74a4
...
...
@@ -5,7 +5,7 @@
import
'dart:sky'
as
sky
;
import
'package:sky/animation.dart'
;
import
'package:sky/painting
/box_painter
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/theme/colors.dart'
;
import
'package:sky/theme/shadows.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
...
...
sky/packages/sky/lib/src/widgets/popup_menu_item.dart
浏览文件 @
ad0d74a4
...
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/default_text_style.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
...
...
sky/packages/sky/lib/src/widgets/snack_bar.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,7 +4,7 @@
import
'package:sky/animation.dart'
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/theme/typography.dart'
as
typography
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/default_text_style.dart'
;
...
...
sky/packages/sky/lib/src/widgets/switch.dart
浏览文件 @
ad0d74a4
...
...
@@ -5,8 +5,7 @@
import
'dart:async'
;
import
'dart:sky'
as
sky
;
import
'package:sky/painting/radial_reaction.dart'
;
import
'package:sky/painting/shadows.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/box.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/theme/shadows.dart'
;
...
...
sky/packages/sky/lib/src/widgets/tabs.dart
浏览文件 @
ad0d74a4
...
...
@@ -7,7 +7,7 @@ import 'dart:sky' as sky;
import
'package:newton/newton.dart'
;
import
'package:sky/animation.dart'
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/rendering.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
import
'package:sky/theme/typography.dart'
as
typography
;
...
...
sky/packages/sky/lib/src/widgets/tool_bar.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,15 +4,15 @@
import
'package:sky/src/widgets/theme.dart'
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/flex.dart'
;
import
'package:sky/theme/shadows.dart'
;
import
'package:sky/theme/typography.dart'
as
typography
;
import
'package:sky/theme/view_configuration.dart'
;
import
'package:sky/src/widgets/basic.dart'
;
import
'package:sky/src/widgets/default_text_style.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
import
'package:sky/src/widgets/icon.dart'
;
import
'package:sky/theme/shadows.dart'
;
import
'package:sky/theme/typography.dart'
as
typography
;
import
'package:sky/theme/view_configuration.dart'
;
class
ToolBar
extends
Component
{
...
...
sky/packages/sky/lib/theme/README.md
浏览文件 @
ad0d74a4
...
...
@@ -2,4 +2,5 @@ This directory provides constants for Material Design.
http://www.google.com/design/spec/material-design/
Files in this directory only depend on ../painting/
*
and sky:dart.
Files in this directory only depend on
[
painting.dart
](
../painting.dart
)
and
`sky:dart`
.
sky/packages/sky/lib/theme/shadows.dart
浏览文件 @
ad0d74a4
...
...
@@ -4,7 +4,7 @@
import
'dart:sky'
show
Color
,
Offset
;
import
'package:sky/painting
/box_painter
.dart'
;
import
'package:sky/painting.dart'
;
const
Map
<
int
,
List
<
BoxShadow
>>
shadows
=
const
{
1
:
const
[
...
...
sky/packages/sky/lib/theme/typography.dart
浏览文件 @
ad0d74a4
...
...
@@ -6,7 +6,7 @@
import
'dart:sky'
;
import
'package:sky/painting
/text_style
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/theme/colors.dart'
as
colors
;
// TODO(eseidel): Font weights are supposed to be language relative!
...
...
skysprites/lib/skysprites.dart
浏览文件 @
ad0d74a4
...
...
@@ -14,7 +14,7 @@ import 'package:mojo/core.dart';
import
'package:sky/animation.dart'
;
import
'package:sky/mojo/asset_bundle.dart'
;
import
'package:sky/mojo/shell.dart'
as
shell
;
import
'package:sky/painting
/text_painter
.dart'
;
import
'package:sky/painting.dart'
;
import
'package:sky/src/rendering/box.dart'
;
import
'package:sky/src/rendering/object.dart'
;
import
'package:sky/src/widgets/framework.dart'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录