mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 01:47:41 +00:00
30 lines
874 B
Dart
30 lines
874 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:cake_wallet/palette.dart';
|
|
|
|
class TrailButton extends StatelessWidget {
|
|
TrailButton({@required this.caption, this.textColor, @required this.onPressed});
|
|
|
|
final String caption;
|
|
final VoidCallback onPressed;
|
|
final Color textColor;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ButtonTheme(
|
|
minWidth: double.minPositive,
|
|
highlightColor: Colors.transparent,
|
|
splashColor: Colors.transparent,
|
|
child: FlatButton(
|
|
padding: EdgeInsets.all(0),
|
|
child: Text(
|
|
caption,
|
|
style: TextStyle(
|
|
color: textColor ??
|
|
Theme.of(context).accentTextTheme.display4.decorationColor,
|
|
fontWeight: FontWeight.w600,
|
|
fontSize: 14),
|
|
),
|
|
onPressed: onPressed),
|
|
);
|
|
}
|
|
}
|