themeFilesContent top-level property

Map<String, String> themeFilesContent
getter/setter pair

Implementation

Map<String, String> themeFilesContent = {
  'app_colors': '''
import 'package:flutter/material.dart';

class AppColors {
  const AppColors._();

  static const Color white = Color(0xFFFFFFFF);
  static const Color black = Color(0xFF000000);
}
''',
  //-------------------------------------------------------------------------------------------------------------------------
  'app_text_styles': '''
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'app_colors.dart';

class AppTextStyles {
  const AppTextStyles._();
    static TextStyle font14BlackRegular = TextStyle(
    fontSize: 14.sp,
    color: AppColors.black,
    fontWeight: FontWeightHelper.regular,
  );
}
class FontWeightHelper {
  static FontWeight thin = FontWeight.w100;
  static FontWeight extraLight = FontWeight.w200;
  static FontWeight light = FontWeight.w300;
  static FontWeight regular = FontWeight.w400;
  static FontWeight medium = FontWeight.w500;
  static FontWeight semiBold = FontWeight.w600;
  static FontWeight bold = FontWeight.w700;
  static FontWeight extraBold = FontWeight.w800;
  static FontWeight black = FontWeight.w900;
}
''',
  //-------------------------------------------------------------------------------------------------------------------------
  'app_theme': '''
import 'package:flutter/material.dart';

class AppTheme {
  const AppTheme._();

  static final ThemeData lightTheme = ThemeData.light(
    useMaterial3: true,
  ).copyWith(
    visualDensity: VisualDensity.adaptivePlatformDensity,
    // primaryColor: AppColors.primaryColor,

  );

  static final ThemeData darkTheme = ThemeData.dark(
    useMaterial3: true,
  ).copyWith(
    visualDensity: VisualDensity.adaptivePlatformDensity,
    // primaryColor: AppColors.primaryColor,
  );
}
''',
};