-
Notifications
You must be signed in to change notification settings - Fork 0
/
textWidgets.dart
42 lines (35 loc) · 936 Bytes
/
textWidgets.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:interiit_prep/shared/appColors.dart';
class MediumText extends StatelessWidget {
const MediumText({Key? key, required this.text}) : super(key: key);
final String text;
@override
Widget build(BuildContext context) {
return Text(
text,
style: GoogleFonts.lato(
textStyle: const TextStyle(
fontSize: 20,
color: AppColors.primaryBlackColor
)
),
);
}
}
class TitleText extends StatelessWidget {
const TitleText({Key? key, required this.text}) : super(key: key);
final String text;
@override
Widget build(BuildContext context) {
return Text(
text,
style: GoogleFonts.lato(
textStyle: const TextStyle(
fontSize: 24,
color: AppColors.primaryBlackColor
)
),
);
}
}