pub struct Step {
pub title: WidgetRef,
pub subtitle: Option<WidgetRef>,
pub content: WidgetRef,
pub state: StepState,
pub is_active: bool,
pub label: Option<WidgetRef>,
pub step_style: Option<StepStyle>,
}Expand description
A material step used in Stepper. The step can have a title and subtitle, an icon within
its circle, some content and a state that governs its styling.
Fields§
§title: WidgetRefThe title of the step that typically describes it.
subtitle: Option<WidgetRef>The subtitle of the step that appears below the title.
content: WidgetRefThe content of the step that appears below the title and subtitle.
state: StepStateThe state of the step which determines the styling of its components and whether steps are interactive.
is_active: boolWhether or not the step is active. The flag only influences styling.
label: Option<WidgetRef>Only for StepperType::Horizontal, an optional widget that appears under the title.
step_style: Option<StepStyle>Optional overrides for the step’s default visual configuration.
Implementations§
Source§impl Step
impl Step
Sourcepub fn new<T, C>(title: impl IntoWidget<T>, content: impl IntoWidget<C>) -> Step
pub fn new<T, C>(title: impl IntoWidget<T>, content: impl IntoWidget<C>) -> Step
Creates a step for a Stepper; Dart’s optional named arguments are the setters.
Sourcepub fn subtitle<K>(self, subtitle: impl IntoWidget<K>) -> Step
pub fn subtitle<K>(self, subtitle: impl IntoWidget<K>) -> Step
Dart Step(subtitle:).
Sourcepub fn label<K>(self, label: impl IntoWidget<K>) -> Step
pub fn label<K>(self, label: impl IntoWidget<K>) -> Step
Dart Step(label:).
Sourcepub fn step_style(self, step_style: StepStyle) -> Step
pub fn step_style(self, step_style: StepStyle) -> Step
Dart Step(stepStyle:).