stylit 0.0.1 copy "stylit: ^0.0.1" to clipboard
stylit: ^0.0.1 copied to clipboard

A Flutter package that allows you to effortlessly turn a plain string into a beautifully styled Text widget.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:stylit/stylit.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Stylit Demo',
      home: Scaffold(
        body: Center(
          child:
              '<span>Flutter</span> <span>everything</span> is a <span>Widget</span>'
                  .stylit(
                    styles: [
                      TextStyle(
                        color: Colors.blue,
                        fontSize: 28,
                        fontWeight: FontWeight.bold,
                      ),
                      TextStyle(
                        color: Colors.pinkAccent,
                        fontSize: 16,
                        decoration: TextDecoration.underline,
                        decorationColor: Colors.red,
                        decorationStyle: TextDecorationStyle.double,
                      ),
                      TextStyle(
                        color: Colors.lightBlueAccent,
                        fontSize: 20,
                        fontStyle: FontStyle.italic,
                        fontWeight: FontWeight.bold,
                      ),
                    ],
                  ),
        ),
      ),
    );
  }
}
2
likes
150
points
13
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package that allows you to effortlessly turn a plain string into a beautifully styled Text widget.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on stylit