summaryrefslogtreecommitdiff
path: root/lib/button.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/button.dart')
-rw-r--r--lib/button.dart23
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