flutter/packages
Bryan Olivares 1d5c2c5118
Feat: TextField can scroll when disabled (#140922)
This PR is adding a flag parameter to the `TextField` widget. This flag controls whether the TextField ignores pointers. The flag takes priority over other TextField behaviors such as enabled, so it can be useful when trying to have a disabled TextField that can be scrolled (behavior observed using TextArea on the web).

Adding a flag parameter to `TextField` helps with more customization and flexibility to the widget which can improve user experience. I am open to other ideas.   

Fixes issue #140147 

Before: 

https://github.com/flutter/flutter/assets/66151079/293e5b4e-3126-4a00-824d-1530aeaa494b

After:

https://github.com/flutter/flutter/assets/66151079/08c1af09-3bf9-4b49-b684-dda4dd920503

Usage:
```dart
child: TextField(
  ignorePointer: false,
  enabled: false,
),
```
2024-01-29 20:22:19 +00:00
..
flutter Feat: TextField can scroll when disabled (#140922) 2024-01-29 20:22:19 +00:00
flutter_driver Upgrade leak_tracker. (#142162) 2024-01-24 15:33:17 -08:00
flutter_goldens Upgrade leak_tracker. (#142162) 2024-01-24 15:33:17 -08:00
flutter_localizations Fix incorrect zh-cn translation for Look Up Label in selection controls (#142158) 2024-01-25 10:24:42 -08:00
flutter_test Relands "Add runWidget to bootstrap a widget tree without a default View" (#142344) 2024-01-26 23:05:53 +00:00
flutter_tools Catch file system exceptions when trying to parse user-provided asset file paths (#142214) 2024-01-29 18:43:57 +00:00
flutter_web_plugins Upgrade leak_tracker. (#142162) 2024-01-24 15:33:17 -08:00
fuchsia_remote_debug_protocol Upgrade leak_tracker. (#142162) 2024-01-24 15:33:17 -08:00
integration_test Update Android minSdkVersion to 21 (#142267) 2024-01-29 09:49:09 -08:00
analysis_options.yaml Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00