gradation_button 0.0.4 copy "gradation_button: ^0.0.4" to clipboard
gradation_button: ^0.0.4 copied to clipboard

A Easier Gradation Button For Use

gradation_button #

Package in pub dev which provide shorter code for call gradation button

Example Code #

void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Center(
child: GradationButton(
ontap: () {},
width: 50,
height: 60,
gradient1: Colors.blue,
gradient2: Colors.green,
),
),
);
}
}

Notes #

  • Here are Required Parameter :

    • width
    • height
    • content
    • gradient1 = First Color
    • gradient2 = Second Color
    • width
  • To use Radius Just define the radius for each edge (topLeft, topRight, bottomLeft, bottomRight)

0
likes
130
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

A Easier Gradation Button For Use

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on gradation_button