simple_gradient_text 1.2.4 copy "simple_gradient_text: ^1.2.4" to clipboard
simple_gradient_text: ^1.2.4 copied to clipboard

Create fast and simple gradient texts, whether linear or radial, you just decide the colors and the text to display, very easy.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Gradient Text',
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              GradientText(
                'Gradient Text Example',
                style: const TextStyle(
                  fontSize: 40.0,
                ),
                colors: const [
                  Colors.blue,
                  Colors.red,
                  Colors.teal,
                ],
              ),
              // This is a example for RadialGradient
              // Use Radius when use radial gradient text
              GradientText(
                'Gradient Text Example',
                style: const TextStyle(
                  fontSize: 40.0,
                ),
                gradientType: GradientType.radial,
                radius: 2.5,
                colors: const [
                  Colors.blue,
                  Colors.red,
                  Colors.teal,
                ],
              ),
            ],
          ),
        ),
      ),
    );
  }
}
108
likes
150
points
58.1k
downloads

Publisher

verified publisheralexastudillo.com

Weekly Downloads

Create fast and simple gradient texts, whether linear or radial, you just decide the colors and the text to display, very easy.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on simple_gradient_text