Auto SMS, Themes, Voice Command
parent
3e947dda37
commit
e61c26b853
Binary file not shown.
After Width: | Height: | Size: 132 KiB |
@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CustomColors {
|
||||
static const Color lightPurple = Color(0xFFBB86FA);
|
||||
static const Color purple = Color(0xFF6002EE);
|
||||
static const Color deepPurple = Color(0xFF3900B1);
|
||||
static const Color grey = Color(0xFF848484);
|
||||
static const Color darkGrey = Color(0xFF222222);
|
||||
static const Color black = Color(0xFF141414);
|
||||
static const Color white = Color(0xFFFFFFFF);
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
// import 'package:diplomaticquarterapp/theme/custom_theme.dart';
|
||||
|
||||
// CustomTheme currentTheme = CustomTheme();
|
@ -0,0 +1,89 @@
|
||||
// import 'package:diplomaticquarterapp/Constants.dart';
|
||||
// import 'package:flutter/material.dart';
|
||||
// import 'package:hexcolor/hexcolor.dart';
|
||||
|
||||
// import 'colors.dart';
|
||||
|
||||
// class CustomTheme with ChangeNotifier {
|
||||
// static bool _isDarkTheme = true;
|
||||
// ThemeMode get currentTheme =>
|
||||
// _isDarkTheme ? ThemeMode.dark : ThemeMode.system;
|
||||
|
||||
// void toggleTheme() {
|
||||
// _isDarkTheme = !_isDarkTheme;
|
||||
// notifyListeners();
|
||||
// }
|
||||
|
||||
// static ThemeData get lightTheme {
|
||||
// //1
|
||||
// return ThemeData(
|
||||
// //2
|
||||
// primaryColor: CustomColors.purple,
|
||||
// scaffoldBackgroundColor: Colors.white,
|
||||
// fontFamily: 'Montserrat', //3
|
||||
// buttonTheme: ButtonThemeData(
|
||||
// // 4
|
||||
// shape:
|
||||
// RoundedRectangleBorder(borderRadius: BorderRadius.circular(18.0)),
|
||||
// buttonColor: CustomColors.lightPurple,
|
||||
// ));
|
||||
// }
|
||||
|
||||
// static ThemeData get darkTheme {
|
||||
// return ThemeData(
|
||||
// primaryColor: CustomColors.darkGrey,
|
||||
// scaffoldBackgroundColor: Colors.black,
|
||||
// fontFamily: 'Montserrat',
|
||||
// textTheme: ThemeData.dark().textTheme,
|
||||
// buttonTheme: ButtonThemeData(
|
||||
// shape:
|
||||
// RoundedRectangleBorder(borderRadius: BorderRadius.circular(18.0)),
|
||||
// buttonColor: CustomColors.lightPurple,
|
||||
// ));
|
||||
// }
|
||||
|
||||
// static ThemeData get defaultTheme {
|
||||
// return 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],
|
||||
// textTheme: TextTheme(
|
||||
// headline1: TextStyle(
|
||||
// color: Color(0xffB8382C),
|
||||
// ),
|
||||
// ),
|
||||
// disabledColor: Colors.grey[300],
|
||||
// errorColor: Color.fromRGBO(235, 80, 60, 1.0),
|
||||
// scaffoldBackgroundColor: Color(0xffE9E9E9), // Colors.grey[100],
|
||||
// textSelectionColor: Color.fromRGBO(80, 100, 253, 0.5),
|
||||
// textSelectionHandleColor: Colors.grey,
|
||||
// canvasColor: Colors.white,
|
||||
// backgroundColor: Color.fromRGBO(255, 255, 255, 1),
|
||||
// highlightColor: Colors.grey[100].withOpacity(0.4),
|
||||
// splashColor: Colors.transparent,
|
||||
// primaryColor: Color(0xff515A5D),
|
||||
// toggleableActiveColor: secondaryColor,
|
||||
// indicatorColor: secondaryColor,
|
||||
// bottomSheetTheme:
|
||||
// BottomSheetThemeData(backgroundColor: HexColor('#E0E0E0')),
|
||||
// cursorColor: Colors.grey,
|
||||
// iconTheme: IconThemeData(),
|
||||
// appBarTheme: AppBarTheme(
|
||||
// color: Color(0xff515A5D),
|
||||
// brightness: Brightness.light,
|
||||
// elevation: 0.0,
|
||||
// actionsIconTheme: IconThemeData(
|
||||
// color: Colors.grey[800],
|
||||
// ),
|
||||
// ),
|
||||
// );
|
||||
// }
|
||||
// }
|
@ -1,15 +1,18 @@
|
||||
import 'package:diplomaticquarterapp/config/config.dart';
|
||||
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
||||
import 'package:diplomaticquarterapp/theme/theme_value.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:diplomaticquarterapp/config/config.dart';
|
||||
|
||||
class ThemeNotifier with ChangeNotifier {
|
||||
ThemeData _themeData = defaultTheme;
|
||||
ThemeData _themeData;
|
||||
|
||||
ThemeNotifier(this._themeData);
|
||||
|
||||
getTheme() => _themeData;
|
||||
|
||||
setTheme(ThemeData themeData) async {
|
||||
_themeData = themeData;
|
||||
|
||||
notifyListeners();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue