forked from alexvasl/drifter_app
Custom text button widget
This commit is contained in:
parent
ab899e7501
commit
6012526b33
33
lib/pages/widgets/custom_text_button.dart
Normal file
33
lib/pages/widgets/custom_text_button.dart
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
enum ButtonHeight {
|
||||||
|
xxs,
|
||||||
|
xs,
|
||||||
|
s,
|
||||||
|
m,
|
||||||
|
l,
|
||||||
|
xl,
|
||||||
|
xxl,
|
||||||
|
}
|
||||||
|
|
||||||
|
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) {
|
||||||
|
return SizedBox(
|
||||||
|
height: height,
|
||||||
|
width: width,
|
||||||
|
child: textButton,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user