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
5af0429f
Unverified
Commit
5af0429f
authored
Jan 23, 2021
by
Kate Lovett
Committed by
GitHub
Jan 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove API (#73746)
parent
1b373f45
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
83 deletions
+0
-83
button_theme.dart
packages/flutter/lib/src/material/button_theme.dart
+0
-83
No files found.
packages/flutter/lib/src/material/button_theme.dart
View file @
5af0429f
...
@@ -130,89 +130,6 @@ class ButtonTheme extends InheritedTheme {
...
@@ -130,89 +130,6 @@ class ButtonTheme extends InheritedTheme {
})
:
assert
(
data
!=
null
),
})
:
assert
(
data
!=
null
),
super
(
key:
key
,
child:
child
);
super
(
key:
key
,
child:
child
);
/// Creates a button theme that is appropriate for button bars, as used in
/// dialog footers and in the headers of data tables.
///
/// Deprecated. Please use [ButtonBarTheme] instead which offers more
/// flexibility to configure [ButtonBar] widgets.
///
/// To migrate instances of code that were just wrapping a [ButtonBar]:
///
/// ```dart
/// ButtonTheme.bar(
/// child: ButtonBar(...)
/// );
/// ```
///
/// you can just remove the `ButtonTheme.bar` as the defaults are now handled
/// by [ButtonBar] directly.
///
/// If you have more complicated usages of `ButtonTheme.bar` like:
///
/// ```dart
/// ButtonTheme.bar(
/// padding: EdgeInsets.symmetric(horizontal: 10.0),
/// textTheme: ButtonTextTheme.accent,
/// child: ButtonBar(...),
/// );
/// ```
///
/// you can remove the `ButtonTheme.bar` and move the parameters to the
/// [ButtonBar] instance directly:
///
/// ```dart
/// ButtonBar(
/// padding: EdgeInsets.symmetric(horizontal: 10.0),
/// textTheme: ButtonTextTheme.accent,
/// ...
/// );
/// ```
///
/// You can also replace the defaults for all [ButtonBar] widgets by updating
/// [ThemeData.buttonBarTheme] for your app.
@Deprecated
(
'Use ButtonBarTheme instead. '
'This feature was deprecated after v1.9.1.'
)
ButtonTheme
.
bar
({
Key
?
key
,
ButtonTextTheme
textTheme
=
ButtonTextTheme
.
accent
,
double
minWidth
=
64.0
,
double
height
=
36.0
,
EdgeInsetsGeometry
padding
=
const
EdgeInsets
.
symmetric
(
horizontal:
8.0
),
ShapeBorder
?
shape
,
bool
alignedDropdown
=
false
,
Color
?
buttonColor
,
Color
?
disabledColor
,
Color
?
focusColor
,
Color
?
hoverColor
,
Color
?
highlightColor
,
Color
?
splashColor
,
ColorScheme
?
colorScheme
,
required
Widget
child
,
ButtonBarLayoutBehavior
layoutBehavior
=
ButtonBarLayoutBehavior
.
padded
,
})
:
assert
(
textTheme
!=
null
),
assert
(
minWidth
!=
null
&&
minWidth
>=
0.0
),
assert
(
height
!=
null
&&
height
>=
0.0
),
assert
(
alignedDropdown
!=
null
),
data
=
ButtonThemeData
(
textTheme:
textTheme
,
minWidth:
minWidth
,
height:
height
,
padding:
padding
,
shape:
shape
,
alignedDropdown:
alignedDropdown
,
layoutBehavior:
layoutBehavior
,
buttonColor:
buttonColor
,
disabledColor:
disabledColor
,
focusColor:
focusColor
,
hoverColor:
hoverColor
,
highlightColor:
highlightColor
,
splashColor:
splashColor
,
colorScheme:
colorScheme
,
),
super
(
key:
key
,
child:
child
);
/// Specifies the color and geometry of buttons.
/// Specifies the color and geometry of buttons.
final
ButtonThemeData
data
;
final
ButtonThemeData
data
;
...
...
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