text_gradiate 1.0.1 copy "text_gradiate: ^1.0.1" to clipboard
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.

example/lib/main.dart

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
52
likes
160
points
200
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.26 - 2025.04.10

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.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on text_gradiate