From 483dba0e4a113d62e7252f881dfe28fd5a4dc709 Mon Sep 17 00:00:00 2001 From: Till Friebe Date: Thu, 8 Apr 2021 20:49:27 +0200 Subject: [PATCH] Remove unnecessary string interpolations --- analysis_options.yaml | 1 + lib/widgets/text_block.dart | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index df405fed..e62a6e5c 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -30,3 +30,4 @@ linter: - prefer_relative_imports - prefer_single_quotes - unnecessary_parenthesis + - unnecessary_string_interpolations diff --git a/lib/widgets/text_block.dart b/lib/widgets/text_block.dart index 757a2c9c..61448d5a 100644 --- a/lib/widgets/text_block.dart +++ b/lib/widgets/text_block.dart @@ -580,7 +580,7 @@ class _NumberPoint extends StatelessWidget { alignment: AlignmentDirectional.topEnd, width: width, padding: EdgeInsetsDirectional.only(end: padding), - child: Text(withDot ? '$s.' : '$s', style: style), + child: Text(withDot ? '$s.' : s, style: style), ); } if (attrs.containsKey(Attribute.indent.key)) { @@ -611,7 +611,7 @@ class _NumberPoint extends StatelessWidget { alignment: AlignmentDirectional.topEnd, width: width, padding: EdgeInsetsDirectional.only(end: padding), - child: Text(withDot ? '$s.' : '$s', style: style), + child: Text(withDot ? '$s.' : s, style: style), ); }