freezer/lib/ui/lyrics_styles/lyrics_style.dart
Pato05 070ab2d6f2
fix album art skipping song
new lyrics ui + improvements
2024-05-06 17:10:18 +02:00

28 lines
801 B
Dart

import 'package:flutter/material.dart';
import 'package:freezer/ui/lyrics_styles/classic.dart';
import 'package:freezer/ui/lyrics_styles/modern.dart';
class LyricsStyle {
static const classic = 0;
static const modern = 1;
LyricsStyle._();
factory LyricsStyle.fromIndex(int i) {
return switch (i) {
classic => ClassicLyricsStyle(),
modern => ModernLyricsStyle(),
_ => LyricsStyle._(),
};
}
TextAlign getTextAlignment() =>
throw Exception('getTextAlignment() has not been implemented');
TextStyle getTextStyle(bool isActive, Color textColor, double textSize) =>
throw Exception('getTextStyle() has not been implemented');
BoxDecoration getBoxDecoration(bool isActive) =>
throw Exception('getBoxDecoration() has not been implemented');
}