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

A reusable customizable Flutter button with icon support.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'dynamic_button.dart';


void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.grey.shade900,
        body: Center(
          child:DynamicButton(
            text: 'Login',
            onTap: () => print('Login tapped'),
            prefixIcon: Icon(Icons.lock, color: Colors.white, size: 20),
            suffixIcon: Icon(Icons.arrow_forward_ios, color: Colors.white, size: 18),
            backgroundColor: Colors.teal,
            borderRadius: BorderRadius.circular(12),
            customTextStyle: TextStyle(
              fontSize: 18,
              fontWeight: FontWeight.bold,
              color: Colors.white,
              fontFamily: 'Poppins',
            ),
          )


        ),
      ),
    );
  }
}
10
likes
130
points
36
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A reusable customizable Flutter button with icon support.

License

MIT (license)

Dependencies

flutter, google_fonts

More

Packages that depend on dynamic_button_gradient