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
ab1cd3f8
Commit
ab1cd3f8
authored
Jan 20, 2017
by
Michael Goderbauer
Committed by
GitHub
Jan 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix doc comment about onPressed for various buttons (#7555)
parent
34b9ce85
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
flat_button.dart
packages/flutter/lib/src/material/flat_button.dart
+2
-2
floating_action_button.dart
...ages/flutter/lib/src/material/floating_action_button.dart
+2
-2
icon_button.dart
packages/flutter/lib/src/material/icon_button.dart
+2
-2
raised_button.dart
packages/flutter/lib/src/material/raised_button.dart
+4
-5
No files found.
packages/flutter/lib/src/material/flat_button.dart
View file @
ab1cd3f8
...
...
@@ -21,8 +21,8 @@ import 'theme.dart';
/// corners. Avoid using flat buttons where they would blend in with other
/// content, for example in the middle of lists.
///
/// If the [onPressed] callback is n
ot specified or null, then the button will
///
be disabled,
will not react to touch, and will be colored as specified by
/// If the [onPressed] callback is n
ull, then the button will be disabled,
/// will not react to touch, and will be colored as specified by
/// the [disabledColor] property instead of the [color] property. If you are
/// trying to change the button's [color] and it is not having any effect, check
/// that you are passing a non-null [onPressed] handler.
...
...
packages/flutter/lib/src/material/floating_action_button.dart
View file @
ab1cd3f8
...
...
@@ -29,8 +29,8 @@ final Object _kDefaultHeroTag = new Object();
/// buttons should be used for positive actions such as "create", "share", or
/// "navigate".
///
/// If the [onPressed] callback is n
ot specified or null, then the button will
///
be disabled and
will not react to touch.
/// If the [onPressed] callback is n
ull, then the button will be disabled and
/// will not react to touch.
///
/// See also:
///
...
...
packages/flutter/lib/src/material/icon_button.dart
View file @
ab1cd3f8
...
...
@@ -25,8 +25,8 @@ import 'tooltip.dart';
/// Icon buttons are commonly used in the [AppBar.actions] field, but they can
/// be used in many other places as well.
///
/// If the [onPressed] callback is n
ot specified or null, then the button will
///
be disabled,
will not react to touch.
/// If the [onPressed] callback is n
ull, then the button will be disabled and
/// will not react to touch.
///
/// Requires one of its ancestors to be a [Material] widget.
///
...
...
packages/flutter/lib/src/material/raised_button.dart
View file @
ab1cd3f8
...
...
@@ -18,11 +18,10 @@ import 'theme.dart';
/// in long busy lists of content, or in wide spaces. Avoid using raised buttons
/// on already-raised content such as dialogs or cards.
///
/// If the [onPressed] callback is not specified or null, then the button will
/// be disabled and by default will appear like a flat button in the
/// [disabledColor]. If you are trying to change the button's [color] and it is
/// not having any effect, check that you are passing a non-null [onPressed]
/// handler.
/// If the [onPressed] callback is null, then the button will be disabled and by
/// default will appear like a flat button in the [disabledColor]. If you are
/// trying to change the button's [color] and it is not having any effect, check
/// that you are passing a non-null [onPressed] handler.
///
/// Requires one of its ancestors to be a [Material] widget.
///
...
...
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