mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
27 lines
574 B
Dart
27 lines
574 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:stackwallet/utilities/util.dart';
|
||
|
|
||
|
class CustomTextButtonBase extends StatelessWidget {
|
||
|
const CustomTextButtonBase({
|
||
|
Key? key,
|
||
|
this.width,
|
||
|
this.height,
|
||
|
this.textButton,
|
||
|
}) : super(key: key);
|
||
|
|
||
|
final double? width;
|
||
|
final double? height;
|
||
|
final TextButton? textButton;
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
final isDesktop = Util.isDesktop;
|
||
|
|
||
|
return SizedBox(
|
||
|
height: isDesktop && height == null ? 70 : height,
|
||
|
width: width,
|
||
|
child: textButton,
|
||
|
);
|
||
|
}
|
||
|
}
|