Minor change.

This commit is contained in:
stonegate 2020-08-09 01:25:28 +08:00
parent 8a9fe0555a
commit b90970f92e
2 changed files with 4 additions and 15 deletions

View File

@ -81,14 +81,6 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
} else if (_showTitle) setState(() => _showTitle = false);
}
_launchUrl(String url) async {
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
}
_markListened(EpisodeBrief episode) async {
var dbHelper = DBHelper();
var marked = await dbHelper.checkMarked(episode);
@ -281,9 +273,7 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
? Html(
padding: EdgeInsets.only(
left: 20.0, right: 20, bottom: 50),
defaultTextStyle:
// GoogleFonts.libreBaskerville(
GoogleFonts.martel(
defaultTextStyle: GoogleFonts.martel(
textStyle: TextStyle(
height: 1.8,
),
@ -291,10 +281,9 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
data: _description,
linkStyle: TextStyle(
color: context.accentColor,
// decoration: TextDecoration.underline,
textBaseline: TextBaseline.ideographic),
onLinkTap: (url) {
_launchUrl(url);
url.launchUrl;
},
useRichText: true,
)
@ -307,7 +296,7 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
alignment: Alignment.topLeft,
child: SelectableLinkify(
onOpen: (link) {
_launchUrl(link.url);
link.url.launchUrl;
},
text: _description,
style: GoogleFonts.martel(

View File

@ -197,7 +197,7 @@ class _SlideIntroState extends State<SlideIntro> {
onTap: () => _controller.animateToPage(
_position.toInt() + 1,
duration: Duration(milliseconds: 200),
curve: Curves.bounceIn),
curve: Curves.linear),
child: SizedBox(
height: 40,
width: 80,