Refactored method names
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user