mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-09-07 19:46:06 +00:00
dart fix --apply --code=prefer_interpolation_to_compose_strings
This commit is contained in:
parent
9b4c1be95b
commit
f58b37468d
3 changed files with 5 additions and 5 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(
|
||||||
|
|
|
@ -39,12 +39,12 @@ class Utils {
|
||||||
Navigator.push(context, platformPageRoute(context: context, builder: pageToDisplayBuilder));
|
Navigator.push(context, platformPageRoute(context: context, builder: pageToDisplayBuilder));
|
||||||
}
|
}
|
||||||
|
|
||||||
static String itemCountFormat(int items, {singleSuffix = "item", multiSuffix = "items"}) {
|
static String itemCountFormat(int items, {String singleSuffix = "item", String 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…
Add table
Reference in a new issue