KonectarApp/lib/widgets/typography.dart

22 lines
453 B
Dart
Raw Permalink Normal View History

2024-09-06 06:30:31 +00:00
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)
);
}
}