change myTheme to MIHTheme & add a getThemedata function
This commit is contained in:
parent
883e66492c
commit
ef1d86ef24
1 changed files with 6 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import 'package:flutter/material.dart';
|
||||
import "package:universal_html/html.dart" as html;
|
||||
|
||||
class MyTheme {
|
||||
class MihTheme {
|
||||
late int _mainColor;
|
||||
late int _secondColor;
|
||||
//late int _errColor;
|
||||
|
|
@ -24,7 +24,7 @@ class MyTheme {
|
|||
// a63446 = red
|
||||
//747474
|
||||
|
||||
MyTheme() {
|
||||
MihTheme() {
|
||||
mode = "Dark";
|
||||
//_errColor = 0xffD87E8B;
|
||||
//_succColor = 0xffB0F2B4;
|
||||
|
|
@ -104,6 +104,10 @@ class MyTheme {
|
|||
mode;
|
||||
}
|
||||
|
||||
ThemeData getThemeData() {
|
||||
return getData();
|
||||
}
|
||||
|
||||
ThemeData darkMode() {
|
||||
return getData();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue