Skip to content

Title should not be mandatory for Horizontal Stepper step class because label property is already available  #134112

@adarshwebcastle

Description

@adarshwebcastle

Is there an existing issue for this?

Use case

Currently title is a required pram for stepper class, but if I'm trying to achieve the design same as 'Alternative labels' [material design stepper] (https://m1.material.io/components/steppers.html#steppers-types-of-steppers) then it's not possible because title is required.

And if I'm trying to pass emptywidget as title ,because title is a widget.
title: const SizedBox.shrink(),
even though the title's default margin will be there.
or it can be update like this

_buildHorizontal(){
  .
  .
Container(
                margin: EdgeInsetsDirectional.only(start: widget.steps[i].title != null ? 12.0 : 0),
                child: _buildHeaderText(i),
              ),

Proposal

this is very useful if it's implemented

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions