gradient_text_widget 0.0.4 copy "gradient_text_widget: ^0.0.4" to clipboard
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),
          )),
    );
  }
}
2
likes
130
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter plugin.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on gradient_text_widget