TextEditingApp
TextEditingApp copied to clipboard
Bug Report : `value` getter is deprecated and shouldn't be used
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:
- Open
draw_model_test.dart - Check color value comparisons in tests
- 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
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.
Please assign me.