cpd_2022_zi/lib/widgets/submit_form_button.dart

18 lines
444 B
Dart
Raw Normal View History

2023-02-15 23:28:19 +01:00
import 'package:flutter/material.dart';
class SubmitFormButton extends StatelessWidget {
final VoidCallback submitCallback;
const SubmitFormButton(this.submitCallback, {super.key});
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 16.0),
child: ElevatedButton(
onPressed: submitCallback,
child: const Text('Speichern'),
),
);
}
}