text_style 0.0.2
text_style: ^0.0.2 copied to clipboard
A minimal Flutter package for quickly applying TextStyle with shorthand.
example/text_style_example.dart
import 'package:flutter/material.dart';
import 'package:text_style/text_style.dart';
void main() {
TextStyleConfig.setPrimaryColor(Colors.red);
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Text Style Example',
home: Scaffold(
body: Container(
color: Colors.black,
child: Center(
child: Text("data",style: T.s12w700.primary,),)),
)
);
}
}