From e34c7c4ca151d6ca5282176cdbbe8f9d1844c9ae Mon Sep 17 00:00:00 2001 From: unitexe Date: Thu, 19 Dec 2024 10:04:49 -0600 Subject: Initial application --- lib/button.dart | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 lib/button.dart (limited to 'lib/button.dart') 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 -- cgit v1.2.3