add structure
This commit is contained in:
101
lib/theme/theme.dart
Normal file
101
lib/theme/theme.dart
Normal file
@@ -0,0 +1,101 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'dart:ui';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
const primaryColor = const Color(0xfff00a21);
|
||||
const secondaryColor = const Color(0xFF0815f1);
|
||||
const thirdColor = const Color(0xFF0700f1);
|
||||
const nextColor = const Color(0xFFfa833d);
|
||||
const buttonColor = const Color(0xFFFFFFFF);
|
||||
const buttonBkColor = const Color(0xFF268944);
|
||||
|
||||
const TextStyle labelStyle =
|
||||
TextStyle(fontSize: 13, color: Colors.grey, fontWeight: FontWeight.w500);
|
||||
const TextStyle labelStyleMM = TextStyle(
|
||||
fontSize: 13,
|
||||
color: Colors.grey,
|
||||
fontWeight: FontWeight.w500,
|
||||
fontFamily: "MyanmarUnicode");
|
||||
|
||||
TextStyle newLabelStyle(
|
||||
{Color color,
|
||||
double fontSize,
|
||||
FontWeight fontWeight,
|
||||
bool underline = false}) {
|
||||
return TextStyle(
|
||||
fontSize: fontSize == null ? 13 : fontSize,
|
||||
color: color == null ? Colors.grey : color,
|
||||
fontWeight: fontWeight == null ? FontWeight.w500 : fontWeight,
|
||||
decoration: underline ? TextDecoration.underline : TextDecoration.none);
|
||||
}
|
||||
|
||||
TextStyle newLabelStyleMM(
|
||||
{Color color,
|
||||
double fontSize,
|
||||
FontWeight fontWeight,
|
||||
bool underline = false}) {
|
||||
return TextStyle(
|
||||
fontSize: fontSize == null ? 13 : fontSize,
|
||||
color: color == null ? Colors.grey : color,
|
||||
fontWeight: fontWeight == null ? FontWeight.w500 : fontWeight,
|
||||
decoration: underline ? TextDecoration.underline : TextDecoration.none,
|
||||
fontFamily: "MyanmarUnicode");
|
||||
}
|
||||
|
||||
const TextStyle photoLabelStyle =
|
||||
TextStyle(color: Colors.black, fontSize: 13.0);
|
||||
const TextStyle photoLabelStyleMM = TextStyle(
|
||||
color: Colors.black, fontSize: 13.0, fontFamily: "MyanmarUnicode");
|
||||
const TextStyle textStyle =
|
||||
TextStyle(fontSize: 15, color: Colors.black87, fontWeight: FontWeight.w500);
|
||||
const TextStyle textStyleOdd = TextStyle(
|
||||
fontSize: 15, color: Colors.blueAccent, fontWeight: FontWeight.w500);
|
||||
const TextStyle textStrikeStyle = TextStyle(
|
||||
fontSize: 15,
|
||||
color: Colors.black87,
|
||||
fontWeight: FontWeight.w500,
|
||||
decoration: TextDecoration.lineThrough,
|
||||
);
|
||||
const TextStyle textHighlightRedStyle = TextStyle(
|
||||
fontSize: 18,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500,
|
||||
backgroundColor: Colors.red,
|
||||
);
|
||||
const TextStyle textHighlightGreenStyle = TextStyle(
|
||||
fontSize: 18,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500,
|
||||
backgroundColor: Colors.green,
|
||||
);
|
||||
const TextStyle textHighlightBlueStyle = TextStyle(
|
||||
fontSize: 18,
|
||||
color: Colors.white,
|
||||
fontWeight: FontWeight.w500,
|
||||
backgroundColor: Colors.blue,
|
||||
);
|
||||
|
||||
const TextStyle subTitleStyle =
|
||||
TextStyle(fontSize: 12, color: Colors.black45, fontWeight: FontWeight.w500);
|
||||
|
||||
final BoxDecoration tableRowOdd = BoxDecoration(
|
||||
color: Color(0x1F000000),
|
||||
);
|
||||
final BoxDecoration tableRowEven = BoxDecoration(
|
||||
color: Colors.white54,
|
||||
);
|
||||
|
||||
|
||||
class LoginColors {
|
||||
const LoginColors();
|
||||
|
||||
static const Color loginGradientStart = const Color(0xfff00a21);
|
||||
static const Color loginGradientEnd = const Color(0xfff00a21);
|
||||
|
||||
static const primaryGradient = const LinearGradient(
|
||||
colors: const [loginGradientStart, loginGradientEnd],
|
||||
stops: const [0.0, 1.0],
|
||||
begin: Alignment.topCenter,
|
||||
end: Alignment.bottomCenter,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user