Repository navigation
[Stepper]Circle size and connecting lines between icons are not customizable #103124
Description
I want to customize the size of stepper icon and connecting lines between them but I am unable to achieve it.
Expected results:
Actual results:
Details
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3.1 21E258 darwin-x64, locale
en-IN)
• Flutter version 2.10.5 at /Volumes/data/development/sdks/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5464c5b (2 weeks ago), 2022-04-18 09:55:37 -0700
• Engine revision 57d3bac3dd
• Dart version 2.16.2
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version
32.0.0-rc1)
• Android SDK at /Users/akashav/Library/Android/sdk
• Platform android-32, build-tools 32.0.0-rc1
• ANDROID_HOME = /Users/akashav/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.10.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[✓] VS Code (version 1.66.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.40.0
[✓] Connected device (4 available)
• iPhone SE (2nd generation) (mobile) • 91FF2EA7-7194-4CC1-9456-B3C27165748D
• ios • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
• iPhone 13 (mobile) • 4141610B-4FA4-4F02-828E-E5DFB375989B
• ios • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
• macOS (desktop) • macos
• darwin-x64 • macOS 12.3.1 21E258 darwin-x64
• Chrome (web) • chrome
• web-javascript • Google Chrome 100.0.4896.127
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!

Activity
maheshj01 commentedon May 5, 2022
Hi @aakashawalkar, Have you tried wrapping the Stepper in a theme and changing primary Color and iconsize? Also regarding the connecting lines is it about the spacing?
aakashawalkar commentedon May 5, 2022
Hi @maheshmnj - Yes, I tried changing size of icon by wrapping Stepper widget into Theme() but it didn't changed size of stepper icon.
Actually, I went to look the code inside the package (source code) and I noticed that the icon size is hardcoded to 24.0 and for connecting lines there is predefined margin from start of 12.0 which is also hardcoded for horizontal stepper type.
maheshj01 commentedon May 6, 2022
Thanks for the confirmation @aakashawalkar, I can reproduce the issue the circle size and the lines are not customizable, Labeling this issue as a new feature request.
[-]Stepper Widget : Stepper icon size and connecting lines between icons are not customizable[/-][+][Stepper]Circle size and connecting lines between icons are not customizable[/+]AyushBherwani1998 commentedon Mar 31, 2023
@HansMuller would it make sense to provide a way to override the kStepSize to allow customization of Circle size and a param to override the default size of line? Happy to raise a PR, if it sounds good.
AhmadFalahian commentedon Apr 18, 2023
Has this feature not been added yet?
fuadreza commentedon Jun 24, 2023
It's not available yet.. 🥲
4 remaining items
dheerajv099 commentedon Sep 11, 2023
@AyushBherwani1998 have you raised pull request??
AyushBherwani1998 commentedon Sep 11, 2023
Ah, it skipped from my head. I'll raise it by tomorrow, adding it in my TODOs.
vytautas-pranskunas- commentedon Sep 21, 2023
cannot imagine this issue still not resolved. On tabs this looks crazy...

lidissonhugo commentedon Oct 4, 2023
Tem previsão de quando vão implementar o kStepSize personalizável e o tamanho da barra dos steps personalizável também?
Adds support for StepStyle visual property bundle to the Step widget (#…
Mairramer commentedon Oct 24, 2024
@aakashawalkar Did this PR solve your problem?
Mairramer commentedon Nov 1, 2024
Fixed by #140825
tirth-patel-nc commentedon May 30, 2025
I can confirm that issue has been fixed by #140825. Requested customisation is possible using these props:
stepIconHeight,stepIconWidth,stepIconMargin. Closing as Fixed!github-actions commentedon Jun 13, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.