stroke_gradient_text 1.1.2
stroke_gradient_text: ^1.1.2 copied to clipboard
This is a component that supports both text borders and text gradients
Preview
How to use
Import
import 'package:stroke_gradient_text/stroke_gradient_text.dart';
Example
import 'package:flutter/material.dart';
import 'package:stroke_gradient_text/stroke_gradient_text.dart';
class Example extends StatelessWidget {
const Example({super.key});
@override
Widget build(BuildContext context) => StrokeAndGradientText(
strokeColor: Colors.red,
strokeWidth: 2,
gradient: LinearGradient(colors: [Colors.green, Colors.white]),
child: Text("data"),
);
}