versatile_gradient_text 0.0.4 copy "versatile_gradient_text: ^0.0.4" to clipboard
versatile_gradient_text: ^0.0.4 copied to clipboard

We are used to container, button and appbar with gradient design. But in some unique cases we need text gradient similar to those we have used in PowerPoint Presentation.

Author #

Souvik Versatile Link to Profile

Versatile Gradient Text #

A text widget with customised gradient. We have seen container gradient, button gradient and appbar with gradient design. But in some unique cases we need text gradient similar to those we have used in PowerPoint Presentation.

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  versatile_gradient_text: ^0.0.4
  1. Import the package and use it in your Flutter App.
import 'package:versatile_gradient_text/versatile_gradient_text.dart';

Images #

radial type

linear type

Example #

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      body: Center(
          child: VersatileGradientText(
            textString: 'Gradient Text',
            colorOne: Colors.yellow, colorTwo: Colors.deepOrange,
            fontSize: 40, versatileGradientType: VersatileGradientType.radial,)
      ),
    );
  }
}
2
likes
160
pub points
1%
popularity

Publisher

verified publisherrayquazax.com

We are used to container, button and appbar with gradient design. But in some unique cases we need text gradient similar to those we have used in PowerPoint Presentation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on versatile_gradient_text