action display, and full display, started action editor

This commit is contained in:
Joshua Burman
2025-01-24 16:15:22 -05:00
parent 0cf62ec4b4
commit 60bc571987
39 changed files with 32576 additions and 251 deletions

View File

@ -9,3 +9,8 @@ String formattedTime(int timeInSecond) {
String second = sec.toString().length <= 1 ? "0$sec" : "$sec";
return "$minute:$second";
}
int toSeconds(int milliseconds) {
int sec = (milliseconds / 1000).floor();
return sec;
}

View File

@ -6,8 +6,12 @@ showMediaDetailWidget(BuildContext context, MediaItem media) {
showEditorSheet(context, MediaDetails(media: media));
}
showGenericSheet(BuildContext context, Widget widget) {
showGenericSheet(BuildContext context, Widget widget,
[Color? backgroundColor]) {
backgroundColor ??= Theme.of(context).colorScheme.surfaceBright;
showModalBottomSheet<void>(
backgroundColor: backgroundColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10.0), topRight: Radius.circular(10.0)),
@ -26,15 +30,15 @@ showEditorSheet(BuildContext context, Widget widget) {
}
String jsonToDescription(List text) {
String content = '';
String content = '';
for (int i = 0; i < text.length; i++) {
if (content.isEmpty) {
content = text[i];
} else {
content = "$content\n\n${text[i]}";
}
for (int i = 0; i < text.length; i++) {
if (content.isEmpty) {
content = text[i];
} else {
content = "$content\n\n${text[i]}";
}
return content;
}
return content;
}