mirror of
https://github.com/stonega/tsacdop
synced 2025-02-18 04:20:37 +01:00
Minor change.
This commit is contained in:
parent
8a9fe0555a
commit
b90970f92e
@ -81,14 +81,6 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
|
|||||||
} else if (_showTitle) setState(() => _showTitle = false);
|
} 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 {
|
_markListened(EpisodeBrief episode) async {
|
||||||
var dbHelper = DBHelper();
|
var dbHelper = DBHelper();
|
||||||
var marked = await dbHelper.checkMarked(episode);
|
var marked = await dbHelper.checkMarked(episode);
|
||||||
@ -281,9 +273,7 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
|
|||||||
? Html(
|
? Html(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
left: 20.0, right: 20, bottom: 50),
|
left: 20.0, right: 20, bottom: 50),
|
||||||
defaultTextStyle:
|
defaultTextStyle: GoogleFonts.martel(
|
||||||
// GoogleFonts.libreBaskerville(
|
|
||||||
GoogleFonts.martel(
|
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
height: 1.8,
|
height: 1.8,
|
||||||
),
|
),
|
||||||
@ -291,10 +281,9 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
|
|||||||
data: _description,
|
data: _description,
|
||||||
linkStyle: TextStyle(
|
linkStyle: TextStyle(
|
||||||
color: context.accentColor,
|
color: context.accentColor,
|
||||||
// decoration: TextDecoration.underline,
|
|
||||||
textBaseline: TextBaseline.ideographic),
|
textBaseline: TextBaseline.ideographic),
|
||||||
onLinkTap: (url) {
|
onLinkTap: (url) {
|
||||||
_launchUrl(url);
|
url.launchUrl;
|
||||||
},
|
},
|
||||||
useRichText: true,
|
useRichText: true,
|
||||||
)
|
)
|
||||||
@ -307,7 +296,7 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
|
|||||||
alignment: Alignment.topLeft,
|
alignment: Alignment.topLeft,
|
||||||
child: SelectableLinkify(
|
child: SelectableLinkify(
|
||||||
onOpen: (link) {
|
onOpen: (link) {
|
||||||
_launchUrl(link.url);
|
link.url.launchUrl;
|
||||||
},
|
},
|
||||||
text: _description,
|
text: _description,
|
||||||
style: GoogleFonts.martel(
|
style: GoogleFonts.martel(
|
||||||
|
@ -197,7 +197,7 @@ class _SlideIntroState extends State<SlideIntro> {
|
|||||||
onTap: () => _controller.animateToPage(
|
onTap: () => _controller.animateToPage(
|
||||||
_position.toInt() + 1,
|
_position.toInt() + 1,
|
||||||
duration: Duration(milliseconds: 200),
|
duration: Duration(milliseconds: 200),
|
||||||
curve: Curves.bounceIn),
|
curve: Curves.linear),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: 40,
|
height: 40,
|
||||||
width: 80,
|
width: 80,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user