mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
46 lines
841 B
Dart
46 lines
841 B
Dart
/*
|
|
* This file is part of Stack Wallet.
|
|
*
|
|
* Copyright (c) 2023 Cypher Stack
|
|
* All Rights Reserved.
|
|
* The code is distributed under GPLv3 license, see LICENSE file for details.
|
|
* Generated by Cypher Stack on 2023-05-26
|
|
*
|
|
*/
|
|
|
|
import 'package:flutter/material.dart';
|
|
import '../../utilities/util.dart';
|
|
|
|
enum ButtonHeight {
|
|
xxs,
|
|
xs,
|
|
s,
|
|
m,
|
|
l,
|
|
xl,
|
|
xxl,
|
|
}
|
|
|
|
class CustomTextButtonBase extends StatelessWidget {
|
|
const CustomTextButtonBase({
|
|
super.key,
|
|
this.width,
|
|
this.height,
|
|
this.textButton,
|
|
});
|
|
|
|
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,
|
|
);
|
|
}
|
|
}
|