-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
d: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
Theme usage doc for some widgets has an incorrect return type.
Actual Results:
| /// TextButtonTheme theme = TextButtonTheme.of(context); |
The following error is thrown:
A value of type 'TextButtonThemeData' can't be assigned to a variable of type 'TextButtonTheme'.
Expected Results:
/// TextButtonThemeData theme = TextButtonTheme.of(context);
For reference
| /// BottomNavigationBarThemeData theme = BottomNavigationBarTheme.of(context); |
I've found the following widget theme docs have this issue problem
TextButtonThemeElevatedButtonThemeOutlinedButtonThemeDrawerThemeNavigationBarThemeNavigationRailTheme
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
d: api docsIssues with https://api.flutter.dev/Issues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Type
Projects
Status
Done (PR merged)