my_custom_text_package 0.0.3 copy "my_custom_text_package: ^0.0.3" to clipboard
my_custom_text_package: ^0.0.3 copied to clipboard

A lightweight Flutter package providing a customizable text widget and utility classes for reusable UI components.

example/main.dart

import 'package:flutter/material.dart';
import 'package:my_custom_text_package/custom_text_widget.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'CustomTextWidget Full Demo',
      home: Scaffold(
        appBar: AppBar(title: const Text('CustomTextWidget Full Demo')),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: CustomTextWidget(
              text:
              'This is a fully customized CustomTextWidget showcasing ALL options!',
              fontSize: 24,
              fontWeight: FontWeight.bold,
              fontFamily: 'Roboto',
              color: Colors.deepPurple,
              letterSpacing: 2,
              wordSpacing: 4,
              maxLine: 2,
              overflow: TextOverflow.ellipsis,
              textAlign: TextAlign.center,
              decoration: TextDecoration.underline,
              softWrap: true,
              textScaleFactor: 1.5,
              textDirection: TextDirection.ltr,
              style: TextStyle(
                shadows: const [
                  Shadow(
                    color: Colors.black26,
                    offset: Offset(2, 2),
                    blurRadius: 3,
                  ),
                ],
                backgroundColor: Colors.yellow.withOpacity(0.2),
              ),
              strutStyle: const StrutStyle(
                fontSize: 24,
                height: 1.5,
              ),
              textHeightBehavior: const TextHeightBehavior(
                applyHeightToFirstAscent: true,
                applyHeightToLastDescent: true,
              ),
              textWidthBasis: TextWidthBasis.longestLine,
            ),
          ),
        ),
      ),
    );
  }
}
2
likes
0
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter package providing a customizable text widget and utility classes for reusable UI components.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on my_custom_text_package