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,
                ),
              ],
            ),
          ),
        ),
      );
}
44
likes
160
pub points
79%
popularity

Publisher

unverified uploader

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)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on text_gradiate