flutter: Add some commas
This commit is contained in:
parent
ca10ce20d9
commit
329b4792d1
|
@ -44,9 +44,13 @@ class SettingsListTile extends StatelessWidget {
|
|||
title: Text(titleString, style: AppTheme.switchListTileTitleStyle),
|
||||
subtitle: subtitleString == null
|
||||
? null
|
||||
: Text(subtitleString!,
|
||||
style: TextStyle(color: UIColors.secondaryColor)),
|
||||
trailing: Row(mainAxisSize: MainAxisSize.min, children: <Widget>[
|
||||
: Text(
|
||||
subtitleString!,
|
||||
style: TextStyle(color: UIColors.secondaryColor),
|
||||
),
|
||||
trailing: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: <Widget>[
|
||||
Text(
|
||||
trailingColor == null
|
||||
? (trailingString == null ? "" : trailingString!)
|
||||
|
@ -57,7 +61,8 @@ class SettingsListTile extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
Icon(Icons.keyboard_arrow_right, color: UIColors.secondaryColor),
|
||||
]),
|
||||
],
|
||||
),
|
||||
onTap: onTap,
|
||||
);
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:sanmill/style/app_theme.dart';
|
||||
import 'package:sanmill/style/colors.dart';
|
||||
|
@ -44,8 +45,10 @@ class SettingsSwitchListTile extends StatelessWidget {
|
|||
title: Text(titleString, style: AppTheme.switchListTileTitleStyle),
|
||||
subtitle: subtitleString == null
|
||||
? null
|
||||
: Text(subtitleString!,
|
||||
style: TextStyle(color: UIColors.secondaryColor)),
|
||||
: Text(
|
||||
subtitleString!,
|
||||
style: TextStyle(color: UIColors.secondaryColor),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue