app_text 0.1.1
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
Textstyling properties:fontSize,fontWeight,fontStyle,color,letterSpacing,wordSpacing,shadows, etc.
- Optional
onTapcallback 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!");
},
),
),
);
}
}