Add some helpers and wrappers, bump libac-dart dep

This commit is contained in:
zontreck 2025-05-25 00:53:04 -07:00
parent edca96f33f
commit 61a9ecd382
6 changed files with 63 additions and 9 deletions

View file

@ -2,5 +2,19 @@ import 'package:flutter/material.dart';
class LibACFlutterConstants {
static const Color TITLEBAR_COLOR = Color.fromARGB(255, 99, 0, 0);
static const VERSION = "1.0.031525+0222";
static const VERSION = "1.0.052525+0051";
}
/// A simple helper for obtaining the theme, and allowing toggle of the dark mode state
class LibACFlutterTheme {
/// Default is true
static bool isDarkMode = true;
static ThemeData GetTheme() {
if (isDarkMode) {
return ThemeData.dark();
} else {
return ThemeData.light();
}
}
}