cake_wallet/lib/src/widgets/trail_button.dart

29 lines
777 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class TrailButton extends StatelessWidget {
2021-01-13 17:18:28 +00:00
TrailButton({@required this.caption, @required this.onPressed});
final String caption;
final VoidCallback onPressed;
@override
Widget build(BuildContext context) {
return ButtonTheme(
minWidth: double.minPositive,
highlightColor: Colors.transparent,
splashColor: Colors.transparent,
child: FlatButton(
2021-01-13 17:18:28 +00:00
padding: EdgeInsets.all(0),
child: Text(
caption,
style: TextStyle(
color:
Theme.of(context).accentTextTheme.display4.decorationColor,
fontWeight: FontWeight.w500,
fontSize: 14),
),
onPressed: onPressed),
);
}
2021-01-13 17:18:28 +00:00
}