You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.3 KiB
Dart
87 lines
2.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:test_sa/extensions/int_extensions.dart';
|
|
|
|
class AppTextStyle {
|
|
static const fontFamily = "Poppins";
|
|
AppTextStyle._();
|
|
static final TextStyle heading1 = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 32.toScreenWidth,
|
|
letterSpacing: -0.5,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w700,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle heading2 = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 28.toScreenWidth,
|
|
letterSpacing: -0.5,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w700,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle heading3 = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 24.toScreenWidth,
|
|
letterSpacing: -0.5,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w600,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle heading4 = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 21.toScreenWidth,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w500,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle heading5 = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 19.toScreenWidth,
|
|
letterSpacing: 0,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w500,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle heading6 = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 16.toScreenWidth,
|
|
letterSpacing: 0,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w500,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle body1 = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 14.toScreenWidth,
|
|
letterSpacing: 0,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w400,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle body2 = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 12.toScreenWidth,
|
|
letterSpacing: 0,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w400,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle tiny = TextStyle(
|
|
//height: 1.5,
|
|
fontSize: 11.toScreenWidth,
|
|
letterSpacing: 0,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w500,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
static final TextStyle overline = TextStyle(
|
|
height: 1.5,
|
|
fontSize: 9.toScreenWidth,
|
|
letterSpacing: 0.5,
|
|
fontFamily: fontFamily,
|
|
fontWeight: FontWeight.w500,
|
|
decoration: TextDecoration.none,
|
|
);
|
|
}
|