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
8de7020a
Unverified
Commit
8de7020a
authored
Apr 01, 2021
by
Alexandre Ardhuin
Committed by
GitHub
Apr 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary trailing commas (#79562)
parent
88f2db62
Changes
33
Hide whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
99 additions
and
78 deletions
+99
-78
nav_bar_test.dart
packages/flutter/test/cupertino/nav_bar_test.dart
+4
-1
refresh_test.dart
packages/flutter/test/cupertino/refresh_test.dart
+1
-1
card_theme_test.dart
packages/flutter/test/material/card_theme_test.dart
+1
-1
chip_test.dart
packages/flutter/test/material/chip_test.dart
+2
-2
floating_action_button_location_test.dart
...r/test/material/floating_action_button_location_test.dart
+7
-5
navigation_rail_test.dart
packages/flutter/test/material/navigation_rail_test.dart
+1
-1
popup_menu_test.dart
packages/flutter/test/material/popup_menu_test.dart
+1
-1
range_slider_test.dart
packages/flutter/test/material/range_slider_test.dart
+4
-4
scaffold_test.dart
packages/flutter/test/material/scaffold_test.dart
+2
-2
snack_bar_test.dart
packages/flutter/test/material/snack_bar_test.dart
+1
-1
snack_bar_theme_test.dart
packages/flutter/test/material/snack_bar_theme_test.dart
+2
-2
tabs_test.dart
packages/flutter/test/material/tabs_test.dart
+6
-6
text_field_test.dart
packages/flutter/test/material/text_field_test.dart
+8
-2
time_picker_theme_test.dart
packages/flutter/test/material/time_picker_theme_test.dart
+1
-1
tooltip_test.dart
packages/flutter/test/material/tooltip_test.dart
+1
-1
tooltip_theme_test.dart
packages/flutter/test/material/tooltip_theme_test.dart
+1
-1
basic_test.dart
packages/flutter/test/widgets/basic_test.dart
+1
-1
editable_text_test.dart
packages/flutter/test/widgets/editable_text_test.dart
+2
-2
ensure_visible_test.dart
packages/flutter/test/widgets/ensure_visible_test.dart
+1
-1
focus_manager_test.dart
packages/flutter/test/widgets/focus_manager_test.dart
+4
-1
framework_test.dart
packages/flutter/test/widgets/framework_test.dart
+4
-4
gesture_detector_test.dart
packages/flutter/test/widgets/gesture_detector_test.dart
+1
-1
image_test.dart
packages/flutter/test/widgets/image_test.dart
+1
-1
modal_barrier_test.dart
packages/flutter/test/widgets/modal_barrier_test.dart
+4
-2
nested_scroll_view_test.dart
packages/flutter/test/widgets/nested_scroll_view_test.dart
+2
-2
overscroll_indicator_test.dart
packages/flutter/test/widgets/overscroll_indicator_test.dart
+4
-4
platform_view_test.dart
packages/flutter/test/widgets/platform_view_test.dart
+12
-7
rich_text_test.dart
packages/flutter/test/widgets/rich_text_test.dart
+2
-2
route_notification_messages_test.dart
...lutter/test/widgets/route_notification_messages_test.dart
+1
-1
run_app_test.dart
packages/flutter/test/widgets/run_app_test.dart
+1
-1
scrollable_test.dart
packages/flutter/test/widgets/scrollable_test.dart
+1
-1
single_child_scroll_view_test.dart
...s/flutter/test/widgets/single_child_scroll_view_test.dart
+12
-12
text_golden_test.dart
packages/flutter/test/widgets/text_golden_test.dart
+3
-3
No files found.
packages/flutter/test/cupertino/nav_bar_test.dart
View file @
8de7020a
...
@@ -17,7 +17,10 @@ void main() {
...
@@ -17,7 +17,10 @@ void main() {
await
tester
.
pumpWidget
(
await
tester
.
pumpWidget
(
const
CupertinoApp
(
const
CupertinoApp
(
home:
CupertinoNavigationBar
(
home:
CupertinoNavigationBar
(
leading:
CupertinoButton
(
child:
Text
(
'Something'
),
onPressed:
null
,),
leading:
CupertinoButton
(
child:
Text
(
'Something'
),
onPressed:
null
,
),
middle:
Text
(
'Title'
),
middle:
Text
(
'Title'
),
),
),
),
),
...
...
packages/flutter/test/cupertino/refresh_test.dart
View file @
8de7020a
...
@@ -879,7 +879,7 @@ void main() {
...
@@ -879,7 +879,7 @@ void main() {
expect
(
mockHelper
.
invocations
.
last
,
matchesBuilder
(
expect
(
mockHelper
.
invocations
.
last
,
matchesBuilder
(
refreshState:
RefreshIndicatorMode
.
done
,
refreshState:
RefreshIndicatorMode
.
done
,
pulledExtent:
moreOrLessEquals
(
148.6463892921364
,
),
pulledExtent:
moreOrLessEquals
(
148.6463892921364
),
refreshTriggerPullDistance:
100.0
,
// Default value.
refreshTriggerPullDistance:
100.0
,
// Default value.
refreshIndicatorExtent:
60.0
,
// Default value.
refreshIndicatorExtent:
60.0
,
// Default value.
));
));
...
...
packages/flutter/test/material/card_theme_test.dart
View file @
8de7020a
...
@@ -131,7 +131,7 @@ void main() {
...
@@ -131,7 +131,7 @@ void main() {
key:
painterKey
,
key:
painterKey
,
child:
Center
(
child:
Center
(
child:
Card
(
child:
Card
(
child:
SizedBox
.
fromSize
(
size:
const
Size
(
200
,
300
)
,
),
child:
SizedBox
.
fromSize
(
size:
const
Size
(
200
,
300
)),
),
),
),
),
),
),
...
...
packages/flutter/test/material/chip_test.dart
View file @
8de7020a
...
@@ -2280,7 +2280,7 @@ void main() {
...
@@ -2280,7 +2280,7 @@ void main() {
testWidgets
(
'FilterChip clipBehavior properly passes through to the Material'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'FilterChip clipBehavior properly passes through to the Material'
,
(
WidgetTester
tester
)
async
{
const
Text
label
=
Text
(
'label'
);
const
Text
label
=
Text
(
'label'
);
await
tester
.
pumpWidget
(
_wrapForChip
(
child:
FilterChip
(
label:
label
,
onSelected:
(
bool
b
)
{
}
,
)));
await
tester
.
pumpWidget
(
_wrapForChip
(
child:
FilterChip
(
label:
label
,
onSelected:
(
bool
b
)
{
})));
checkChipMaterialClipBehavior
(
tester
,
Clip
.
none
);
checkChipMaterialClipBehavior
(
tester
,
Clip
.
none
);
await
tester
.
pumpWidget
(
_wrapForChip
(
child:
FilterChip
(
label:
label
,
onSelected:
(
bool
b
)
{
},
clipBehavior:
Clip
.
antiAlias
)));
await
tester
.
pumpWidget
(
_wrapForChip
(
child:
FilterChip
(
label:
label
,
onSelected:
(
bool
b
)
{
},
clipBehavior:
Clip
.
antiAlias
)));
...
@@ -2289,7 +2289,7 @@ void main() {
...
@@ -2289,7 +2289,7 @@ void main() {
testWidgets
(
'ActionChip clipBehavior properly passes through to the Material'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'ActionChip clipBehavior properly passes through to the Material'
,
(
WidgetTester
tester
)
async
{
const
Text
label
=
Text
(
'label'
);
const
Text
label
=
Text
(
'label'
);
await
tester
.
pumpWidget
(
_wrapForChip
(
child:
ActionChip
(
label:
label
,
onPressed:
()
{
}
,
)));
await
tester
.
pumpWidget
(
_wrapForChip
(
child:
ActionChip
(
label:
label
,
onPressed:
()
{
})));
checkChipMaterialClipBehavior
(
tester
,
Clip
.
none
);
checkChipMaterialClipBehavior
(
tester
,
Clip
.
none
);
await
tester
.
pumpWidget
(
_wrapForChip
(
child:
ActionChip
(
label:
label
,
clipBehavior:
Clip
.
antiAlias
,
onPressed:
()
{
})));
await
tester
.
pumpWidget
(
_wrapForChip
(
child:
ActionChip
(
label:
label
,
clipBehavior:
Clip
.
antiAlias
,
onPressed:
()
{
})));
...
...
packages/flutter/test/material/floating_action_button_location_test.dart
View file @
8de7020a
...
@@ -148,11 +148,13 @@ void main() {
...
@@ -148,11 +148,13 @@ void main() {
}
}
if
(
deltas
.
where
((
double
delta
)
=>
delta
<
maxDeltaRotation
).
isEmpty
)
{
if
(
deltas
.
where
((
double
delta
)
=>
delta
<
maxDeltaRotation
).
isEmpty
)
{
fail
(
"The Floating Action Button's rotation should not change "
fail
(
'faster than
$maxDeltaRotation
per animation step.
\n
'
"The Floating Action Button's rotation should not change "
'Detected deltas were:
$deltas
\n
'
'faster than
$maxDeltaRotation
per animation step.
\n
'
'Previous values:
$previousRotations
, current values:
$currentRotations
\n
'
'Detected deltas were:
$deltas
\n
'
'Previous rect:
$previousRect
, current rect:
$currentRect
'
,);
'Previous values:
$previousRotations
, current values:
$currentRotations
\n
'
'Previous rect:
$previousRect
, current rect:
$currentRect
'
,
);
}
}
}
}
previousRotations
=
currentRotations
;
previousRotations
=
currentRotations
;
...
...
packages/flutter/test/material/navigation_rail_test.dart
View file @
8de7020a
...
@@ -1869,7 +1869,7 @@ void main() {
...
@@ -1869,7 +1869,7 @@ void main() {
leading:
Builder
(
leading:
Builder
(
builder:
(
BuildContext
context
)
{
builder:
(
BuildContext
context
)
{
animation
=
NavigationRail
.
extendedAnimation
(
context
);
animation
=
NavigationRail
.
extendedAnimation
(
context
);
return
FloatingActionButton
(
onPressed:
()
{
}
,
);
return
FloatingActionButton
(
onPressed:
()
{
});
},
},
),
),
destinations:
_destinations
(),
destinations:
_destinations
(),
...
...
packages/flutter/test/material/popup_menu_test.dart
View file @
8de7020a
...
@@ -1683,7 +1683,7 @@ void main() {
...
@@ -1683,7 +1683,7 @@ void main() {
);
);
expect
(
find
.
byType
(
Tooltip
),
findsNWidgets
(
3
));
expect
(
find
.
byType
(
Tooltip
),
findsNWidgets
(
3
));
expect
(
find
.
byTooltip
(
'Test tooltip'
,
),
findsNWidgets
(
3
));
expect
(
find
.
byTooltip
(
'Test tooltip'
),
findsNWidgets
(
3
));
});
});
testWidgets
(
'Allow Widget for PopupMenuButton.icon'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Allow Widget for PopupMenuButton.icon'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/material/range_slider_test.dart
View file @
8de7020a
...
@@ -1867,8 +1867,8 @@ void main() {
...
@@ -1867,8 +1867,8 @@ void main() {
// right inactive track RRect
// right inactive track RRect
..
rrect
(
rrect:
RRect
.
fromLTRBAndCorners
(
0.0
,
3.0
,
24.0
,
7.0
,
topRight:
const
Radius
.
circular
(
2.0
),
bottomRight:
const
Radius
.
circular
(
2.0
)))
..
rrect
(
rrect:
RRect
.
fromLTRBAndCorners
(
0.0
,
3.0
,
24.0
,
7.0
,
topRight:
const
Radius
.
circular
(
2.0
),
bottomRight:
const
Radius
.
circular
(
2.0
)))
// thumbs
// thumbs
..
circle
(
x:
-
12.0
,
y:
5.0
,
radius:
10.0
,
)
..
circle
(
x:
-
12.0
,
y:
5.0
,
radius:
10.0
)
..
circle
(
x:
0.0
,
y:
5.0
,
radius:
10.0
,
)
..
circle
(
x:
0.0
,
y:
5.0
,
radius:
10.0
)
);
);
});
});
...
@@ -1911,8 +1911,8 @@ void main() {
...
@@ -1911,8 +1911,8 @@ void main() {
// right inactive track RRect
// right inactive track RRect
..
rect
(
rect:
const
Rect
.
fromLTRB
(
0.0
,
3.0
,
24.0
,
7.0
))
..
rect
(
rect:
const
Rect
.
fromLTRB
(
0.0
,
3.0
,
24.0
,
7.0
))
// thumbs
// thumbs
..
circle
(
x:
-
12.0
,
y:
5.0
,
radius:
10.0
,
)
..
circle
(
x:
-
12.0
,
y:
5.0
,
radius:
10.0
)
..
circle
(
x:
0.0
,
y:
5.0
,
radius:
10.0
,
)
..
circle
(
x:
0.0
,
y:
5.0
,
radius:
10.0
)
);
);
});
});
...
...
packages/flutter/test/material/scaffold_test.dart
View file @
8de7020a
...
@@ -713,7 +713,7 @@ void main() {
...
@@ -713,7 +713,7 @@ void main() {
},
},
),
),
bottomNavigationBar:
const
BottomAppBar
(
bottomNavigationBar:
const
BottomAppBar
(
child:
SizedBox
(
height:
48.0
,
),
child:
SizedBox
(
height:
48.0
),
),
),
),
),
),
),
...
@@ -1854,7 +1854,7 @@ void main() {
...
@@ -1854,7 +1854,7 @@ void main() {
),
),
),
),
);
);
}
,
);
});
}
on
FlutterError
catch
(
e
)
{
}
on
FlutterError
catch
(
e
)
{
error
=
e
;
error
=
e
;
}
finally
{
}
finally
{
...
...
packages/flutter/test/material/snack_bar_test.dart
View file @
8de7020a
...
@@ -1233,7 +1233,7 @@ void main() {
...
@@ -1233,7 +1233,7 @@ void main() {
testWidgets
(
'Floating SnackBar button text alignment'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Floating SnackBar button text alignment'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
MaterialApp
(
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
theme:
ThemeData
(
snackBarTheme:
const
SnackBarThemeData
(
behavior:
SnackBarBehavior
.
floating
,
)
snackBarTheme:
const
SnackBarThemeData
(
behavior:
SnackBarBehavior
.
floating
)
),
),
home:
MediaQuery
(
home:
MediaQuery
(
data:
const
MediaQueryData
(
data:
const
MediaQueryData
(
...
...
packages/flutter/test/material/snack_bar_theme_test.dart
View file @
8de7020a
...
@@ -189,7 +189,7 @@ void main() {
...
@@ -189,7 +189,7 @@ void main() {
testWidgets
(
'SnackBar theme behavior is correct for floating'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'SnackBar theme behavior is correct for floating'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
MaterialApp
(
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
theme:
ThemeData
(
snackBarTheme:
const
SnackBarThemeData
(
behavior:
SnackBarBehavior
.
floating
,
)
snackBarTheme:
const
SnackBarThemeData
(
behavior:
SnackBarBehavior
.
floating
)
),
),
home:
Scaffold
(
home:
Scaffold
(
floatingActionButton:
FloatingActionButton
(
floatingActionButton:
FloatingActionButton
(
...
@@ -231,7 +231,7 @@ void main() {
...
@@ -231,7 +231,7 @@ void main() {
testWidgets
(
'SnackBar theme behavior is correct for fixed'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'SnackBar theme behavior is correct for fixed'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
MaterialApp
(
await
tester
.
pumpWidget
(
MaterialApp
(
theme:
ThemeData
(
theme:
ThemeData
(
snackBarTheme:
const
SnackBarThemeData
(
behavior:
SnackBarBehavior
.
fixed
,
)
snackBarTheme:
const
SnackBarThemeData
(
behavior:
SnackBarBehavior
.
fixed
)
),
),
home:
Scaffold
(
home:
Scaffold
(
floatingActionButton:
FloatingActionButton
(
floatingActionButton:
FloatingActionButton
(
...
...
packages/flutter/test/material/tabs_test.dart
View file @
8de7020a
...
@@ -2617,7 +2617,7 @@ void main() {
...
@@ -2617,7 +2617,7 @@ void main() {
length:
1
,
length:
1
,
child:
TabBar
(
child:
TabBar
(
tabs:
<
Tab
>[
tabs:
<
Tab
>[
Tab
(
text:
'A'
,
)
Tab
(
text:
'A'
)
],
],
)
)
)
)
...
@@ -2641,7 +2641,7 @@ void main() {
...
@@ -2641,7 +2641,7 @@ void main() {
length:
1
,
length:
1
,
child:
TabBar
(
child:
TabBar
(
tabs:
<
Tab
>[
tabs:
<
Tab
>[
Tab
(
text:
'A'
,
)
Tab
(
text:
'A'
)
],
],
enableFeedback:
false
,
enableFeedback:
false
,
),
),
...
@@ -2669,7 +2669,7 @@ void main() {
...
@@ -2669,7 +2669,7 @@ void main() {
length:
1
,
length:
1
,
child:
TabBar
(
child:
TabBar
(
tabs:
const
<
Tab
>[
tabs:
const
<
Tab
>[
Tab
(
text:
'A'
,
)
Tab
(
text:
'A'
)
],
],
overlayColor:
MaterialStateProperty
.
resolveWith
<
Color
>(
overlayColor:
MaterialStateProperty
.
resolveWith
<
Color
>(
(
Set
<
MaterialState
>
states
)
{
(
Set
<
MaterialState
>
states
)
{
...
@@ -2702,7 +2702,7 @@ void main() {
...
@@ -2702,7 +2702,7 @@ void main() {
length:
1
,
length:
1
,
child:
TabBar
(
child:
TabBar
(
tabs:
const
<
Tab
>[
tabs:
const
<
Tab
>[
Tab
(
text:
'A'
,
)
Tab
(
text:
'A'
)
],
],
overlayColor:
MaterialStateProperty
.
resolveWith
<
Color
>(
overlayColor:
MaterialStateProperty
.
resolveWith
<
Color
>(
(
Set
<
MaterialState
>
states
)
{
(
Set
<
MaterialState
>
states
)
{
...
@@ -3165,8 +3165,8 @@ void main() {
...
@@ -3165,8 +3165,8 @@ void main() {
Tab
(
icon:
Icon
(
Icons
.
notifications
),
child:
Text
(
'Test'
)),
Tab
(
icon:
Icon
(
Icons
.
notifications
),
child:
Text
(
'Test'
)),
];
];
const
TabBar
tabBarWithText
=
TabBar
(
tabs:
tabListWithText
,
indicatorWeight:
indicatorWeight
,
);
const
TabBar
tabBarWithText
=
TabBar
(
tabs:
tabListWithText
,
indicatorWeight:
indicatorWeight
);
const
TabBar
tabBarWithTextChild
=
TabBar
(
tabs:
tabListWithTextChild
,
indicatorWeight:
indicatorWeight
,
);
const
TabBar
tabBarWithTextChild
=
TabBar
(
tabs:
tabListWithTextChild
,
indicatorWeight:
indicatorWeight
);
expect
(
tabBarWithText
.
preferredSize
,
tabBarWithTextChild
.
preferredSize
);
expect
(
tabBarWithText
.
preferredSize
,
tabBarWithTextChild
.
preferredSize
);
});
});
...
...
packages/flutter/test/material/text_field_test.dart
View file @
8de7020a
...
@@ -7949,7 +7949,13 @@ void main() {
...
@@ -7949,7 +7949,13 @@ void main() {
pressureMin:
0.0
,
pressureMin:
0.0
,
),
),
);
);
await
gesture
.
updateWithCustomEvent
(
PointerMoveEvent
(
pointer:
pointerValue
,
position:
offset
+
const
Offset
(
150.0
,
9.0
),
pressure:
0.5
,
pressureMin:
0
,
pressureMax:
1
,),);
await
gesture
.
updateWithCustomEvent
(
PointerMoveEvent
(
pointer:
pointerValue
,
position:
offset
+
const
Offset
(
150.0
,
9.0
),
pressure:
0.5
,
pressureMin:
0
,
pressureMax:
1
,
));
// We don't want this gesture to select any word on Android.
// We don't want this gesture to select any word on Android.
expect
(
controller
.
selection
,
const
TextSelection
.
collapsed
(
offset:
-
1
));
expect
(
controller
.
selection
,
const
TextSelection
.
collapsed
(
offset:
-
1
));
...
@@ -9056,7 +9062,7 @@ void main() {
...
@@ -9056,7 +9062,7 @@ void main() {
),
),
),
),
),
),
)
,
);
));
focusNode3
.
requestFocus
();
focusNode3
.
requestFocus
();
await
tester
.
pump
();
await
tester
.
pump
();
...
...
packages/flutter/test/material/time_picker_theme_test.dart
View file @
8de7020a
...
@@ -231,7 +231,7 @@ void main() {
...
@@ -231,7 +231,7 @@ void main() {
testWidgets
(
'Time picker uses values from TimePickerThemeData'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Time picker uses values from TimePickerThemeData'
,
(
WidgetTester
tester
)
async
{
final
TimePickerThemeData
timePickerTheme
=
_timePickerTheme
();
final
TimePickerThemeData
timePickerTheme
=
_timePickerTheme
();
final
ThemeData
theme
=
ThemeData
(
timePickerTheme:
timePickerTheme
);
final
ThemeData
theme
=
ThemeData
(
timePickerTheme:
timePickerTheme
);
await
tester
.
pumpWidget
(
_TimePickerLauncher
(
themeData:
theme
,
));
await
tester
.
pumpWidget
(
_TimePickerLauncher
(
themeData:
theme
));
await
tester
.
tap
(
find
.
text
(
'X'
));
await
tester
.
tap
(
find
.
text
(
'X'
));
await
tester
.
pumpAndSettle
(
const
Duration
(
seconds:
1
));
await
tester
.
pumpAndSettle
(
const
Duration
(
seconds:
1
));
...
...
packages/flutter/test/material/tooltip_test.dart
View file @
8de7020a
...
@@ -1235,7 +1235,7 @@ void main() {
...
@@ -1235,7 +1235,7 @@ void main() {
testWidgets
(
'default Tooltip debugFillProperties'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'default Tooltip debugFillProperties'
,
(
WidgetTester
tester
)
async
{
final
DiagnosticPropertiesBuilder
builder
=
DiagnosticPropertiesBuilder
();
final
DiagnosticPropertiesBuilder
builder
=
DiagnosticPropertiesBuilder
();
const
Tooltip
(
message:
'message'
,
).
debugFillProperties
(
builder
);
const
Tooltip
(
message:
'message'
).
debugFillProperties
(
builder
);
final
List
<
String
>
description
=
builder
.
properties
final
List
<
String
>
description
=
builder
.
properties
.
where
((
DiagnosticsNode
node
)
=>
!
node
.
isFiltered
(
DiagnosticLevel
.
info
))
.
where
((
DiagnosticsNode
node
)
=>
!
node
.
isFiltered
(
DiagnosticLevel
.
info
))
...
...
packages/flutter/test/material/tooltip_theme_test.dart
View file @
8de7020a
...
@@ -1242,7 +1242,7 @@ void main() {
...
@@ -1242,7 +1242,7 @@ void main() {
testWidgets
(
'default Tooltip debugFillProperties'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'default Tooltip debugFillProperties'
,
(
WidgetTester
tester
)
async
{
final
DiagnosticPropertiesBuilder
builder
=
DiagnosticPropertiesBuilder
();
final
DiagnosticPropertiesBuilder
builder
=
DiagnosticPropertiesBuilder
();
const
Tooltip
(
message:
'message'
,
).
debugFillProperties
(
builder
);
const
Tooltip
(
message:
'message'
).
debugFillProperties
(
builder
);
final
List
<
String
>
description
=
builder
.
properties
final
List
<
String
>
description
=
builder
.
properties
.
where
((
DiagnosticsNode
node
)
=>
!
node
.
isFiltered
(
DiagnosticLevel
.
info
))
.
where
((
DiagnosticsNode
node
)
=>
!
node
.
isFiltered
(
DiagnosticLevel
.
info
))
...
...
packages/flutter/test/widgets/basic_test.dart
View file @
8de7020a
...
@@ -320,7 +320,7 @@ void main() {
...
@@ -320,7 +320,7 @@ void main() {
test
(
'UnconstrainedBox toString'
,
()
{
test
(
'UnconstrainedBox toString'
,
()
{
expect
(
expect
(
const
UnconstrainedBox
(
constrainedAxis:
Axis
.
vertical
,
).
toString
(),
const
UnconstrainedBox
(
constrainedAxis:
Axis
.
vertical
).
toString
(),
equals
(
'UnconstrainedBox(alignment: Alignment.center, constrainedAxis: vertical)'
),
equals
(
'UnconstrainedBox(alignment: Alignment.center, constrainedAxis: vertical)'
),
);
);
...
...
packages/flutter/test/widgets/editable_text_test.dart
View file @
8de7020a
...
@@ -5971,9 +5971,9 @@ void main() {
...
@@ -5971,9 +5971,9 @@ void main() {
expect
(
log
.
length
,
2
);
expect
(
log
.
length
,
2
);
MethodCall
methodCall
=
log
[
0
];
MethodCall
methodCall
=
log
[
0
];
// Close the InputConnection.
// Close the InputConnection.
expect
(
methodCall
,
isMethodCall
(
'TextInput.clearClient'
,
arguments:
null
)
,
);
expect
(
methodCall
,
isMethodCall
(
'TextInput.clearClient'
,
arguments:
null
));
methodCall
=
log
[
1
];
methodCall
=
log
[
1
];
expect
(
methodCall
,
isMethodCall
(
'TextInput.hide'
,
arguments:
null
)
,
);
expect
(
methodCall
,
isMethodCall
(
'TextInput.hide'
,
arguments:
null
));
// The keyboard loses focus.
// The keyboard loses focus.
expect
(
focusNode
.
hasFocus
,
false
);
expect
(
focusNode
.
hasFocus
,
false
);
...
...
packages/flutter/test/widgets/ensure_visible_test.dart
View file @
8de7020a
...
@@ -232,7 +232,7 @@ void main() {
...
@@ -232,7 +232,7 @@ void main() {
(
int
y
)
=>
Row
(
(
int
y
)
=>
Row
(
children:
List
<
SizedBox
>.
generate
(
children:
List
<
SizedBox
>.
generate
(
7
,
7
,
(
int
x
)
=>
SizedBox
(
key:
ValueKey
<
String
>(
'
$x
,
$y
'
),
width:
200.0
,
height:
200.0
,
),
(
int
x
)
=>
SizedBox
(
key:
ValueKey
<
String
>(
'
$x
,
$y
'
),
width:
200.0
,
height:
200.0
),
),
),
),
),
);
);
...
...
packages/flutter/test/widgets/focus_manager_test.dart
View file @
8de7020a
...
@@ -74,7 +74,10 @@ void main() {
...
@@ -74,7 +74,10 @@ void main() {
padding:
const
EdgeInsets
.
all
(
8.0
),
padding:
const
EdgeInsets
.
all
(
8.0
),
child:
Column
(
child:
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
Focus
(
focusNode:
focusNode1
,
child:
const
SizedBox
(
width:
200
,
height:
100
),),
Focus
(
focusNode:
focusNode1
,
child:
const
SizedBox
(
width:
200
,
height:
100
),
),
Transform
.
translate
(
Transform
.
translate
(
offset:
const
Offset
(
10
,
20
),
offset:
const
Offset
(
10
,
20
),
child:
Transform
.
scale
(
child:
Transform
.
scale
(
...
...
packages/flutter/test/widgets/framework_test.dart
View file @
8de7020a
...
@@ -1067,7 +1067,7 @@ void main() {
...
@@ -1067,7 +1067,7 @@ void main() {
const
Key
key2
=
GlobalObjectKey
(
'key2'
);
const
Key
key2
=
GlobalObjectKey
(
'key2'
);
late
StateSetter
setState
;
late
StateSetter
setState
;
int
tabBarViewCnt
=
2
;
int
tabBarViewCnt
=
2
;
TabController
tabController
=
TabController
(
length:
tabBarViewCnt
,
vsync:
const
TestVSync
()
,
);
TabController
tabController
=
TabController
(
length:
tabBarViewCnt
,
vsync:
const
TestVSync
());
await
tester
.
pumpWidget
(
Directionality
(
await
tester
.
pumpWidget
(
Directionality
(
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
...
@@ -1077,8 +1077,8 @@ void main() {
...
@@ -1077,8 +1077,8 @@ void main() {
return
TabBarView
(
return
TabBarView
(
controller:
tabController
,
controller:
tabController
,
children:
<
Widget
>[
children:
<
Widget
>[
if
(
tabBarViewCnt
>
0
)
const
Text
(
'key1'
,
key:
key1
,
),
if
(
tabBarViewCnt
>
0
)
const
Text
(
'key1'
,
key:
key1
),
if
(
tabBarViewCnt
>
1
)
const
Text
(
'key2'
,
key:
key2
,
),
if
(
tabBarViewCnt
>
1
)
const
Text
(
'key2'
,
key:
key2
),
],
],
);
);
},
},
...
@@ -1099,7 +1099,7 @@ void main() {
...
@@ -1099,7 +1099,7 @@ void main() {
// rebuild TabBarView that only have the 1st page with GlobalKey 'key1'
// rebuild TabBarView that only have the 1st page with GlobalKey 'key1'
setState
((){
setState
((){
tabBarViewCnt
=
1
;
tabBarViewCnt
=
1
;
tabController
=
TabController
(
length:
tabBarViewCnt
,
vsync:
const
TestVSync
()
,
);
tabController
=
TabController
(
length:
tabBarViewCnt
,
vsync:
const
TestVSync
());
});
});
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
// finish the animation
await
tester
.
pump
(
const
Duration
(
seconds:
1
));
// finish the animation
...
...
packages/flutter/test/widgets/gesture_detector_test.dart
View file @
8de7020a
...
@@ -806,7 +806,7 @@ void main() {
...
@@ -806,7 +806,7 @@ void main() {
test
(
'constructor redundant pan and scale'
,
()
{
test
(
'constructor redundant pan and scale'
,
()
{
late
FlutterError
error
;
late
FlutterError
error
;
try
{
try
{
GestureDetector
(
onScaleStart:
(
_
)
{},
onPanStart:
(
_
)
{}
,
);
GestureDetector
(
onScaleStart:
(
_
)
{},
onPanStart:
(
_
)
{});
}
on
FlutterError
catch
(
e
)
{
}
on
FlutterError
catch
(
e
)
{
error
=
e
;
error
=
e
;
}
finally
{
}
finally
{
...
...
packages/flutter/test/widgets/image_test.dart
View file @
8de7020a
...
@@ -736,7 +736,7 @@ void main() {
...
@@ -736,7 +736,7 @@ void main() {
});
});
testWidgets
(
'Image.memory control test'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Image.memory control test'
,
(
WidgetTester
tester
)
async
{
await
tester
.
pumpWidget
(
Image
.
memory
(
Uint8List
.
fromList
(
kTransparentImage
),
excludeFromSemantics:
true
,
));
await
tester
.
pumpWidget
(
Image
.
memory
(
Uint8List
.
fromList
(
kTransparentImage
),
excludeFromSemantics:
true
));
});
});
testWidgets
(
'Image color and colorBlend parameters'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Image color and colorBlend parameters'
,
(
WidgetTester
tester
)
async
{
...
...
packages/flutter/test/widgets/modal_barrier_test.dart
View file @
8de7020a
...
@@ -288,7 +288,8 @@ void main() {
...
@@ -288,7 +288,8 @@ void main() {
return
false
;
return
false
;
},
},
),
),
],),
],
),
};
};
await
tester
.
pumpWidget
(
MaterialApp
(
routes:
routes
));
await
tester
.
pumpWidget
(
MaterialApp
(
routes:
routes
));
...
@@ -328,7 +329,8 @@ void main() {
...
@@ -328,7 +329,8 @@ void main() {
return
true
;
return
true
;
},
},
),
),
],),
],
),
};
};
await
tester
.
pumpWidget
(
MaterialApp
(
routes:
routes
));
await
tester
.
pumpWidget
(
MaterialApp
(
routes:
routes
));
...
...
packages/flutter/test/widgets/nested_scroll_view_test.dart
View file @
8de7020a
...
@@ -2380,7 +2380,7 @@ class _TestLayoutExtentIsNegative extends StatelessWidget {
...
@@ -2380,7 +2380,7 @@ class _TestLayoutExtentIsNegative extends StatelessWidget {
margin:
const
EdgeInsets
.
all
(
20
),
margin:
const
EdgeInsets
.
all
(
20
),
),
),
);
);
}
,
),
}),
SliverOverlapAbsorber
(
SliverOverlapAbsorber
(
handle:
NestedScrollView
.
sliverOverlapAbsorberHandleFor
(
context
),
handle:
NestedScrollView
.
sliverOverlapAbsorberHandleFor
(
context
),
sliver:
SliverAppBar
(
sliver:
SliverAppBar
(
...
@@ -2407,7 +2407,7 @@ class _TestLayoutExtentIsNegative extends StatelessWidget {
...
@@ -2407,7 +2407,7 @@ class _TestLayoutExtentIsNegative extends StatelessWidget {
height:
200
,
height:
200
,
margin:
const
EdgeInsets
.
all
(
20
),
margin:
const
EdgeInsets
.
all
(
20
),
);
);
}
,
),
}),
),
),
),
),
),
),
...
...
packages/flutter/test/widgets/overscroll_indicator_test.dart
View file @
8de7020a
...
@@ -333,14 +333,14 @@ void main() {
...
@@ -333,14 +333,14 @@ void main() {
slivers:
<
Widget
>[
slivers:
<
Widget
>[
SliverList
(
SliverList
(
delegate:
SliverChildBuilderDelegate
(
delegate:
SliverChildBuilderDelegate
(
(
BuildContext
context
,
int
index
)
=>
Text
(
'First sliver
$index
'
,
),
(
BuildContext
context
,
int
index
)
=>
Text
(
'First sliver
$index
'
),
childCount:
2
,
childCount:
2
,
),
),
),
),
SliverList
(
SliverList
(
key:
centerKey
,
key:
centerKey
,
delegate:
SliverChildBuilderDelegate
(
delegate:
SliverChildBuilderDelegate
(
(
BuildContext
context
,
int
index
)
=>
Text
(
'Second sliver
$index
'
,
),
(
BuildContext
context
,
int
index
)
=>
Text
(
'Second sliver
$index
'
),
childCount:
5
,
childCount:
5
,
),
),
),
),
...
@@ -379,14 +379,14 @@ void main() {
...
@@ -379,14 +379,14 @@ void main() {
slivers:
<
Widget
>[
slivers:
<
Widget
>[
SliverList
(
SliverList
(
delegate:
SliverChildBuilderDelegate
(
delegate:
SliverChildBuilderDelegate
(
(
BuildContext
context
,
int
index
)
=>
Text
(
'First sliver
$index
'
,
),
(
BuildContext
context
,
int
index
)
=>
Text
(
'First sliver
$index
'
),
childCount:
2
,
childCount:
2
,
),
),
),
),
SliverList
(
SliverList
(
key:
centerKey
,
key:
centerKey
,
delegate:
SliverChildBuilderDelegate
(
delegate:
SliverChildBuilderDelegate
(
(
BuildContext
context
,
int
index
)
=>
Text
(
'Second sliver
$index
'
,
),
(
BuildContext
context
,
int
index
)
=>
Text
(
'Second sliver
$index
'
),
childCount:
5
,
childCount:
5
,
),
),
),
),
...
...
packages/flutter/test/widgets/platform_view_test.dart
View file @
8de7020a
...
@@ -257,7 +257,7 @@ void main() {
...
@@ -257,7 +257,7 @@ void main() {
child:
SizedBox
(
child:
SizedBox
(
width:
200.0
,
width:
200.0
,
height:
100.0
,
height:
100.0
,
child:
AndroidView
(
viewType:
'webview'
,
layoutDirection:
TextDirection
.
ltr
,
),
child:
AndroidView
(
viewType:
'webview'
,
layoutDirection:
TextDirection
.
ltr
),
),
),
),
),
);
);
...
@@ -1196,7 +1196,8 @@ void main() {
...
@@ -1196,7 +1196,8 @@ void main() {
final
AndroidViewSurface
surface
=
AndroidViewSurface
(
final
AndroidViewSurface
surface
=
AndroidViewSurface
(
controller:
controller
,
controller:
controller
,
hitTestBehavior:
PlatformViewHitTestBehavior
.
opaque
,
hitTestBehavior:
PlatformViewHitTestBehavior
.
opaque
,
gestureRecognizers:
const
<
Factory
<
OneSequenceGestureRecognizer
>>{},);
gestureRecognizers:
const
<
Factory
<
OneSequenceGestureRecognizer
>>{},
);
await
tester
.
pumpWidget
(
surface
);
await
tester
.
pumpWidget
(
surface
);
expect
(
controller
.
pointTransformer
,
isNotNull
);
expect
(
controller
.
pointTransformer
,
isNotNull
);
});
});
...
@@ -1400,7 +1401,7 @@ void main() {
...
@@ -1400,7 +1401,7 @@ void main() {
child:
SizedBox
(
child:
SizedBox
(
width:
200.0
,
width:
200.0
,
height:
100.0
,
height:
100.0
,
child:
UiKitView
(
viewType:
'webview'
,
layoutDirection:
TextDirection
.
ltr
,
),
child:
UiKitView
(
viewType:
'webview'
,
layoutDirection:
TextDirection
.
ltr
),
),
),
),
),
);
);
...
@@ -1890,14 +1891,17 @@ void main() {
...
@@ -1890,14 +1891,17 @@ void main() {
child:
const
SizedBox
(
child:
const
SizedBox
(
width:
300
,
width:
300
,
height:
500
,
height:
500
,
child:
UiKitView
(
viewType:
'webview'
,
layoutDirection:
TextDirection
.
ltr
)),),
child:
UiKitView
(
viewType:
'webview'
,
layoutDirection:
TextDirection
.
ltr
),
),
),
Transform
.
translate
(
Transform
.
translate
(
offset:
const
Offset
(
0
,
500
),
offset:
const
Offset
(
0
,
500
),
child:
Container
(
child:
Container
(
color:
const
Color
.
fromARGB
(
255
,
255
,
255
,
255
),
color:
const
Color
.
fromARGB
(
255
,
255
,
255
,
255
),
width:
300
,
width:
300
,
height:
100
,
height:
100
,
),),
),
),
],
],
),
),
),
),
...
@@ -1998,7 +2002,8 @@ void main() {
...
@@ -1998,7 +2002,8 @@ void main() {
final
PlatformViewSurface
surface
=
PlatformViewSurface
(
final
PlatformViewSurface
surface
=
PlatformViewSurface
(
controller:
controller
,
controller:
controller
,
hitTestBehavior:
PlatformViewHitTestBehavior
.
opaque
,
hitTestBehavior:
PlatformViewHitTestBehavior
.
opaque
,
gestureRecognizers:
const
<
Factory
<
OneSequenceGestureRecognizer
>>{},);
gestureRecognizers:
const
<
Factory
<
OneSequenceGestureRecognizer
>>{},
);
await
tester
.
pumpWidget
(
surface
);
await
tester
.
pumpWidget
(
surface
);
expect
(()
=>
tester
.
layers
.
whereType
<
PlatformViewLayer
>().
first
,
returnsNormally
);
expect
(()
=>
tester
.
layers
.
whereType
<
PlatformViewLayer
>().
first
,
returnsNormally
);
});
});
...
@@ -2467,7 +2472,7 @@ void main() {
...
@@ -2467,7 +2472,7 @@ void main() {
Center
(
Center
(
child:
Column
(
child:
Column
(
children:
<
Widget
>[
children:
<
Widget
>[
SizedBox
(
child:
platformViewLink
,
width:
300
,
height:
300
,
),
SizedBox
(
child:
platformViewLink
,
width:
300
,
height:
300
),
Focus
(
Focus
(
debugLabel:
'container'
,
debugLabel:
'container'
,
child:
Container
(
key:
containerKey
),
child:
Container
(
key:
containerKey
),
...
...
packages/flutter/test/widgets/rich_text_test.dart
View file @
8de7020a
...
@@ -64,7 +64,7 @@ void main() {
...
@@ -64,7 +64,7 @@ void main() {
WidgetSpan
(
WidgetSpan
(
child:
Row
(
child:
Row
(
children:
const
<
Widget
>[
children:
const
<
Widget
>[
SizedBox
(
height:
16
,
width:
16
,
),
SizedBox
(
height:
16
,
width:
16
),
],
],
),
),
),
),
...
@@ -114,7 +114,7 @@ void main() {
...
@@ -114,7 +114,7 @@ void main() {
contains
(
'textWidthBasis: longestLine'
),
contains
(
'textWidthBasis: longestLine'
),
contains
(
'text: "rich text"'
),
contains
(
'text: "rich text"'
),
contains
(
'locale: zh_HK'
),
contains
(
'locale: zh_HK'
),
allOf
(
startsWith
(
'strutStyle: StrutStyle('
),
contains
(
'size: 16.0'
)
,
),
allOf
(
startsWith
(
'strutStyle: StrutStyle('
),
contains
(
'size: 16.0'
)),
allOf
(
allOf
(
startsWith
(
'textHeightBehavior: TextHeightBehavior('
),
startsWith
(
'textHeightBehavior: TextHeightBehavior('
),
contains
(
'applyHeightToFirstAscent: false'
),
contains
(
'applyHeightToFirstAscent: false'
),
...
...
packages/flutter/test/widgets/route_notification_messages_test.dart
View file @
8de7020a
...
@@ -126,7 +126,7 @@ void main() {
...
@@ -126,7 +126,7 @@ void main() {
child:
Navigator
(
child:
Navigator
(
pages:
const
<
Page
<
void
>>[
pages:
const
<
Page
<
void
>>[
TestPage
(
name:
'/'
),
TestPage
(
name:
'/'
),
TestPage
(
name:
'/abc'
,
),
TestPage
(
name:
'/abc'
),
],
],
onPopPage:
(
Route
<
void
>
route
,
void
result
)
=>
false
,
onPopPage:
(
Route
<
void
>
route
,
void
result
)
=>
false
,
)
)
...
...
packages/flutter/test/widgets/run_app_test.dart
View file @
8de7020a
...
@@ -13,7 +13,7 @@ void main() {
...
@@ -13,7 +13,7 @@ void main() {
child:
Material
(
child:
Material
(
child:
ElevatedButton
(
child:
ElevatedButton
(
onPressed:
()
{
onPressed:
()
{
runApp
(
const
Center
(
child:
Text
(
'Done'
,
textDirection:
TextDirection
.
ltr
,
)));
runApp
(
const
Center
(
child:
Text
(
'Done'
,
textDirection:
TextDirection
.
ltr
)));
},
},
child:
const
Text
(
'GO'
),
child:
const
Text
(
'GO'
),
),
),
...
...
packages/flutter/test/widgets/scrollable_test.dart
View file @
8de7020a
...
@@ -376,7 +376,7 @@ void main() {
...
@@ -376,7 +376,7 @@ void main() {
slivers:
<
Widget
>[
SliverToBoxAdapter
(
slivers:
<
Widget
>[
SliverToBoxAdapter
(
child:
SizedBox
(
child:
SizedBox
(
height:
2000
,
height:
2000
,
child:
GestureDetector
(
onTap:
()
{}
,
),
child:
GestureDetector
(
onTap:
()
{}),
),
),
)],
)],
),
),
...
...
packages/flutter/test/widgets/single_child_scroll_view_test.dart
View file @
8de7020a
...
@@ -44,9 +44,9 @@ void main() {
...
@@ -44,9 +44,9 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
scrollDirection:
Axis
.
vertical
,
scrollDirection:
Axis
.
vertical
,
child:
Container
(
height:
600.0
,
)
child:
Container
(
height:
600.0
)
)
)
,
)
)
,
);
);
// 1st, check that the render object has received the default clip behavior.
// 1st, check that the render object has received the default clip behavior.
...
@@ -64,9 +64,9 @@ void main() {
...
@@ -64,9 +64,9 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
scrollDirection:
Axis
.
vertical
,
scrollDirection:
Axis
.
vertical
,
child:
Container
(
height:
600.1
,)
child:
Container
(
height:
600.1
),
)
)
,
)
)
,
);
);
renderObject
.
paint
(
context
,
Offset
.
zero
);
renderObject
.
paint
(
context
,
Offset
.
zero
);
expect
(
context
.
clipBehavior
,
equals
(
Clip
.
hardEdge
));
expect
(
context
.
clipBehavior
,
equals
(
Clip
.
hardEdge
));
...
@@ -79,9 +79,9 @@ void main() {
...
@@ -79,9 +79,9 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
scrollDirection:
Axis
.
horizontal
,
scrollDirection:
Axis
.
horizontal
,
child:
Container
(
width:
800.0
,)
child:
Container
(
width:
800.0
),
)
)
,
)
)
,
);
);
renderObject
.
paint
(
context
,
Offset
.
zero
);
renderObject
.
paint
(
context
,
Offset
.
zero
);
expect
(
context
.
clipBehavior
,
equals
(
Clip
.
none
));
expect
(
context
.
clipBehavior
,
equals
(
Clip
.
none
));
...
@@ -92,9 +92,9 @@ void main() {
...
@@ -92,9 +92,9 @@ void main() {
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
child:
SingleChildScrollView
(
child:
SingleChildScrollView
(
scrollDirection:
Axis
.
horizontal
,
scrollDirection:
Axis
.
horizontal
,
child:
Container
(
width:
800.1
,)
child:
Container
(
width:
800.1
),
)
)
,
)
)
,
);
);
renderObject
.
paint
(
context
,
Offset
.
zero
);
renderObject
.
paint
(
context
,
Offset
.
zero
);
expect
(
context
.
clipBehavior
,
equals
(
Clip
.
hardEdge
));
expect
(
context
.
clipBehavior
,
equals
(
Clip
.
hardEdge
));
...
...
packages/flutter/test/widgets/text_golden_test.dart
View file @
8de7020a
...
@@ -1331,11 +1331,11 @@ void main() {
...
@@ -1331,11 +1331,11 @@ void main() {
children:
const
<
Widget
>[
children:
const
<
Widget
>[
Text
(
'Hello
\n
Line 2
\n
Line 3'
,
Text
(
'Hello
\n
Line 2
\n
Line 3'
,
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
style:
TextStyle
(
height:
5
,
),
style:
TextStyle
(
height:
5
),
),
),
Text
(
'Hello
\n
Line 2
\n
Line 3'
,
Text
(
'Hello
\n
Line 2
\n
Line 3'
,
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
style:
TextStyle
(
height:
5
,
),
style:
TextStyle
(
height:
5
),
textHeightBehavior:
TextHeightBehavior
(
textHeightBehavior:
TextHeightBehavior
(
applyHeightToFirstAscent:
false
,
applyHeightToFirstAscent:
false
,
applyHeightToLastDescent:
false
,
applyHeightToLastDescent:
false
,
...
@@ -1343,7 +1343,7 @@ void main() {
...
@@ -1343,7 +1343,7 @@ void main() {
),
),
Text
(
'Hello'
,
Text
(
'Hello'
,
textDirection:
TextDirection
.
ltr
,
textDirection:
TextDirection
.
ltr
,
style:
TextStyle
(
height:
5
,
),
style:
TextStyle
(
height:
5
),
textHeightBehavior:
TextHeightBehavior
(
textHeightBehavior:
TextHeightBehavior
(
applyHeightToFirstAscent:
false
,
applyHeightToFirstAscent:
false
,
),
),
...
...
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