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

A responsive Flutter button widget that adjusts to screen size.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:custom_responsive_button/custom_responsive_button.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Custom Button Demo',
      home: Scaffold(
        appBar: AppBar(title: const Text('Demo')),
        body: Center(
          child: CustomResponsiveButton(
            text: "Click Me",
            color: Colors.deepPurple,
            onPressed: () {
              // print("Button Pressed!");
            },
            borderRadius: 20,
          ),
        ),
      ),
    );
  }
}
1
likes
150
points
34
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A responsive Flutter button widget that adjusts to screen size.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_responsive_button