Refactored method names

This commit is contained in:
2025-07-01 22:29:31 +02:00
parent 59c710a43f
commit 3e0482e963

View File

@@ -124,7 +124,7 @@ class _RoundViewState extends State<RoundView> {
Padding( Padding(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: 4 + horizontal: 4 +
_getSegmendetControlPadding(maxLength), _getSegmentedControlPadding(maxLength),
vertical: 6, vertical: 6,
), ),
child: FittedBox( child: FittedBox(
@@ -135,7 +135,7 @@ class _RoundViewState extends State<RoundView> {
maxLines: 1, maxLines: 1,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
fontSize: _getSegmendetControlFontSize( fontSize: _getSegmentedControlFontSize(
maxLength), maxLength),
), ),
), ),
@@ -395,7 +395,7 @@ class _RoundViewState extends State<RoundView> {
} }
} }
double _getSegmendetControlFontSize(int maxLength) { double _getSegmentedControlFontSize(int maxLength) {
if (maxLength > 8) { if (maxLength > 8) {
// 9 - 12 characters // 9 - 12 characters
return 9.0; return 9.0;
@@ -408,7 +408,7 @@ class _RoundViewState extends State<RoundView> {
} }
} }
double _getSegmendetControlPadding(int maxLength) { double _getSegmentedControlPadding(int maxLength) {
if (maxLength > 8) { if (maxLength > 8) {
// 9 - 12 characters // 9 - 12 characters
return 0.0; return 0.0;