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
7c1baeae
Unverified
Commit
7c1baeae
authored
Feb 14, 2022
by
Taha Tesser
Committed by
GitHub
Feb 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `fooTheme.of(context);` usage docs (#98402)
parent
10a25d65
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
drawer_theme.dart
packages/flutter/lib/src/material/drawer_theme.dart
+1
-1
elevated_button_theme.dart
packages/flutter/lib/src/material/elevated_button_theme.dart
+1
-1
navigation_bar_theme.dart
packages/flutter/lib/src/material/navigation_bar_theme.dart
+1
-1
navigation_rail_theme.dart
packages/flutter/lib/src/material/navigation_rail_theme.dart
+1
-1
outlined_button_theme.dart
packages/flutter/lib/src/material/outlined_button_theme.dart
+1
-1
text_button_theme.dart
packages/flutter/lib/src/material/text_button_theme.dart
+1
-1
No files found.
packages/flutter/lib/src/material/drawer_theme.dart
View file @
7c1baeae
...
...
@@ -144,7 +144,7 @@ class DrawerTheme extends InheritedTheme {
/// Typical usage is as follows:
///
/// ```dart
/// DrawerTheme theme = DrawerTheme.of(context);
/// DrawerTheme
Data
theme = DrawerTheme.of(context);
/// ```
static
DrawerThemeData
of
(
BuildContext
context
)
{
final
DrawerTheme
?
drawerTheme
=
context
.
dependOnInheritedWidgetOfExactType
<
DrawerTheme
>();
...
...
packages/flutter/lib/src/material/elevated_button_theme.dart
View file @
7c1baeae
...
...
@@ -107,7 +107,7 @@ class ElevatedButtonTheme extends InheritedTheme {
/// Typical usage is as follows:
///
/// ```dart
/// ElevatedButtonTheme theme = ElevatedButtonTheme.of(context);
/// ElevatedButtonTheme
Data
theme = ElevatedButtonTheme.of(context);
/// ```
static
ElevatedButtonThemeData
of
(
BuildContext
context
)
{
final
ElevatedButtonTheme
?
buttonTheme
=
context
.
dependOnInheritedWidgetOfExactType
<
ElevatedButtonTheme
>();
...
...
packages/flutter/lib/src/material/navigation_bar_theme.dart
View file @
7c1baeae
...
...
@@ -211,7 +211,7 @@ class NavigationBarTheme extends InheritedTheme {
/// Typical usage is as follows:
///
/// ```dart
/// NavigationBarTheme theme = NavigationBarTheme.of(context);
/// NavigationBarTheme
Data
theme = NavigationBarTheme.of(context);
/// ```
static
NavigationBarThemeData
of
(
BuildContext
context
)
{
final
NavigationBarTheme
?
navigationBarTheme
=
context
.
dependOnInheritedWidgetOfExactType
<
NavigationBarTheme
>();
...
...
packages/flutter/lib/src/material/navigation_rail_theme.dart
View file @
7c1baeae
...
...
@@ -219,7 +219,7 @@ class NavigationRailTheme extends InheritedTheme {
/// Typical usage is as follows:
///
/// ```dart
/// NavigationRailTheme theme = NavigationRailTheme.of(context);
/// NavigationRailTheme
Data
theme = NavigationRailTheme.of(context);
/// ```
static
NavigationRailThemeData
of
(
BuildContext
context
)
{
final
NavigationRailTheme
?
navigationRailTheme
=
context
.
dependOnInheritedWidgetOfExactType
<
NavigationRailTheme
>();
...
...
packages/flutter/lib/src/material/outlined_button_theme.dart
View file @
7c1baeae
...
...
@@ -107,7 +107,7 @@ class OutlinedButtonTheme extends InheritedTheme {
/// Typical usage is as follows:
///
/// ```dart
/// OutlinedButtonTheme theme = OutlinedButtonTheme.of(context);
/// OutlinedButtonTheme
Data
theme = OutlinedButtonTheme.of(context);
/// ```
static
OutlinedButtonThemeData
of
(
BuildContext
context
)
{
final
OutlinedButtonTheme
?
buttonTheme
=
context
.
dependOnInheritedWidgetOfExactType
<
OutlinedButtonTheme
>();
...
...
packages/flutter/lib/src/material/text_button_theme.dart
View file @
7c1baeae
...
...
@@ -107,7 +107,7 @@ class TextButtonTheme extends InheritedTheme {
/// Typical usage is as follows:
///
/// ```dart
/// TextButtonTheme theme = TextButtonTheme.of(context);
/// TextButtonTheme
Data
theme = TextButtonTheme.of(context);
/// ```
static
TextButtonThemeData
of
(
BuildContext
context
)
{
final
TextButtonTheme
?
buttonTheme
=
context
.
dependOnInheritedWidgetOfExactType
<
TextButtonTheme
>();
...
...
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