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
f8310d89
Commit
f8310d89
authored
Oct 02, 2019
by
Ori Schwartz
Committed by
Michael Goderbauer
Oct 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use EdgeInsetsGeometry instead of EdgeInsets (#40775)
parent
0b0942a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
shape_decoration.dart
packages/flutter/lib/src/painting/shape_decoration.dart
+1
-1
shape_decoration_test.dart
packages/flutter/test/widgets/shape_decoration_test.dart
+8
-0
No files found.
packages/flutter/lib/src/painting/shape_decoration.dart
View file @
f8310d89
...
...
@@ -178,7 +178,7 @@ class ShapeDecoration extends Decoration {
///
/// This value may be misleading. See the discussion at [ShapeBorder.dimensions].
@override
EdgeInsets
get
padding
=>
shape
.
dimensions
;
EdgeInsets
Geometry
get
padding
=>
shape
.
dimensions
;
@override
bool
get
isComplex
=>
shadows
!=
null
;
...
...
packages/flutter/test/widgets/shape_decoration_test.dart
View file @
f8310d89
...
...
@@ -61,6 +61,14 @@ Future<void> main() async {
);
},
skip:
isBrowser
);
test
(
'ShapeDecoration with BorderDirectional'
,
()
{
const
ShapeDecoration
decoration
=
ShapeDecoration
(
shape:
BorderDirectional
(
start:
BorderSide
(
color:
Colors
.
red
,
width:
3
)),
);
expect
(
decoration
.
padding
,
isInstanceOf
<
EdgeInsetsDirectional
>());
});
testWidgets
(
'TestBorder and Directionality - 1'
,
(
WidgetTester
tester
)
async
{
final
List
<
String
>
log
=
<
String
>[];
await
tester
.
pumpWidget
(
...
...
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