comic page

This commit is contained in:
nyne
2024-10-04 21:56:15 +08:00
parent 2772289a19
commit 07dbf6e6af
7 changed files with 915 additions and 178 deletions

View File

@@ -34,4 +34,12 @@ extension Navigation on BuildContext {
void showMessage({required String message}) {
showToast(message: message, context: this);
}
Color useBackgroundColor(MaterialColor color) {
return color[brightness == Brightness.light ? 100 : 800]!;
}
Color useTextColor(MaterialColor color) {
return color[brightness == Brightness.light ? 800 : 100]!;
}
}