Skip to content

Remove use of deprecated MaterialState and MaterialStateProperty. #148218

@stuartmorgan-g

Description

@stuartmorgan-g

Example:

Analyzing flutter_adaptive_scaffold... 2.3s

   info • example/lib/main.dart:866:32 • 'MaterialStateProperty' is deprecated and shouldn't be used. Use WidgetStateProperty instead. Moved to
          the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • example/lib/main.dart:870:42 • 'MaterialStateProperty' is deprecated and shouldn't be used. Use WidgetStateProperty instead. Moved to
          the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • example/lib/main.dart:873:31 • 'MaterialStateProperty' is deprecated and shouldn't be used. Use WidgetStateProperty instead. Moved to
          the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • example/lib/main.dart:888:32 • 'MaterialStateProperty' is deprecated and shouldn't be used. Use WidgetStateProperty instead. Moved to
          the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • example/lib/main.dart:892:42 • 'MaterialStateProperty' is deprecated and shouldn't be used. Use WidgetStateProperty instead. Moved to
          the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • example/lib/main.dart:895:31 • 'MaterialStateProperty' is deprecated and shouldn't be used. Use WidgetStateProperty instead. Moved to
          the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. Try replacing the use
          of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/adaptive_scaffold.dart:341:24 • 'MaterialStateProperty' is deprecated and shouldn't be used. Use WidgetStateProperty instead.
          Moved to the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. Try
          replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/adaptive_scaffold.dart:342:20 • 'MaterialState' is deprecated and shouldn't be used. Use WidgetState instead. Moved to the
          Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre. Try replacing the use of
          the deprecated member with the replacement. • deprecated_member_use

Currently affects flutter_adaptive_scaffold and rfw.

Looks like we should be able to fix this after the next stable.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updatedpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem teamwaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions