import 'package:fikoyt_ui/ui/tema/fikoyt_acik_tema.dart'; import 'package:fikoyt_ui/ui/tema/fikoyt_koyu_tema.dart'; import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; class FikoTheme { final BuildContext? context; FikoTheme({this.context}); static FikoTheme of(BuildContext context) => FikoTheme(context: context); ThemeData get acikTema { return FikoytAcikTema(); } /// /// /// /// ThemeData get koyuTema { return FikoytKoyuTema(); } bool get koyuMod { // return true; return SchedulerBinding.instance.platformDispatcher.platformBrightness == Brightness.dark; } Color get uygulamaArkaPlanRenk { if (koyuMod) { return Colors.grey.shade900; } else { return Colors.grey.shade200; } } Color get kartArkaPlanRenk { if (koyuMod) { return Colors.teal.withAlpha(70); } else { return Colors.white; } } TextStyle get kartBaslikStil { if (koyuMod) { return TextStyle(fontSize: 14, color: Colors.teal.shade50); } else { return TextStyle(fontSize: 14, color: Colors.teal.shade900); } } Color get kartBaslikRenk { if (koyuMod) { return Colors.white; } else { return Colors.black38; } } Color get saatTabloBaslikRenk { if (koyuMod) { return Colors.blue.shade200; } else { return Colors.blue.shade400; } } Color get saatTabloVeriArkaPlanRenk { if (koyuMod) { return Colors.teal.withAlpha(70); } else { return Colors.grey.shade200; } } Color get tabloBaslikYaziRenk { if (koyuMod) { return Colors.white; } else { return Colors.white; } } Color get tabloBaslikRenk { if (koyuMod) { return Colors.blue.shade300; } else { return Colors.blue.shade400; } } Color get tabloVeriArkaPlanRenk { if (koyuMod) { return Colors.tealAccent.withAlpha(30); } else { return Colors.tealAccent.withAlpha(30); } } Color get bilgiSatiriArkaPlanRenk { if (koyuMod) { return Colors.yellow.withAlpha(170); } else { return Colors.yellow.withAlpha(70); } } Color get bilgiSatiriYaziRenk { if (koyuMod) { return Colors.white; } else { return Colors.blue.withAlpha(200); } } Color get tabloHataliYaziRenk { if (koyuMod) { return Colors.red.shade300; } else { return Colors.red; } } Color get tabloGecerliYaziRenk { if (koyuMod) { return Colors.green.shade200; } else { return Colors.green; } } }