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

Dart 1 only

Ready-made various button styles for Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:flutter_buttons/flutter_buttons.dart';

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

class FlutterButtonsDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Buttons Demo',
      theme: ThemeData(primaryColor: Colors.red),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Buttons Demo'),
          centerTitle: true,
        ),
        body: Container(
          alignment: Alignment.center,
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: <Widget>[
              KRaisedButton(
                radius: 30.0,
                color: Colors.teal,
                text: 'Raised Button',
                textColor: Colors.white,
                textFontWeight: FontWeight.bold,
                onPressed: () => {},
              ),
              KOutlineButton(
                radius: 30.0,
                borderColor: Colors.teal,
                text: 'Outline Button',
                textColor: Colors.teal,
                textFontWeight: FontWeight.bold,
                onPressed: () => {},
              ),
              KFlatButton(
                radius: 30.0,
                color: Colors.teal,
                text: 'Flat Button',
                textColor: Colors.white,
                textFontWeight: FontWeight.bold,
                onPressed: () => {},
              ),
              GradientButton(
                buttonColorGradient: [
                  Colors.teal.shade100,
                  Colors.teal.shade900
                ],
                buttonBorderColor: Colors.teal,
                buttonText: 'Gradient button',
                buttonTextColor: Colors.white,
                highlightColor: Colors.white30,
                splashColor: Colors.white,
                onPressed: () {},
              ),
              SelectedButton(
                radius: 30.0,
                unselectedButtonColor: Colors.white,
                selectedButtonColor: Colors.teal,
                text: 'Selected Button',
                unselectedTextColor: Colors.teal,
                selectedTextColor: Colors.white,
                textFontWeight: FontWeight.bold,
                iconData: Icons.email,
                unselectedIconColor: Colors.teal,
                selectedIconColor: Colors.white,
                onPressed: () {},
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
20
pub points
19%
popularity

Publisher

unverified uploader

Ready-made various button styles for Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_buttons