opt.: upgrade linter & fix lint issues

This commit is contained in:
lollipopkit
2023-12-06 11:09:05 +08:00
parent 143cb1e7c1
commit 8a3fd342c6
38 changed files with 92 additions and 94 deletions

View File

@@ -14,12 +14,12 @@ class UrlText extends StatelessWidget {
final TextStyle style;
const UrlText({
Key? key,
super.key,
required this.text,
this.replace,
this.textAlign,
this.style = const TextStyle(),
}) : super(key: key);
});
List<InlineSpan> _buildTextSpans(Color c) {
final widgets = <InlineSpan>[];
@@ -69,9 +69,8 @@ class UrlText extends StatelessWidget {
}
class _LinkTextSpan extends TextSpan {
_LinkTextSpan({TextStyle? style, required String text, String? replace})
_LinkTextSpan({super.style, required String text, String? replace})
: super(
style: style,
text: replace ?? text,
recognizer: TapGestureRecognizer()
..onTap = () {