material_buttonx 2.0.3 copy "material_buttonx: ^2.0.3" to clipboard
material_buttonx: ^2.0.3 copied to clipboard

create beautiful button.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:material_buttonx/materialButtonX.dart';

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
        // This makes the visual density adapt to the platform that you run
        // the app on. For desktop platforms, the controls will be smaller and
        // closer together (more dense) than on mobile platforms.
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: Center(
          child: MaterialButtonX(
        message: "message",
        height: 50.0,
        width: 150.0,
        color: Colors.blueAccent,
        icon: Icons.add,
        iconSize: 30.0,
        radius: 46.0,
        onClick: () {
          //TODO
        },
      )),
    );
  }
}
2
likes
110
pub points
85%
popularity

Publisher

unverified uploader

create beautiful button.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on material_buttonx