cpd_2022_zi/lib/widgets/round_button_widget.dart

26 lines
690 B
Dart
Raw Normal View History

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
),
2023-03-05 17:33:27 +01:00
child: Icon(
Icons.add_outlined,
color: Colors.white,
2023-03-05 17:49:12 +01:00
size: MediaQuery.of(context).size.height * 0.05,
2023-03-05 17:33:27 +01:00
),
);
}
}