22 lines
614 B
Dart
22 lines
614 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class RoundAddButton extends StatelessWidget {
|
||
|
final VoidCallback onPressed;
|
||
|
|
||
|
const RoundAddButton({super.key, required this.onPressed});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return ElevatedButton(
|
||
|
onPressed: onPressed,
|
||
|
style: ElevatedButton.styleFrom(
|
||
|
shape: const CircleBorder(),
|
||
|
padding: const EdgeInsets.all(20),
|
||
|
backgroundColor: Colors.green, // <-- Button color
|
||
|
foregroundColor: Colors.blue, // <-- Splash color
|
||
|
),
|
||
|
child: const Icon(Icons.add_outlined, color: Colors.white),
|
||
|
);
|
||
|
}
|
||
|
}
|