fix & opt

- fix sftp downloaded page bottom path bg color error
- apt/yum add chinese
- urltext add textalign
This commit is contained in:
Junyuan Feng
2022-05-08 09:55:07 +08:00
parent 6f30976ef7
commit 50762d585c
10 changed files with 154 additions and 71 deletions

View File

@@ -8,12 +8,14 @@ const regUrl =
class UrlText extends StatelessWidget {
final String text;
final String? replace;
final TextAlign? textAlign;
final TextStyle style;
const UrlText(
{Key? key,
required this.text,
this.replace,
this.textAlign,
this.style = const TextStyle()})
: super(key: key);
@@ -69,6 +71,7 @@ class UrlText extends StatelessWidget {
@override
Widget build(BuildContext context) {
return RichText(
textAlign: textAlign ?? TextAlign.start,
text: TextSpan(children: _getTextSpans(isDarkMode(context))),
);
}