mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
34 lines
796 B
Dart
34 lines
796 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class TrailButton extends StatelessWidget {
|
|
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(
|
|
padding: EdgeInsets.all(0),
|
|
child: Text(
|
|
caption,
|
|
style: TextStyle(
|
|
color: Theme.of(context)
|
|
.accentTextTheme
|
|
.display4
|
|
.decorationColor,
|
|
fontWeight: FontWeight.w500,
|
|
fontSize: 14),
|
|
),
|
|
onPressed: onPressed),
|
|
);
|
|
}
|
|
} |