Skip to content

Instantly share code, notes, and snippets.

@TechieBlossom
Created November 15, 2019 14:53
Show Gist options
  • Save TechieBlossom/a73a32ec2eeeba2ee49aec0e172ff37e to your computer and use it in GitHub Desktop.
Save TechieBlossom/a73a32ec2eeeba2ee49aec0e172ff37e to your computer and use it in GitHub Desktop.
import 'package:flutter/material.dart';
import 'package:googleproductsapp/models/product.dart';
class BlueButton extends StatelessWidget {
const BlueButton({
Key key,
@required this.product,
}) : super(key: key);
final Product product;
@override
Widget build(BuildContext context) {
return FlatButton(
child: Text(
product.buttonText,
style: TextStyle(color: Colors.white, fontSize: 10, fontWeight: FontWeight.w600),
),
onPressed: () {},
color: Color(0xFF0000FF),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(20),
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment