import 'package:fikoyt_ui/ui/tema/fikoyt_tema.dart'; import 'package:flutter/material.dart'; ThemeData Function(FikoTheme tema) FikoytKoyuTema = (FikoTheme tema) => ThemeData.dark().copyWith( primaryColor: Colors.yellow.shade400, splashColor: Colors.white.withAlpha(50), scaffoldBackgroundColor: tema.uygulamaArkaPlanRenk, // fontFamily: GoogleFonts.robotoFlex().fontFamily, // textTheme: GoogleFonts.truculentaTextTheme(), useMaterial3: true, visualDensity: const VisualDensity(horizontal: 0, vertical: -4), textButtonTheme: TextButtonThemeData( style: TextButton.styleFrom( foregroundColor: Colors.black, iconColor: Colors.blueGrey.shade200, padding: const EdgeInsets.symmetric(vertical: 0, horizontal: 5), minimumSize: const Size(12, 12), tapTargetSize: MaterialTapTargetSize.shrinkWrap, alignment: Alignment.centerLeft, visualDensity: const VisualDensity(horizontal: 0, vertical: -4), // textStyle: GoogleFonts.truculenta().getTextStyle(), ), // minimumSize: Size(14, 14), ), outlinedButtonTheme: OutlinedButtonThemeData( style: TextButton.styleFrom( padding: const EdgeInsets.only(left: 3, right: 3), // minimumSize: Size(14, 14), ), ), textTheme: // GoogleFonts.robotoFlexTextTheme( const TextTheme( labelLarge: TextStyle(fontSize: 14, color: Colors.white), labelMedium: TextStyle(fontSize: 12, color: Colors.white), labelSmall: TextStyle(fontSize: 10, color: Colors.white), bodyLarge: TextStyle(fontSize: 14, color: Colors.white), bodyMedium: TextStyle(fontSize: 12, color: Colors.white), bodySmall: TextStyle(fontSize: 10, color: Colors.white), headlineLarge: TextStyle(fontSize: 14, color: Colors.white), headlineMedium: TextStyle(fontSize: 12, color: Colors.white), headlineSmall: TextStyle(fontSize: 10, color: Colors.white), displayLarge: TextStyle(fontSize: 14, color: Colors.white), displayMedium: TextStyle(fontSize: 12, color: Colors.white), displaySmall: TextStyle(fontSize: 10, color: Colors.white), ), // ), sliderTheme: SliderThemeData( trackHeight: 2.0, trackShape: const RoundedRectSliderTrackShape(), activeTrackColor: Colors.purple.shade800, inactiveTrackColor: Colors.purple.shade100, thumbShape: const RoundSliderThumbShape( enabledThumbRadius: 8.0, pressedElevation: 6.0, ), thumbColor: Colors.blueAccent, overlayColor: Colors.pink.withOpacity(0.2), overlayShape: const RoundSliderOverlayShape(overlayRadius: 16.0), tickMarkShape: const RoundSliderTickMarkShape(), activeTickMarkColor: Colors.pinkAccent, inactiveTickMarkColor: Colors.white, valueIndicatorShape: const PaddleSliderValueIndicatorShape(), valueIndicatorColor: Colors.black, valueIndicatorTextStyle: const TextStyle( color: Colors.white, fontSize: 20.0, ), ), listTileTheme: ListTileThemeData( contentPadding: const EdgeInsets.all(5), dense: true, horizontalTitleGap: 0, minLeadingWidth: 0, minVerticalPadding: 0, visualDensity: const VisualDensity( horizontal: 0, vertical: -4, ), selectedColor: Colors.white, selectedTileColor: Colors.blue.shade200, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(5), ), ), iconTheme: const IconThemeData(size: 12), iconButtonTheme: IconButtonThemeData( style: IconButton.styleFrom(iconSize: 12), ), inputDecorationTheme: const InputDecorationTheme( floatingLabelBehavior: FloatingLabelBehavior.never, contentPadding: EdgeInsets.all(10.0), labelStyle: TextStyle(fontSize: 12, color: Colors.white), isDense: true, border: OutlineInputBorder( borderRadius: BorderRadius.all( Radius.circular(5), ), ), ), popupMenuTheme: PopupMenuThemeData( textStyle: const TextStyle(fontSize: 14, color: Colors.white), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(5), ), ), menuButtonTheme: const MenuButtonThemeData( style: ButtonStyle( iconSize: WidgetStatePropertyAll(24), ), ), dividerTheme: const DividerThemeData( thickness: 1, space: 1, ), timePickerTheme: const TimePickerThemeData( // dialTextStyle: TextStyle(fontSize: 18), dialTextStyle: TextStyle(fontSize: 20, color: Colors.white), helpTextStyle: TextStyle(), dayPeriodTextStyle: TextStyle(fontSize: 18, color: Colors.white), hourMinuteTextStyle: TextStyle(fontSize: 18, color: Colors.white), timeSelectorSeparatorTextStyle: WidgetStatePropertyAll( TextStyle(fontSize: 22, color: Colors.white), ), ), dividerColor: Colors.white.withAlpha(50), cardColor: Colors.teal.withAlpha(70), shadowColor: Colors.white.withAlpha(30), );