mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-16 17:38:51 +00:00
26 lines
759 B
Dart
26 lines
759 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class SimpleButton extends StatelessWidget {
|
|
const SimpleButton({super.key, required this.child, required this.onPressed});
|
|
final Function()? onPressed;
|
|
final Widget? child;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ElevatedButton(
|
|
style: ButtonStyle(
|
|
backgroundColor: MaterialStateProperty.all(Colors.blue[500]),
|
|
side: MaterialStateProperty.all(BorderSide.none),
|
|
shape: MaterialStateProperty.all<RoundedRectangleBorder>(
|
|
RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(100.0),
|
|
side: const BorderSide(color: Colors.red),
|
|
),
|
|
),
|
|
),
|
|
onPressed: onPressed,
|
|
child: child,
|
|
);
|
|
}
|
|
}
|