22 lines
453 B
Dart
22 lines
453 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
// create typography.dart file
|
||
|
class MyTextStyle extends StatelessWidget {
|
||
|
const MyTextStyle({
|
||
|
super.key,
|
||
|
required this.name,
|
||
|
required this.style,
|
||
|
});
|
||
|
|
||
|
final String name;
|
||
|
final TextStyle style;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Padding(
|
||
|
padding: const EdgeInsets.all(2.0),
|
||
|
child: Text(name, style: style), //.copyWith(letterSpacing: 1.0)
|
||
|
);
|
||
|
}
|
||
|
}
|