text_gradiate 1.0.1
text_gradiate: ^1.0.1 copied to clipboard
A Flutter package for creating gradient text in an easy way. This package allows you to add gradient effects to text in your Flutter app effortlessly.
import 'package:flutter/material.dart';
import 'package:text_gradiate/text_gradiate.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) => MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('TextGradiate Example'),
),
body: const Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextGradiate(
text: Text(
'Hello, Gradient!',
style: TextStyle(fontSize: 24.0),
),
colors: [Colors.blue, Colors.green],
gradientType: GradientType.linear,
begin: Alignment.centerLeft,
end: Alignment.centerRight,
tileMode: TileMode.clamp,
),
SizedBox(height: 20),
TextGradiate(
text: Text(
'Flutter is awesome!',
style: TextStyle(fontSize: 24.0),
),
colors: [Colors.red, Colors.orange],
gradientType: GradientType.linear,
begin: Alignment.centerLeft,
end: Alignment.centerRight,
tileMode: TileMode.clamp,
),
],
),
),
),
);
}
copied to clipboard