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
8c69fd55
Unverified
Commit
8c69fd55
authored
Aug 23, 2023
by
Kate Lovett
Committed by
GitHub
Aug 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated MaterialButtonWithIconMixin (#133173)
Part of
https://github.com/flutter/flutter/issues/133171
parent
89907f6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
18 deletions
+0
-18
button_theme.dart
packages/flutter/lib/src/material/button_theme.dart
+0
-4
material_button.dart
packages/flutter/lib/src/material/material_button.dart
+0
-14
No files found.
packages/flutter/lib/src/material/button_theme.dart
View file @
8c69fd55
...
@@ -641,10 +641,6 @@ class ButtonThemeData with Diagnosticable {
...
@@ -641,10 +641,6 @@ class ButtonThemeData with Diagnosticable {
return
button
.
padding
!;
return
button
.
padding
!;
}
}
if
(
button
is
MaterialButtonWithIconMixin
)
{
return
const
EdgeInsetsDirectional
.
only
(
start:
12.0
,
end:
16.0
);
}
if
(
_padding
!=
null
)
{
if
(
_padding
!=
null
)
{
return
_padding
!;
return
_padding
!;
}
}
...
...
packages/flutter/lib/src/material/material_button.dart
View file @
8c69fd55
...
@@ -440,17 +440,3 @@ class MaterialButton extends StatelessWidget {
...
@@ -440,17 +440,3 @@ class MaterialButton extends StatelessWidget {
properties
.
add
(
DiagnosticsProperty
<
MaterialTapTargetSize
>(
'materialTapTargetSize'
,
materialTapTargetSize
,
defaultValue:
null
));
properties
.
add
(
DiagnosticsProperty
<
MaterialTapTargetSize
>(
'materialTapTargetSize'
,
materialTapTargetSize
,
defaultValue:
null
));
}
}
}
}
/// The distinguished type of [MaterialButton].
///
/// This class is deprecated and will be removed in a future release.
///
/// This mixin only exists to give the "label and icon" button widgets a distinct
/// type for the sake of [ButtonTheme].
@Deprecated
(
'This was used to differentiate types of FlatButton, RaisedButton, and OutlineButton in ButtonTheme. '
'These buttons have been replaced with TextButton, ElevatedButton, and OutlinedButton, each of which have their own respective themes now. '
'Use one of these button classes instead. '
'This feature was deprecated after v2.11.0-0.0.pre.'
,
)
mixin
MaterialButtonWithIconMixin
{
}
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