FlTheme constructor

FlTheme({
  1. String? fontFamily,
  2. Color primaryColor = Colors.green,
  3. Color secondaryColor = Colors.lime,
  4. Color tertiaryColor = Colors.orange,
})

Implementation

FlTheme({
  final String? fontFamily,
  this.primaryColor = Colors.green,
  this.secondaryColor = Colors.lime,
  this.tertiaryColor = Colors.orange,
}) {
  _baseTheme = ThemeData(
    fontFamily: fontFamily ?? GoogleFonts.poppins().fontFamily,
    iconTheme: const IconThemeData(
      size: 24,
    ),
    appBarTheme: const AppBarTheme(
      backgroundColor: Colors.transparent,
      scrolledUnderElevation: 0,
      elevation: 0,
    ),
    dialogTheme: const DialogTheme(
      backgroundColor: Colors.transparent,
      surfaceTintColor: Colors.transparent,
    ),
  );
}