text_gradient_button_krishna 0.0.1 copy "text_gradient_button_krishna: ^0.0.1" to clipboard
text_gradient_button_krishna: ^0.0.1 copied to clipboard

Creates a text button with gradient colors

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:text_gradient_button_krishna/tg_button.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text("App Bar"),
        ),
        body: GradientButton(
          buttonFunctionality: () {
            print("button pressed");
          },
          title: 'Hello World',
          color1: Colors.red,
          color2: Colors.yellow,
        ),
      ),
    );
  }
}
1
likes
130
points
0
downloads

Publisher

unverified uploader

Weekly Downloads

Creates a text button with gradient colors

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on text_gradient_button_krishna

Packages that implement text_gradient_button_krishna