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
6346edba
Unverified
Commit
6346edba
authored
Mar 17, 2021
by
Hans Muller
Committed by
GitHub
Mar 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed accentColor refs from API docs (#78375)
parent
79862c48
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
14 deletions
+24
-14
about.dart
packages/flutter/lib/src/material/about.dart
+3
-2
colors.dart
packages/flutter/lib/src/material/colors.dart
+3
-3
theme_data.dart
packages/flutter/lib/src/material/theme_data.dart
+14
-7
overscroll_indicator.dart
packages/flutter/lib/src/widgets/overscroll_indicator.dart
+2
-1
scroll_physics.dart
packages/flutter/lib/src/widgets/scroll_physics.dart
+2
-1
No files found.
packages/flutter/lib/src/material/about.dart
View file @
6346edba
...
...
@@ -50,7 +50,8 @@ import 'theme.dart';
///
/// ```dart
/// Widget build(BuildContext context) {
/// final TextStyle textStyle = Theme.of(context).textTheme.bodyText2!;
/// final ThemeData theme = Theme.of(context);
/// final TextStyle textStyle = theme.textTheme.bodyText2!;
/// final List<Widget> aboutBoxChildren = <Widget>[
/// const SizedBox(height: 24),
/// RichText(
...
...
@@ -63,7 +64,7 @@ import 'theme.dart';
/// 'from a single codebase. Learn more about Flutter at '
/// ),
/// TextSpan(
/// style: textStyle.copyWith(color:
Theme.of(context).accentColor
),
/// style: textStyle.copyWith(color:
theme.colorScheme.primary
),
/// text: 'https://flutter.dev'
/// ),
/// TextSpan(
...
...
packages/flutter/lib/src/material/colors.dart
View file @
6346edba
...
...
@@ -90,9 +90,9 @@ class MaterialAccentColor extends ColorSwatch<int> {
/// [color palette](https://material.io/design/color/).
///
/// Instead of using an absolute color from these palettes, consider using
/// [Theme.of] to obtain the local [ThemeData
] structure, which exposes the
///
colors selected for the current theme, such as [ThemeData.primaryColor] and
///
[ThemeData.accentColor] (among many others).
/// [Theme.of] to obtain the local [ThemeData
.colorScheme], which defines
///
the colors that most of the Material components use by default.
///
///
/// Most swatches have colors from 100 to 900 in increments of one hundred, plus
/// the color 50. The smaller the number, the more pale the color. The greater
...
...
packages/flutter/lib/src/material/theme_data.dart
View file @
6346edba
...
...
@@ -151,19 +151,26 @@ enum MaterialTapTargetSize {
///
/// {@tool snippet}
///
/// This sample creates a [MaterialApp] widget that stores `ThemeData` and
/// passes the `ThemeData` to descendant widgets. The [AppBar] widget uses the
/// [primaryColor] to create a blue background. The [Text] widget uses the
/// [TextTheme.bodyText2] to create purple text. The [FloatingActionButton] widget
/// uses the [accentColor] to create a green background.
/// This sample creates a [MaterialApp] with a [Theme] whose
/// [ColorScheme] is based on [Colors.blue], but with the color
/// scheme's [ColorScheme.secondary] color overridden to be green. The
/// [AppBar] widget uses the color scheme's [ColorScheme.primary] as
/// its default background color and the [FloatingActionButton] widget
/// uses the color scheme's [ColorScheme.secondary] for its default
/// background. By default, the [Text] widget uses
/// [TextTheme.bodyText2], and the color of that [TextStyle] has been
/// changed to purple.
///
/// ![](https://flutter.github.io/assets-for-api-docs/assets/material/material_app_theme_data.png)
///
/// ```dart
/// MaterialApp(
/// theme: ThemeData(
/// primaryColor: Colors.blue,
/// accentColor: Colors.green,
/// colorScheme: ColorScheme.fromSwatch(
/// primarySwatch: Colors.blue,
/// ).copyWith(
/// secondary: Colors.green,
/// ),
/// textTheme: const TextTheme(bodyText2: TextStyle(color: Colors.purple)),
/// ),
/// home: Scaffold(
...
...
packages/flutter/lib/src/widgets/overscroll_indicator.dart
View file @
6346edba
...
...
@@ -30,7 +30,8 @@ import 'ticker_provider.dart';
/// Created automatically by [ScrollBehavior.buildViewportChrome] on platforms
/// (e.g., Android) that commonly use this type of overscroll indication.
///
/// In a [MaterialApp], the edge glow color is the [ThemeData.accentColor].
/// In a [MaterialApp], the edge glow color is the overall theme's
/// [ColorScheme.secondary] color.
///
/// ## Customizing the Glow Position for Advanced Scroll Views
///
...
...
packages/flutter/lib/src/widgets/scroll_physics.dart
View file @
6346edba
...
...
@@ -694,7 +694,8 @@ class BouncingScrollPhysics extends ScrollPhysics {
/// * [GlowingOverscrollIndicator], which is used by [ScrollConfiguration] to
/// provide the glowing effect that is usually found with this clamping effect
/// on Android. When using a [MaterialApp], the [GlowingOverscrollIndicator]'s
/// glow color is specified to use [ThemeData.accentColor].
/// glow color is specified to use the overall theme's
/// [ColorScheme.secondary] color.
class
ClampingScrollPhysics
extends
ScrollPhysics
{
/// Creates scroll physics that prevent the scroll offset from exceeding the
/// bounds of the content.
...
...
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