sleek_button 0.2.0 copy "sleek_button: ^0.2.0" to clipboard
sleek_button: ^0.2.0 copied to clipboard

A simple but yet customizable button.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return SleekButtonTheme(
      data: SleekButtonThemeData.fallback(),
      child: MaterialApp(
        title: 'Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: Center(
          child: SleekButton(
            onTap: () {
              print('tapped!');
            },
            style: SleekButtonStyle.flat(
              color: const Color(0xFF5D3BE8),
              inverted: true,
              rounded: true,
              size: SleekButtonSize.normal,
              context: context,
            ),
            child: const Icon(Icons.format_bold),
          ),
        ),
      ),
    );
  }
}
19
likes
60
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A simple but yet customizable button.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

derived_colors, flutter, freezed_annotation, provider

More

Packages that depend on sleek_button