text_gradiate 0.0.1 text_gradiate: ^0.0.1 copied to clipboard
A Flutter package for creating gradient text in easy way.
Text Gradiate Package #
A Flutter package for creating gradient text in fastest way.
Features #
- Easily create text with gradient colors.
- Customize gradient colors to match your design.
Installation #
To use this package, add text_gradiate
as a dependency in your pubspec.yaml
file.
dependencies:
text_gradiate: ^1.0.0
Then, import the package into your Dart code:
import 'package:text_gradiate/text_gradiate.dart';
Usage #
Wrap your text widget with TextGradiate
and specify the desired gradient colors.
TextGradiate(
text: Text(
'Hello, Gradient!',
style: TextStyle(fontSize: 24.0),
),
colors: [Colors.blue, Colors.green],
)
Example #
Here's a simple example that shows how to use the TextGradiate
widget:
import 'package:flutter/material.dart';
import 'package:text_gradiate/text_gradiate.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('TextGradiate Example'),
),
body: Center(
child: TextGradiate(
text: Text(
'Hello, Gradient!',
style: TextStyle(fontSize: 24.0),
),
colors: [Colors.blue, Colors.green],
),
),
),
);
}
}
Support #
- Android: Supported on SDK 16 and above.
- iOS: Supported on iOS 11.0 and above.
- Linux: Any Linux distribution.
- macOS: Supported on macOS 10.14 and above.
- Web: Supported on all web browsers.
- Windows: Supported on all Windows versions.