28 lines
801 B
Dart
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');
|
|
}
|