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
d73b6571
Unverified
Commit
d73b6571
authored
Jun 06, 2022
by
Taha Tesser
Committed by
GitHub
Jun 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `RenderAligningShiftedBox.mixin` (no longer needed) (#105177)
parent
82ae6121
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
debug_overflow_indicator.dart
...s/flutter/lib/src/rendering/debug_overflow_indicator.dart
+4
-4
shifted_box.dart
packages/flutter/lib/src/rendering/shifted_box.dart
+4
-11
No files found.
packages/flutter/lib/src/rendering/debug_overflow_indicator.dart
View file @
d73b6571
...
...
@@ -53,10 +53,10 @@ class _OverflowRegionData {
/// ```dart
/// class MyRenderObject extends RenderAligningShiftedBox with DebugOverflowIndicatorMixin {
/// MyRenderObject({
///
AlignmentGeometry
alignment = Alignment.center,
///
TextDirection?
textDirection,
///
RenderBox?
child,
/// })
: super.mixin(alignment, textDirection, child)
;
///
super.
alignment = Alignment.center,
///
required super.
textDirection,
///
super.
child,
/// });
///
/// late Rect _containerRect;
/// late Rect _childRect;
...
...
packages/flutter/lib/src/rendering/shifted_box.dart
View file @
d73b6571
...
...
@@ -291,12 +291,6 @@ abstract class RenderAligningShiftedBox extends RenderShiftedBox {
_textDirection
=
textDirection
,
super
(
child
);
/// A constructor to be used only when the extending class also has a mixin.
// TODO(gspencer): Remove this constructor once https://github.com/dart-lang/sdk/issues/31543 is fixed.
@protected
RenderAligningShiftedBox
.
mixin
(
AlignmentGeometry
alignment
,
TextDirection
?
textDirection
,
RenderBox
?
child
)
:
this
(
alignment:
alignment
,
textDirection:
textDirection
,
child:
child
);
Alignment
?
_resolvedAlignment
;
void
_resolve
()
{
...
...
@@ -707,17 +701,16 @@ class RenderConstraintsTransformBox extends RenderAligningShiftedBox with DebugO
///
/// The [alignment] and [clipBehavior] must not be null.
RenderConstraintsTransformBox
({
required
AlignmentGeometry
alignment
,
required
TextDirection
?
textDirection
,
required
super
.
alignment
,
required
super
.
textDirection
,
required
BoxConstraintsTransform
constraintsTransform
,
RenderBox
?
child
,
super
.
child
,
Clip
clipBehavior
=
Clip
.
none
,
})
:
assert
(
alignment
!=
null
),
assert
(
clipBehavior
!=
null
),
assert
(
constraintsTransform
!=
null
),
_constraintsTransform
=
constraintsTransform
,
_clipBehavior
=
clipBehavior
,
super
.
mixin
(
alignment
,
textDirection
,
child
);
_clipBehavior
=
clipBehavior
;
/// {@macro flutter.widgets.constraintsTransform}
BoxConstraintsTransform
get
constraintsTransform
=>
_constraintsTransform
;
...
...
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