mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-03-03 23:35:28 +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?
|
//TODO: Auto select on focus?
|
||||||
content:
|
content:
|
||||||
widget.site.managed
|
widget.site.managed
|
||||||
? Text(settings.lhDuration.toString() + " seconds", textAlign: TextAlign.right)
|
? Text("${settings.lhDuration} seconds", textAlign: TextAlign.right)
|
||||||
: PlatformTextFormField(
|
: PlatformTextFormField(
|
||||||
initialValue: settings.lhDuration.toString(),
|
initialValue: settings.lhDuration.toString(),
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
|
|
|
@ -90,7 +90,7 @@ class _StaticHostsScreenState extends State<StaticHostsScreen> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
labelWidth: ipWidth,
|
labelWidth: ipWidth,
|
||||||
content: Text(host.destinations.length.toString() + ' items', textAlign: TextAlign.end),
|
content: Text('${host.destinations.length} items', textAlign: TextAlign.end),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Utils.openPage(context, (context) {
|
Utils.openPage(context, (context) {
|
||||||
return StaticHostmapScreen(
|
return StaticHostmapScreen(
|
||||||
|
|
|
@ -41,10 +41,10 @@ class Utils {
|
||||||
|
|
||||||
static String itemCountFormat(int items, {singleSuffix = "item", multiSuffix = "items"}) {
|
static String itemCountFormat(int items, {singleSuffix = "item", multiSuffix = "items"}) {
|
||||||
if (items == 1) {
|
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.
|
/// Builds a simple leading widget that pops the current screen.
|
||||||
|
|
Loading…
Reference in a new issue