2023-05-26 21:21:16 +00:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2022-09-26 15:49:36 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2024-05-23 00:37:06 +00:00
|
|
|
import '../../utilities/util.dart';
|
2022-09-26 15:49:36 +00:00
|
|
|
|
2022-11-17 17:46:44 +00:00
|
|
|
enum ButtonHeight {
|
|
|
|
xxs,
|
|
|
|
xs,
|
|
|
|
s,
|
|
|
|
m,
|
|
|
|
l,
|
|
|
|
xl,
|
|
|
|
xxl,
|
|
|
|
}
|
|
|
|
|
2022-09-26 15:49:36 +00:00
|
|
|
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,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|