mirror of
https://github.com/stonega/tsacdop
synced 2025-02-16 11:31:45 +01:00
Change shownote fonts.
This commit is contained in:
parent
566ff83530
commit
e004966761
@ -5,7 +5,6 @@ import 'package:flutter/rendering.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:flutter_html/flutter_html.dart';
|
import 'package:flutter_html/flutter_html.dart';
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
import 'package:fluttertoast/fluttertoast.dart';
|
||||||
import 'package:google_fonts/google_fonts.dart';
|
|
||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
import 'package:linkify/linkify.dart';
|
import 'package:linkify/linkify.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
@ -14,6 +13,7 @@ import 'package:tuple/tuple.dart';
|
|||||||
import '../home/audioplayer.dart';
|
import '../home/audioplayer.dart';
|
||||||
import '../local_storage/sqflite_localpodcast.dart';
|
import '../local_storage/sqflite_localpodcast.dart';
|
||||||
import '../state/audio_state.dart';
|
import '../state/audio_state.dart';
|
||||||
|
import '../state/setting_state.dart';
|
||||||
import '../type/episodebrief.dart';
|
import '../type/episodebrief.dart';
|
||||||
import '../type/play_histroy.dart';
|
import '../type/play_histroy.dart';
|
||||||
import '../util/audiopanel.dart';
|
import '../util/audiopanel.dart';
|
||||||
@ -436,11 +436,8 @@ class __MenuBarState extends State<_MenuBar> {
|
|||||||
|
|
||||||
Future<void> _markListened(EpisodeBrief episode) async {
|
Future<void> _markListened(EpisodeBrief episode) async {
|
||||||
var dbHelper = DBHelper();
|
var dbHelper = DBHelper();
|
||||||
//var marked = await dbHelper.checkMarked(episode);
|
|
||||||
//if (!marked) {
|
|
||||||
final history = PlayHistory(episode.title, episode.enclosureUrl, 0, 1);
|
final history = PlayHistory(episode.title, episode.enclosureUrl, 0, 1);
|
||||||
await dbHelper.saveHistory(history);
|
await dbHelper.saveHistory(history);
|
||||||
//}
|
|
||||||
if (mounted) setState(() {});
|
if (mounted) setState(() {});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -739,14 +736,12 @@ class _ShowNote extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Html(
|
return Selector<SettingState, TextStyle>(
|
||||||
|
selector: (_, settings) => settings.showNoteFontStyle,
|
||||||
|
builder: (_, data, __) => Html(
|
||||||
padding:
|
padding:
|
||||||
EdgeInsets.only(left: 20.0, right: 20, bottom: 50),
|
EdgeInsets.only(left: 20.0, right: 20, bottom: 50),
|
||||||
defaultTextStyle: GoogleFonts.martel(
|
defaultTextStyle: data,
|
||||||
textStyle: TextStyle(
|
|
||||||
height: 1.8,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
data: description,
|
data: description,
|
||||||
linkStyle: TextStyle(
|
linkStyle: TextStyle(
|
||||||
color: context.accentColor,
|
color: context.accentColor,
|
||||||
@ -762,6 +757,7 @@ class _ShowNote extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
useRichText: true,
|
useRichText: true,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
: Container(
|
: Container(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user