You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HMG_Patient_App/lib/theme/theme_value.dart

124 lines
4.0 KiB
Dart

5 years ago
import 'dart:ui';
import 'package:diplomaticquarterapp/config/config.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
/// ---- Default Theme ----
///
//final projectProvider = Provider.of(AppGlobal.context);
final bluePrimary = Color(0xFF3F51B5);
final blueAccent = Color(0xFFFF9800);
final blueBackground = Color(0xFFFFFFFF);
final defaultTheme = ThemeData(
// fontFamily: projectProvider.isArabic ? 'Cairo' : 'WorkSans',
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
brightness: Brightness.light,
pageTransitionsTheme: const PageTransitionsTheme(
builders: {
TargetPlatform.android: ZoomPageTransitionsBuilder(),
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
},
),
hintColor: Colors.grey[400],
disabledColor: Colors.grey[300],
errorColor: Color.fromRGBO(235, 80, 60, 1.0),
scaffoldBackgroundColor: Color(0xffEEEEEE),
textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
textSelectionHandleColor: Colors.grey,
canvasColor: Colors.white,
5 years ago
backgroundColor: Colors.white,
5 years ago
highlightColor: Colors.grey[100].withOpacity(0.4),
splashColor: Colors.transparent,
primaryColor: Color(0xff40ACC9),
bottomSheetTheme: BottomSheetThemeData(backgroundColor: Color(0xffE0E0E0)),
cursorColor: Colors.grey,
5 years ago
cardColor: Colors.white,
5 years ago
iconTheme: IconThemeData(),
appBarTheme: AppBarTheme(
color: Color(0xff40ACC9),
brightness: Brightness.dark,
elevation: 10.0,
actionsIconTheme: IconThemeData(
color: Color(0xff40ACC9),
),
),
);
final invertTheme = ThemeData(
// fontFamily: projectProvider.isArabic ? 'Cairo' : 'WorkSans',
5 years ago
primarySwatch: Colors.grey,
5 years ago
visualDensity: VisualDensity.adaptivePlatformDensity,
5 years ago
brightness: Brightness.light,
5 years ago
pageTransitionsTheme: const PageTransitionsTheme(
builders: {
TargetPlatform.android: ZoomPageTransitionsBuilder(),
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
},
),
5 years ago
hintColor: Colors.grey[400],
cardColor: Colors.black,
buttonColor: Colors.grey[400],
disabledColor: Colors.grey[300],
5 years ago
errorColor: Color.fromRGBO(235, 80, 60, 1.0),
5 years ago
scaffoldBackgroundColor: Colors.grey,
5 years ago
textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
5 years ago
textSelectionHandleColor: Colors.grey,
5 years ago
canvasColor: Colors.white,
5 years ago
backgroundColor: Colors.grey,
5 years ago
highlightColor: Colors.grey[100].withOpacity(0.4),
splashColor: Colors.transparent,
5 years ago
primaryColor: Colors.grey,
5 years ago
bottomSheetTheme: BottomSheetThemeData(backgroundColor: Color(0xffE0E0E0)),
cursorColor: Colors.grey,
5 years ago
5 years ago
iconTheme: IconThemeData(),
appBarTheme: AppBarTheme(
5 years ago
color: Colors.grey,
5 years ago
brightness: Brightness.dark,
5 years ago
elevation: 10.0,
5 years ago
actionsIconTheme: IconThemeData(
5 years ago
color: Colors.grey,
5 years ago
),
),
);
5 years ago
final bwTheme = ThemeData(
5 years ago
// fontFamily: projectProvider.isArabic ? 'Cairo' : 'WorkSans',
5 years ago
primarySwatch: Colors.black54,
5 years ago
visualDensity: VisualDensity.adaptivePlatformDensity,
5 years ago
brightness: Brightness.light,
5 years ago
pageTransitionsTheme: const PageTransitionsTheme(
builders: {
TargetPlatform.android: ZoomPageTransitionsBuilder(),
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
},
),
5 years ago
hintColor: Colors.black54,
cardColor:Colors.black54,
buttonColor: Colors.black54,
disabledColor: Colors.black54,
5 years ago
errorColor: Color.fromRGBO(235, 80, 60, 1.0),
5 years ago
scaffoldBackgroundColor: Colors.black54,
5 years ago
textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
5 years ago
textSelectionHandleColor: Colors.black54,
canvasColor:Colors.black54,
backgroundColor: Colors.black54,
5 years ago
highlightColor: Colors.grey[100].withOpacity(0.4),
splashColor: Colors.transparent,
5 years ago
primaryColor: Colors.black54,
5 years ago
bottomSheetTheme: BottomSheetThemeData(backgroundColor: Color(0xffE0E0E0)),
5 years ago
cursorColor: Colors.black54,
5 years ago
iconTheme: IconThemeData(),
appBarTheme: AppBarTheme(
5 years ago
color: Colors.black54,
5 years ago
brightness: Brightness.dark,
elevation: 10.0,
actionsIconTheme: IconThemeData(
5 years ago
color: Colors.black54,
5 years ago
),
),
);