Add some helpers and wrappers, bump libac-dart dep
This commit is contained in:
parent
edca96f33f
commit
61a9ecd382
6 changed files with 63 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue