diff options
| author | unitexe <unitexe70@gmail.com> | 2024-12-19 10:04:49 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2024-12-19 10:04:49 -0600 |
| commit | e34c7c4ca151d6ca5282176cdbbe8f9d1844c9ae (patch) | |
| tree | f063f2dd9261969778bd0ca84bd037879ca0ce7a /lib/button.dart | |
| parent | 5d7c87a5c3d3dfa3e5cf78f13b85265dc4130fd0 (diff) | |
Diffstat (limited to 'lib/button.dart')
| -rw-r--r-- | lib/button.dart | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/button.dart b/lib/button.dart new file mode 100644 index 0000000..2c51cf6 --- /dev/null +++ b/lib/button.dart @@ -0,0 +1,23 @@ +import 'package:flutter/widgets.dart'; + +class Button extends StatelessWidget { + const Button({required this.onPressed, required this.buttonText, super.key}); + + final VoidCallback onPressed; + final String buttonText; + + @override + Widget build(BuildContext context) { + return GestureDetector( + onTap: onPressed, + child: Container( + decoration: BoxDecoration( + border: Border.all(width: 2, color: const Color(0xFFFFFF00)), + borderRadius: const BorderRadius.all(Radius.circular(8)), + ), + padding: const EdgeInsets.all(8), + child: Text(buttonText, style: const TextStyle(color: Color(0xFFFFFF00))), + ) + ); + } +}
\ No newline at end of file |
