to laptptop

This commit is contained in:
ImBenji
2024-02-28 04:56:50 +00:00
parent 2ef40e6b27
commit 675c42d2da
19 changed files with 1758 additions and 151 deletions

View File

@@ -28,21 +28,20 @@ class _ibus_displayState extends State<ibus_display> {
LiveInformation liveInformation = LiveInformation();
_receipt = liveInformation.announcementDelegate.addListener((value) {
if (topLine == value.displayText){
return;
}
topLine = value.displayText;
setState(() {
});
});
topLine = liveInformation.CurrentAnnouncement;
topLine = liveInformation.currentAnnouncement;
}
Timer _timer() => Timer.periodic(Duration(seconds: 1), (timer) {
setState(() {
topLine = LiveInformation().CurrentAnnouncement;
});
});
String _padString(String input){
if (input.length < 40){
@@ -115,7 +114,13 @@ class _ibus_displayState extends State<ibus_display> {
style: const TextStyle(
fontSize: 20,
color: Colors.orange,
fontFamily: "ibus"
fontFamily: "ibus",
shadows: [
Shadow(
color: Colors.orange,
blurRadius: 5,
),
],
),
),
),