awesome_button 1.0.2 awesome_button: ^1.0.2 copied to clipboard
This is a pre-built button with an awesome look for flutter.
import 'package:flutter/material.dart';
import 'package:awesome_button/awesome_button.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: AwesomeButton(
blurRadius: 10.0,
splashColor: Color.fromRGBO(255, 255, 255, .4),
borderRadius: BorderRadius.circular(25.0),
height: 75.0,
width: 200.0,
onTap: () => print("tapped"),
color: Colors.orangeAccent,
child: Text(
"Awesome Button",
style: TextStyle(
color: Colors.white,
fontSize: 20.0,
),
),
),
),
);
}
}