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
06515fe0
Unverified
Commit
06515fe0
authored
Jan 13, 2022
by
Konstantin Scheglov
Committed by
GitHub
Jan 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore in _Location (#96553)
parent
e912b91c
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
23 additions
and
199 deletions
+23
-199
date_and_time_picker_demo.dart
..._gallery/lib/demo/material/date_and_time_picker_demo.dart
+0
-2
desktop_text_selection.dart
...ges/flutter/lib/src/cupertino/desktop_text_selection.dart
+1
-8
dialog.dart
packages/flutter/lib/src/cupertino/dialog.dart
+1
-5
about.dart
packages/flutter/lib/src/material/about.dart
+10
-133
desktop_text_selection.dart
...ages/flutter/lib/src/material/desktop_text_selection.dart
+1
-8
input_decorator.dart
packages/flutter/lib/src/material/input_decorator.dart
+0
-3
mergeable_material.dart
packages/flutter/lib/src/material/mergeable_material.dart
+1
-2
navigation_bar.dart
packages/flutter/lib/src/material/navigation_bar.dart
+1
-9
widget_inspector.dart
packages/flutter/lib/src/widgets/widget_inspector.dart
+1
-0
search_test.dart
packages/flutter/test/material/search_test.dart
+2
-10
recording_canvas.dart
packages/flutter/test/rendering/recording_canvas.dart
+2
-3
viewport_test.dart
packages/flutter/test/rendering/viewport_test.dart
+1
-3
editable_text_show_on_screen_test.dart
...utter/test/widgets/editable_text_show_on_screen_test.dart
+1
-2
image_filter_quality_test.dart
packages/flutter/test/widgets/image_filter_quality_test.dart
+0
-2
slotted_render_object_widget_test.dart
...utter/test/widgets/slotted_render_object_widget_test.dart
+0
-2
ticker_mode_test.dart
packages/flutter/test/widgets/ticker_mode_test.dart
+1
-4
widget_tester_test.dart
packages/flutter_test/test/widget_tester_test.dart
+0
-3
No files found.
dev/integration_tests/flutter_gallery/lib/demo/material/date_and_time_picker_demo.dart
View file @
06515fe0
...
...
@@ -10,7 +10,6 @@ import '../../gallery/demo.dart';
class
_InputDropdown
extends
StatelessWidget
{
const
_InputDropdown
({
Key
?
key
,
this
.
child
,
this
.
labelText
,
this
.
valueText
,
this
.
valueStyle
,
...
...
@@ -21,7 +20,6 @@ class _InputDropdown extends StatelessWidget {
final
String
?
valueText
;
final
TextStyle
?
valueStyle
;
final
VoidCallback
?
onPressed
;
final
Widget
?
child
;
@override
Widget
build
(
BuildContext
context
)
{
...
...
packages/flutter/lib/src/cupertino/desktop_text_selection.dart
View file @
06515fe0
...
...
@@ -245,7 +245,6 @@ class _CupertinoDesktopTextSelectionToolbar extends StatelessWidget {
Key
?
key
,
required
this
.
anchor
,
required
this
.
children
,
this
.
toolbarBuilder
=
_defaultToolbarBuilder
,
})
:
assert
(
children
.
length
>
0
),
super
(
key:
key
);
...
...
@@ -260,12 +259,6 @@ class _CupertinoDesktopTextSelectionToolbar extends StatelessWidget {
/// Mac-style text selection toolbar text button.
final
List
<
Widget
>
children
;
/// {@macro flutter.material.TextSelectionToolbar.toolbarBuilder}
///
/// The given anchor and isAbove can be used to position an arrow, as in the
/// default Cupertino toolbar.
final
ToolbarBuilder
toolbarBuilder
;
// Builds a toolbar just like the default Mac toolbar, with the right color
// background, padding, and rounded corners.
static
Widget
_defaultToolbarBuilder
(
BuildContext
context
,
Widget
child
)
{
...
...
@@ -308,7 +301,7 @@ class _CupertinoDesktopTextSelectionToolbar extends StatelessWidget {
delegate:
DesktopTextSelectionToolbarLayoutDelegate
(
anchor:
anchor
-
localAdjustment
,
),
child:
t
oolbarBuilder
(
context
,
Column
(
child:
_defaultT
oolbarBuilder
(
context
,
Column
(
mainAxisSize:
MainAxisSize
.
min
,
children:
children
,
)),
...
...
packages/flutter/lib/src/cupertino/dialog.dart
View file @
06515fe0
...
...
@@ -1675,11 +1675,7 @@ class _ActionButtonParentDataWidget
// ParentData applied to individual action buttons that report whether or not
// that button is currently pressed by the user.
class
_ActionButtonParentData
extends
MultiChildLayoutParentData
{
_ActionButtonParentData
({
this
.
isPressed
=
false
,
});
bool
isPressed
;
bool
isPressed
=
false
;
}
/// A button typically used in a [CupertinoAlertDialog].
...
...
packages/flutter/lib/src/material/about.dart
View file @
06515fe0
This diff is collapsed.
Click to expand it.
packages/flutter/lib/src/material/desktop_text_selection.dart
View file @
06515fe0
...
...
@@ -236,7 +236,6 @@ class _DesktopTextSelectionToolbar extends StatelessWidget {
Key
?
key
,
required
this
.
anchor
,
required
this
.
children
,
this
.
toolbarBuilder
=
_defaultToolbarBuilder
,
})
:
assert
(
children
.
length
>
0
),
super
(
key:
key
);
...
...
@@ -251,12 +250,6 @@ class _DesktopTextSelectionToolbar extends StatelessWidget {
/// Material-style desktop text selection toolbar text button.
final
List
<
Widget
>
children
;
/// {@macro flutter.material.TextSelectionToolbar.toolbarBuilder}
///
/// The given anchor and isAbove can be used to position an arrow, as in the
/// default toolbar.
final
ToolbarBuilder
toolbarBuilder
;
// Builds a desktop toolbar in the Material style.
static
Widget
_defaultToolbarBuilder
(
BuildContext
context
,
Widget
child
)
{
return
SizedBox
(
...
...
@@ -290,7 +283,7 @@ class _DesktopTextSelectionToolbar extends StatelessWidget {
delegate:
DesktopTextSelectionToolbarLayoutDelegate
(
anchor:
anchor
-
localAdjustment
,
),
child:
t
oolbarBuilder
(
context
,
Column
(
child:
_defaultT
oolbarBuilder
(
context
,
Column
(
mainAxisSize:
MainAxisSize
.
min
,
children:
children
,
)),
...
...
packages/flutter/lib/src/material/input_decorator.dart
View file @
06515fe0
...
...
@@ -145,7 +145,6 @@ class _BorderContainer extends StatefulWidget {
required
this
.
fillColor
,
required
this
.
hoverColor
,
required
this
.
isHovering
,
this
.
child
,
})
:
assert
(
border
!=
null
),
assert
(
gap
!=
null
),
assert
(
fillColor
!=
null
),
...
...
@@ -157,7 +156,6 @@ class _BorderContainer extends StatefulWidget {
final
Color
fillColor
;
final
Color
hoverColor
;
final
bool
isHovering
;
final
Widget
?
child
;
@override
_BorderContainerState
createState
()
=>
_BorderContainerState
();
...
...
@@ -249,7 +247,6 @@ class _BorderContainerState extends State<_BorderContainer> with TickerProviderS
hoverColorTween:
_hoverColorTween
,
hoverAnimation:
_hoverAnimation
,
),
child:
widget
.
child
,
);
}
}
...
...
packages/flutter/lib/src/material/mergeable_material.dart
View file @
06515fe0
...
...
@@ -151,14 +151,13 @@ class _AnimationTuple {
required
this
.
startAnimation
,
required
this
.
endAnimation
,
required
this
.
gapAnimation
,
this
.
gapStart
=
0.0
,
});
final
AnimationController
controller
;
final
CurvedAnimation
startAnimation
;
final
CurvedAnimation
endAnimation
;
final
CurvedAnimation
gapAnimation
;
double
gapStart
;
double
gapStart
=
0.0
;
}
class
_MergeableMaterialState
extends
State
<
MergeableMaterial
>
with
TickerProviderStateMixin
{
...
...
packages/flutter/lib/src/material/navigation_bar.dart
View file @
06515fe0
...
...
@@ -898,18 +898,10 @@ class _ClampTextScaleFactor extends StatelessWidget {
/// surrounding [child].
const
_ClampTextScaleFactor
({
Key
?
key
,
this
.
lowerLimit
=
0
,
this
.
upperLimit
=
double
.
infinity
,
required
this
.
child
,
})
:
super
(
key:
key
);
/// The minimum amount that the text scale factor should be for the [child]
/// widget.
///
/// If this is `.5`, the textScaleFactor for child widgets will never be
/// smaller than `.5`.
final
double
lowerLimit
;
/// The maximum amount that the text scale factor should be for the [child]
/// widget.
///
...
...
@@ -926,7 +918,7 @@ class _ClampTextScaleFactor extends StatelessWidget {
return
MediaQuery
(
data:
MediaQuery
.
of
(
context
).
copyWith
(
textScaleFactor:
MediaQuery
.
of
(
context
).
textScaleFactor
.
clamp
(
lowerLimit
,
0.0
,
upperLimit
,
),
),
...
...
packages/flutter/lib/src/widgets/widget_inspector.dart
View file @
06515fe0
...
...
@@ -2869,6 +2869,7 @@ class _Location {
required
this
.
file
,
required
this
.
line
,
required
this
.
column
,
// ignore: unused_element
this
.
name
,
});
...
...
packages/flutter/test/material/search_test.dart
View file @
06515fe0
...
...
@@ -1020,14 +1020,6 @@ class _TestSearchDelegate extends SearchDelegate<String> {
}
class
_TestEmptySearchDelegate
extends
SearchDelegate
<
String
>
{
_TestEmptySearchDelegate
({
this
.
suggestions
=
'Suggestions'
,
this
.
result
=
'Result'
,
})
:
super
();
final
String
suggestions
;
final
String
result
;
@override
Widget
?
buildLeading
(
BuildContext
context
)
=>
null
;
...
...
@@ -1040,7 +1032,7 @@ class _TestEmptySearchDelegate extends SearchDelegate<String> {
onPressed:
()
{
showResults
(
context
);
},
child:
Text
(
suggestions
),
child:
const
Text
(
'Suggestions'
),
);
}
...
...
@@ -1057,7 +1049,7 @@ class _TestEmptySearchDelegate extends SearchDelegate<String> {
tooltip:
'Close'
,
icon:
const
Icon
(
Icons
.
arrow_back
),
onPressed:
()
{
close
(
context
,
result
);
close
(
context
,
'Result'
);
},
),
);
...
...
packages/flutter/test/rendering/recording_canvas.dart
View file @
06515fe0
...
...
@@ -186,10 +186,9 @@ class TestRecordingPaintingContext extends ClipContext implements PaintingContex
}
class
_MethodCall
implements
Invocation
{
_MethodCall
(
this
.
_name
,
[
this
.
_arguments
=
const
<
dynamic
>[]
,
this
.
_typeArguments
=
const
<
Type
>
[]
]);
_MethodCall
(
this
.
_name
,
[
this
.
_arguments
=
const
<
dynamic
>[]]);
final
Symbol
_name
;
final
List
<
dynamic
>
_arguments
;
final
List
<
Type
>
_typeArguments
;
@override
bool
get
isAccessor
=>
false
;
@override
...
...
@@ -205,7 +204,7 @@ class _MethodCall implements Invocation {
@override
List
<
dynamic
>
get
positionalArguments
=>
_arguments
;
@override
List
<
Type
>
get
typeArguments
=>
_typeArguments
;
List
<
Type
>
get
typeArguments
=>
const
<
Type
>
[]
;
}
String
_valueName
(
Object
?
value
)
{
...
...
packages/flutter/test/rendering/viewport_test.dart
View file @
06515fe0
...
...
@@ -21,13 +21,11 @@ class _TestSliverPersistentHeaderDelegate extends SliverPersistentHeaderDelegate
this
.
key
,
required
this
.
minExtent
,
required
this
.
maxExtent
,
this
.
child
,
this
.
vsync
=
const
TestVSync
(),
this
.
showOnScreenConfiguration
=
const
PersistentHeaderShowOnScreenConfiguration
(),
});
final
Key
?
key
;
final
Widget
?
child
;
@override
final
double
maxExtent
;
...
...
@@ -42,7 +40,7 @@ class _TestSliverPersistentHeaderDelegate extends SliverPersistentHeaderDelegate
final
PersistentHeaderShowOnScreenConfiguration
showOnScreenConfiguration
;
@override
Widget
build
(
BuildContext
context
,
double
shrinkOffset
,
bool
overlapsContent
)
=>
child
??
SizedBox
.
expand
(
key:
key
);
Widget
build
(
BuildContext
context
,
double
shrinkOffset
,
bool
overlapsContent
)
=>
SizedBox
.
expand
(
key:
key
);
@override
bool
shouldRebuild
(
_TestSliverPersistentHeaderDelegate
oldDelegate
)
=>
true
;
...
...
packages/flutter/test/widgets/editable_text_show_on_screen_test.dart
View file @
06515fe0
...
...
@@ -14,7 +14,6 @@ class _TestSliverPersistentHeaderDelegate extends SliverPersistentHeaderDelegate
required
this
.
maxExtent
,
required
this
.
child
,
this
.
vsync
=
const
TestVSync
(),
this
.
showOnScreenConfiguration
=
const
PersistentHeaderShowOnScreenConfiguration
(),
});
final
Widget
child
;
...
...
@@ -29,7 +28,7 @@ class _TestSliverPersistentHeaderDelegate extends SliverPersistentHeaderDelegate
final
TickerProvider
?
vsync
;
@override
final
PersistentHeaderShowOnScreenConfiguration
showOnScreenConfiguration
;
final
PersistentHeaderShowOnScreenConfiguration
showOnScreenConfiguration
=
const
PersistentHeaderShowOnScreenConfiguration
()
;
@override
Widget
build
(
BuildContext
context
,
double
shrinkOffset
,
bool
overlapsContent
)
=>
child
;
...
...
packages/flutter/test/widgets/image_filter_quality_test.dart
View file @
06515fe0
...
...
@@ -72,8 +72,6 @@ Future<void> testImageQuality(WidgetTester tester, ui.FilterQuality? quality) as
}
class
_TestImageStreamCompleter
extends
ImageStreamCompleter
{
_TestImageStreamCompleter
([
this
.
_currentImage
]);
ImageInfo
?
_currentImage
;
final
Set
<
ImageStreamListener
>
listeners
=
<
ImageStreamListener
>{};
...
...
packages/flutter/test/widgets/slotted_render_object_widget_test.dart
View file @
06515fe0
...
...
@@ -201,12 +201,10 @@ class _Diagonal extends RenderObjectWidget with SlottedMultiChildRenderObjectWid
Key
?
key
,
this
.
topLeft
,
this
.
bottomRight
,
this
.
backgroundColor
,
})
:
super
(
key:
key
);
final
Widget
?
topLeft
;
final
Widget
?
bottomRight
;
final
Color
?
backgroundColor
;
@override
Iterable
<
_DiagonalSlot
>
get
slots
=>
_DiagonalSlot
.
values
;
...
...
packages/flutter/test/widgets/ticker_mode_test.dart
View file @
06515fe0
...
...
@@ -258,9 +258,7 @@ class _TickingWidgetState extends State<_TickingWidget> with SingleTickerProvide
}
class
_MultiTickingWidget
extends
StatefulWidget
{
const
_MultiTickingWidget
({
Key
?
key
,
this
.
onTick
})
:
super
(
key:
key
);
final
VoidCallback
?
onTick
;
const
_MultiTickingWidget
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
_MultiTickingWidget
>
createState
()
=>
_MultiTickingWidgetState
();
...
...
@@ -274,7 +272,6 @@ class _MultiTickingWidgetState extends State<_MultiTickingWidget> with TickerPro
void
initState
()
{
super
.
initState
();
ticker
=
createTicker
((
Duration
_
)
{
widget
.
onTick
?.
call
();
})..
start
();
}
...
...
packages/flutter_test/test/widget_tester_test.dart
View file @
06515fe0
...
...
@@ -809,11 +809,9 @@ class _SingleTickerTestState extends State<_SingleTickerTest> with SingleTickerP
class
_AlwaysAnimating
extends
StatefulWidget
{
const
_AlwaysAnimating
({
this
.
child
,
required
this
.
onPaint
,
});
final
Widget
?
child
;
final
VoidCallback
onPaint
;
@override
...
...
@@ -846,7 +844,6 @@ class _AlwaysAnimatingState extends State<_AlwaysAnimating> with SingleTickerPro
builder:
(
BuildContext
context
,
Widget
?
child
)
{
return
CustomPaint
(
painter:
_AlwaysRepaint
(
widget
.
onPaint
),
child:
widget
.
child
,
);
},
);
...
...
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