app_text 0.1.1 copy "app_text: ^0.1.1" to clipboard
app_text: ^0.1.1 copied to clipboard

A reusable Flutter Text widget with onTap support for interactive text.

app_text #

A reusable Flutter Text widget that supports all standard Text properties plus an onTap callback.
AppText makes it easy to create interactive, styled text in Flutter apps with minimal boilerplate.


Features #

  • Supports all common Text styling properties:
    • fontSize, fontWeight, fontStyle, color, letterSpacing, wordSpacing, shadows, etc.
  • Optional onTap callback for making text interactive.
  • Handles text alignment, overflow, maxLines, and soft wrap.
  • Lightweight and easy to integrate into any Flutter project.

Installation #

Add this to your pubspec.yaml:

dependencies:
  app_text: ^0.1.0

Then Run:

flutter pub get

Usage #

Basic example:

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

class ExamplePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: AppText(
          text: "Hello World",
          fontSize: 35,
          fontWeight: FontWeight.bold,
          color: Colors.blue,
          onTap: () {
            print("Text tapped!");
          },
        ),
      ),
    );
  }
}

0
likes
140
points
36
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A reusable Flutter Text widget with onTap support for interactive text.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on app_text