mono0926/adaptive_dialog

showConfirmationDialog doesn't show selected radiobutton for material style

Closed this issue · 1 comments

Flutter 3.7.7
adaptive_dialog: ^1.8.3
not material 3 theme

var result = await showConfirmationDialog( style: AdaptiveStyle.material, context: context, title: widget.title!, initialSelectedActionKey: widget.value, actions: [ ...widget.options!.map((e) => AlertDialogAction(key: e.value, label: e.title!)).toList(), ] );

When selecting item for a fraction of a second selected button appears and then becomes invisible.

image

I added .copyWith(useMaterial3: false) to

theme: lightTheme(),
and
final result = await showConfirmationDialog<int>(
works without any problems.

image

I think your theme is incorrect.
It is implemented RadioListTile class - material library - Dart API normally, so the bug isn't related to adaptive_dialog.