textStyles static method
Implementation
static String textStyles(ProjectConfig c) {
return '''
import 'package:flutter/material.dart';
import 'app_colors.dart';
/// Typography scale.
class AppTextStyles {
AppTextStyles._();
static const TextStyle h1 = TextStyle(
fontSize: 32,
fontWeight: FontWeight.bold,
color: AppColors.textPrimary,
height: 1.2,
);
static const TextStyle h2 = TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: AppColors.textPrimary,
height: 1.3,
);
static const TextStyle h3 = TextStyle(
fontSize: 20,
fontWeight: FontWeight.w600,
color: AppColors.textPrimary,
height: 1.3,
);
static const TextStyle body = TextStyle(
fontSize: 14,
color: AppColors.textPrimary,
height: 1.5,
);
static const TextStyle bodyBold = TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
color: AppColors.textPrimary,
height: 1.5,
);
static const TextStyle caption = TextStyle(
fontSize: 12,
color: AppColors.textSecondary,
height: 1.4,
);
static const TextStyle button = TextStyle(
fontSize: 14,
fontWeight: FontWeight.w600,
letterSpacing: 0.5,
);
}
''';
}