mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-03-03 15:25:27 +00:00
dart fix --apply --code=prefer_interpolation_to_compose_strings
This commit is contained in:
parent
de61b7f1bc
commit
2db9bf2e14
3 changed files with 4 additions and 4 deletions
|
@ -85,7 +85,7 @@ class _AdvancedScreenState extends State<AdvancedScreen> {
|
|||
//TODO: Auto select on focus?
|
||||
content:
|
||||
widget.site.managed
|
||||
? Text(settings.lhDuration.toString() + " seconds", textAlign: TextAlign.right)
|
||||
? Text("${settings.lhDuration} seconds", textAlign: TextAlign.right)
|
||||
: PlatformTextFormField(
|
||||
initialValue: settings.lhDuration.toString(),
|
||||
keyboardType: TextInputType.number,
|
||||
|
|
|
@ -90,7 +90,7 @@ class _StaticHostsScreenState extends State<StaticHostsScreen> {
|
|||
],
|
||||
),
|
||||
labelWidth: ipWidth,
|
||||
content: Text(host.destinations.length.toString() + ' items', textAlign: TextAlign.end),
|
||||
content: Text('${host.destinations.length} items', textAlign: TextAlign.end),
|
||||
onPressed: () {
|
||||
Utils.openPage(context, (context) {
|
||||
return StaticHostmapScreen(
|
||||
|
|
|
@ -41,10 +41,10 @@ class Utils {
|
|||
|
||||
static String itemCountFormat(int items, {singleSuffix = "item", multiSuffix = "items"}) {
|
||||
if (items == 1) {
|
||||
return items.toString() + " " + singleSuffix;
|
||||
return "$items " + singleSuffix;
|
||||
}
|
||||
|
||||
return items.toString() + " " + multiSuffix;
|
||||
return "$items " + multiSuffix;
|
||||
}
|
||||
|
||||
/// Builds a simple leading widget that pops the current screen.
|
||||
|
|
Loading…
Reference in a new issue