flash_text 0.0.4 copy "flash_text: ^0.0.4" to clipboard
flash_text: ^0.0.4 copied to clipboard

Flash text package for text and text button with common styling for better code practices

flash_text #

pub package

A Flutter plugin for text theming. Supports Android, iOS, Linux, macOS and Windows. Not all methods are supported on all platforms.

Android iOS Linux macOS Windows
Support SDK 16+ 9.0+ Any 10.11+ Windows 10+

Usage #

To use this plugin, add flash_text as a dependency in your pubspec.yaml file.

Example #

class MyScreen extends StatefulWidget {
  const MyScreen({super.key});

  @override
  State<MyScreen> createState() => _MyScreenState();
}

class _MyScreenState extends State<MyScreen> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        const FlashText(
          title: "Flash Text",
          maxLine: 2,
          style: TextStyle(
            fontWeight: FontWeight.w600,
          ),
        ),
        FlashText(
          title: "Flash Text Button",
          maxLine: 2,
          onTap: () {
            // If onTap action given then it will build a button
            // onTap action goes here
          },
          style: const TextStyle(
            fontWeight: FontWeight.w600,
          ),
        ),
      ],
    );
  }
}

See this flash_text test for an example.

A Codeflash's Product ✨

2
likes
150
pub points
5%
popularity

Publisher

verified publishercodeflashinfotech.com

Flash text package for text and text button with common styling for better code practices

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flash_text