iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🔥

[Flutter] How to remove the gray box from CupertinoPicker

に公開

Simply specify CupertinoPickerDefaultSelectionOverlay for the selectionOverlay property.

CupertinoPicker(
  ...
  selectionOverlay: const CupertinoPickerDefaultSelectionOverlay(background: Colors.transparent),
  ...
),

Reference

https://stackoverflow.com/questions/66703336/how-to-remove-grey-box-from-picker-flutter-widget

Discussion