mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
comic page
This commit is contained in:
@@ -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]!;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user