DialogueChoicesWidget constructor

const DialogueChoicesWidget({
  1. Key? key,
  2. required DialogueRunner runner,
  3. TextStyle? choiceStyle,
  4. TextStyle? unavailableStyle,
  5. Color backgroundColor = Colors.black54,
  6. Color selectedColor = const Color(0xFF1E3A5F),
  7. double borderRadius = 6.0,
  8. double spacing = 6.0,
  9. bool showUnavailable = true,
})

A column of buttons for runner's pending choices, one per choice; builds nothing while no choice is pending.

Implementation

const DialogueChoicesWidget({
  super.key,
  required this.runner,
  this.choiceStyle,
  this.unavailableStyle,
  this.backgroundColor = Colors.black54,
  this.selectedColor = const Color(0xFF1E3A5F),
  this.borderRadius = 6.0,
  this.spacing = 6.0,
  this.showUnavailable = true,
});