gradient_text_widget 0.0.4
gradient_text_widget: ^0.0.4 copied to clipboard
A new Flutter plugin.
example/lib/main.dart
import 'dart:collection';
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter/services.dart';
import 'package:gradient_text_widget/gradient_text_widget.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
String _platformVersion = 'Unknown';
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: GradientTextWidget(
"this is a example for test gradient text widget",
showGradient: true,
enableGradient: true,
// gradientColor: Colors.amberAccent,
gradientColors: [
Color.fromARGB(31, 234, 9, 123),
Color.fromARGB(180, 234, 9, 123),
Color.fromARGB(255, 234, 9, 123)
],
logicWidth: MediaQuery.of(context).size.width - 40,
textColor: Color(0xFF111111),
)),
);
}
}