atsign-foundation / at_widgets

Flutter widgets which aid in building applications using Atsign's technology
https://docs.atsign.com
BSD 3-Clause "New" or "Revised" License
52 stars 33 forks source link

`flutter analyze` failing on at_common_flutter due to deprecation #842

Closed cpswan closed 1 month ago

cpswan commented 1 month ago

Which at_widget package you find issue with?

at_common_flutter

On what platforms did you experience the issue?

Linux

What version are you using?

2.0.13

What happened?

During the CI run for #841

Analyzing at_common_flutter...                                  

  error • The named parameter 'backgroundColor' isn't defined • example/lib/main.dart:28:13 • undefined_named_parameter
  error • The named parameter 'backgroundColor' isn't defined • example/lib/main.dart:34:13 • undefined_named_parameter

2 issues found. (ran in 9.0s)

This was previously deprecated, and has been removed in Dart 3.4

The previous deprecation warning was:

   info • 'backgroundColor' is deprecated and shouldn't be used. Use colorScheme.background instead. This feature was
          deprecated after v3.3.0-0.5.pre • example/lib/main.dart:28:13 • deprecated_member_use
   info • 'backgroundColor' is deprecated and shouldn't be used. Use colorScheme.background instead. This feature was
          deprecated after v3.3.0-0.5.pre • example/lib/main.dart:34:13 • deprecated_member_use

Steps to reproduce

1. Go to packages/at_common_flutter
2. Run `flutter analyze` with latest Flutter

...

Additional info

@srieteja I've assigned you to this given that we don't have the GeekyAnts team now, but if you're not the right person then please let us know.

Relevant log output

No response

Flutter analyze output

Analyzing at_common_flutter...                                  

  error • The named parameter 'backgroundColor' isn't defined • example/lib/main.dart:28:13 • undefined_named_parameter
  error • The named parameter 'backgroundColor' isn't defined • example/lib/main.dart:34:13 • undefined_named_parameter

2 issues found. (ran in 9.0s)


### Flutter doctor output

_No response_