TextEditingApp icon indicating copy to clipboard operation
TextEditingApp copied to clipboard

Bug Report : `value` getter is deprecated and shouldn't be used

Open GitMasterJatin opened this issue 1 year ago • 2 comments

Describe the bug

  • The code uses the deprecated Color.value property which is marked for removal in future Flutter versions. This property is deprecated in favor of using component accessors (.r, .g, .b, .a) or toARGB32() for explicit color value conversion.

To Reproduce Steps to reproduce the behavior:

  1. Open draw_model_test.dart
  2. Check color value comparisons in tests
  3. Notice usage of .value property:
expect(deserialized.paint.color.value, Colors.blue.value);

Expected behavior

  • Code should use the recommended toARGB32() method or color component accessors instead of the deprecated .value property.

Actual behavior

  • Code uses deprecated .value property which shows deprecation warnings and may break in future Flutter versions.

Additional details

  • Affects color serialization/deserialization in drawing functionality
  • Warning appears in Flutter 3.x and above
  • Reference: Link

GitMasterJatin avatar Oct 31 '25 17:10 GitMasterJatin

Thank you for opening this issue! 🚀 Our team will review it soon. Please make sure you've included all relevant details and followed our Contributing Guidelines. For questions about our project, check out our README and Code of Conduct.

github-actions[bot] avatar Oct 31 '25 17:10 github-actions[bot]

Please assign me.

GitMasterJatin avatar Oct 31 '25 17:10 GitMasterJatin