mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 15:47:56 +00:00
Merged Auth branch & Curtains branch
This commit is contained in:
@@ -3,13 +3,15 @@ import 'package:flutter/material.dart';
|
||||
abstract class ColorsManager {
|
||||
static const Color textPrimaryColor = Color(0xFF5D5D5D);
|
||||
static const Color primaryColor = Color(0xFF0030CB);
|
||||
static Color primaryWithOpacity = const Color(0xFF023DFE).withOpacity(0.6);
|
||||
static Color primaryColorWithOpacity =
|
||||
const Color(0xFF023DFE).withOpacity(0.6);
|
||||
static const Color onPrimaryColor = Colors.white;
|
||||
static const Color secondaryColor = Color(0xFF023DFE);
|
||||
static const Color onSecondaryColor = Color(0xFF023DFE);
|
||||
static const Color primaryTextColor = Colors.black;
|
||||
|
||||
static const Color greyColor = Color(0xFFd5d5d5);
|
||||
|
||||
static const Color backgroundColor = Color(0xFFececec);
|
||||
static const Color dozeColor = Color(0xFFFEC258);
|
||||
static const Color relaxColor = Color(0xFFFBD288);
|
||||
|
||||
@@ -1,9 +1,24 @@
|
||||
//ignore_for_file: constant_identifier_names
|
||||
abstract class Constants {
|
||||
static const String languageCode = "en";
|
||||
|
||||
static const String countryCode = "US";
|
||||
|
||||
static const double defaultPadding = 16.0;
|
||||
static const double appBarHeightPercentage = 0.1175;
|
||||
static const double bottomNavBarHeightPercentage = 0.1175;
|
||||
static late double appBarHeight;
|
||||
static late double bottomNavBarHeight;
|
||||
|
||||
static const double defaultPadding = 16;
|
||||
|
||||
static const String tokenKey = 'userToken';
|
||||
}
|
||||
|
||||
enum DeviceType {
|
||||
AC,
|
||||
Lights,
|
||||
Door,
|
||||
Curtain,
|
||||
Screens,
|
||||
Gateway,
|
||||
}
|
||||
|
||||
@@ -140,6 +140,38 @@ abstract class ThemeManager {
|
||||
// ),
|
||||
// ),
|
||||
|
||||
dropdownMenuTheme: const DropdownMenuThemeData(
|
||||
textStyle: TextStyle(
|
||||
fontFamily: FontsManager.fontFamily,
|
||||
fontSize: FontSize.s16,
|
||||
fontWeight: FontsManager.regular,
|
||||
color: ColorsManager.textPrimaryColor,
|
||||
),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
border: OutlineInputBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(20)),
|
||||
),
|
||||
enabledBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.grey),
|
||||
borderRadius: BorderRadius.all(Radius.circular(8)),
|
||||
),
|
||||
focusedBorder: OutlineInputBorder(
|
||||
borderSide: BorderSide(color: ColorsManager.primaryColor),
|
||||
borderRadius: BorderRadius.all(Radius.circular(8)),
|
||||
),
|
||||
labelStyle: TextStyle(
|
||||
fontFamily: FontsManager.fontFamily,
|
||||
color: Colors.grey,
|
||||
fontSize: FontSize.s16,
|
||||
fontWeight: FontsManager.regular,
|
||||
),
|
||||
),
|
||||
menuStyle: MenuStyle(
|
||||
backgroundColor: MaterialStatePropertyAll(Colors.white),
|
||||
padding: MaterialStatePropertyAll(EdgeInsets.all(8)),
|
||||
),
|
||||
),
|
||||
|
||||
///input decoration theme
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
enabledBorder: OutlineInputBorder(
|
||||
|
||||
Reference in New Issue
Block a user