text_style 0.0.2 copy "text_style: ^0.0.2" to clipboard
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,),)),
        )
    );
  }
}
1
likes
140
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A minimal Flutter package for quickly applying TextStyle with shorthand.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_screenutil

More

Packages that depend on text_style